Commit Graph

43 Commits

Author SHA1 Message Date
Martchus 60385aa347 Generalize copy functions in GenericFileElement to eventually use sendfile64()
Since we're still using `container().stream()` in `copyInternal()` this change
is still not really effective.
2023-05-16 22:58:04 +02:00
Martchus cb93d6900c Apply clang-format 2023-02-03 13:31:40 +01:00
Jonas Kvinge ea23d71e8a Fix spelling and typos 2021-07-02 11:12:39 +02:00
Martchus 0a041f6ad2 Fix warnings 2021-03-20 21:26:25 +01:00
Martchus 65597fd71e Add API to allow aborting overall/expensive parsing functions
* Not really implemented within the various code paths of the parsers at
  this point; this commit mainly adds the API.
* Adjust example in README
2021-02-04 23:21:50 +01:00
Martchus 40a96c1fd4 Use 64 KiB buffer to copy file elements 2019-12-30 23:51:54 +01:00
Martchus b2c02e9acc Fix childs -> children 2019-12-30 22:54:11 +01:00
Martchus c9e1dde70b Adapt to changes in c++utilities 2019-06-12 20:40:45 +02:00
Martchus 5ad00a083c Adapt to changes in c++utilities 2019-06-10 23:11:39 +02:00
Martchus 7efa7a0d5a Adapt to c++utilities v5 2019-05-04 16:04:21 +02:00
Martchus af4b43ff79 Replace typedef with using 2018-07-12 12:34:38 +02:00
Martchus 3265e0bea4 Fix documentation which was still using the old namespace 2018-06-03 20:38:32 +02:00
Martchus b35fc2ff0d Improve some structure layouts 2018-03-11 16:14:42 +01:00
Martchus c0336ed4bb Apply clang-format 2018-03-07 01:17:50 +01:00
Martchus efa67d6a1a Improve siblingById() and subelementByPath()
* Use 2 functions instead of flag parameter
* Support const correctness
2018-03-07 00:30:08 +01:00
Martchus 091fa1daf7 Use "..." to implement subelementByPath 2018-03-07 00:16:20 +01:00
Martchus 0e15c74103 Move everything into namespace TagParser 2018-03-06 23:09:15 +01:00
Martchus 36511fcc13 Add progress feedback and diagnostics replacing status provider 2018-03-06 22:44:01 +01:00
Martchus 8e66378b81 Add method to get last child of file element 2018-03-06 22:44:01 +01:00
Martchus 611ae0916a Add methods to get n-th parent of file element 2018-03-06 22:44:01 +01:00
Martchus 90dccb2bd9 Add method to determine level of file element 2018-03-06 22:44:01 +01:00
Martchus 99227816b6 Allow specifying whether the size of an element is unknown 2018-03-06 22:44:01 +01:00
Martchus 7a02e8a325 Uniform/simplify typedefs in templates
* Begin type names with capital letter
* Remove typedefs for implementation type
* Remove useless/obsolete comments
* Simplify relevant code
2018-03-06 22:44:01 +01:00
Martchus 0daabba17a Use static polymorphism in FieldMapBasedTag 2018-03-06 22:44:01 +01:00
Martchus 0f6ac6a7e3 Fix duplicate notifications 2017-08-20 01:59:43 +02:00
Martchus fb3702e311 Don't seek at the end for each top-level element
Rather use the previously determined file size to
determine the max element size.
2017-08-17 20:05:32 +02:00
Martchus 78ceef49fb Replace 'inline constexpr' with only 'constexpr' 2017-08-17 18:15:03 +02:00
Martchus 03383a18b9 Add GenericFileElement::copyPreferablyFromBuffer() 2017-06-17 00:29:49 +02:00
Martchus b97192abd3 Use std::make_unique provided by C++14 2017-02-05 21:02:40 +01:00
Martchus 477ac9884b Use _wopen under Windows to support unicode filenames 2016-12-21 00:42:31 +01:00
Martchus 0cf30edbff Fix decoration for static builds 2016-08-29 15:43:05 +02:00
Martchus 80f65f3cc1 Fix typo 2016-06-18 00:00:49 +02:00
Martchus 7e058f289c Improve API doc 2016-06-15 22:53:39 +02:00
Martchus e0437c0a43 skip invalid bytes when parsing EBML 2016-03-13 22:00:23 +01:00
Martchus 000eb92506 fixed buffer being released instead of discarded 2015-12-21 00:03:04 +01:00
Martchus 238ca0cef9 added methods to buffer elements 2015-11-26 14:26:16 +01:00
Martchus 5a15d956e8 added endOffset() 2015-11-21 01:07:52 +01:00
Martchus aa50c2d8b3 fixed includes 2015-09-06 19:57:33 +02:00
Martchus 15a03a0029 improved format detection for MP4 tracks 2015-07-13 00:57:38 +02:00
Martchus 3332423fca added method to manually denote the offset of the first child 2015-07-07 02:58:29 +02:00
Martchus 7106e8650b improved format detection 2015-06-12 02:35:50 +02:00
Martchus c452b009ae improved media format detection; other minor improvements 2015-06-07 00:18:28 +02:00
Martchus 033e313c74 First commit 2015-04-22 19:22:01 +02:00