Commit graph

27 commits

Author SHA1 Message Date
2db227c5f9 Cleanup, use EbmlSlice as name 2018-04-03 23:38:31 -04:00
0909a20a8c generalize WebmEventSource -> EbmlEventSource 2018-04-03 23:23:19 -04:00
c92273625e Cleanup poll_event's try_decode hack. 2018-04-03 21:19:46 -04:00
bebe593c30 Lifetime simplification reflecting probably-better understanding of them 2018-04-03 19:07:16 -04:00
719b11dd01 Zap some generic code that wasn't going anywhere 2018-04-02 19:37:36 -04:00
56a7284e32 Focus on Webm case specifically to get working code
can retry generic EBML later
2018-04-02 18:37:47 -04:00
11bb7f4412 Fix EBML Source lifetimes, breaking the chunker 2018-04-02 13:55:13 -04:00
417cbf49c7 Create EbmlEventSource trait since Iterators/Streams can't return borrows 2018-03-30 01:33:13 -04:00
cdcff869aa Replace Schema types with a FromEbml trait on the Element type
simplify lifetimes
2018-03-25 21:33:38 -04:00
01e81c6a9f Fix tests 2017-08-10 00:14:42 -04:00
509dcd3827 Generalize string writing to binary writing 2017-08-09 01:49:44 -04:00
b76f244022 Encode Timecodes into WebM stub 2017-08-07 01:12:18 -04:00
120fe26b6b Cleanup results more 2017-08-07 01:11:43 -04:00
ff4c2d796e Remove IoResult<usize> return, value not needed and confuses ? operator 2017-08-07 00:55:57 -04:00
45fe373ee6 Implement writing a barebones EBML header from scratch 2017-08-06 01:21:53 -04:00
95fcc6c86b Add fixed-size varint encoder function to simplify writing complex EBML element sizes 2017-08-06 01:20:51 -04:00
b5bbf952b0 Stub some EBML encoding funcs 2017-08-02 01:30:14 -04:00
cf4821599e Make encode_varint use a generic Writer 2017-07-30 01:43:09 -04:00
da81b741a3 Change encode_varint to write into a Bufmut 2017-07-10 21:26:00 -04:00
a1e8aef5d3 Swap to "bytes" crate 2017-07-10 19:36:20 -04:00
8d73a2e577 Fix range of varint encoder; add more boundary tests. 2017-07-08 01:08:21 -04:00
b1b157c6be Make varint sizing logic use smallest working size;
fix bad constant/test.
2017-07-07 02:27:30 -04:00
6c99eca673 Initial ebml varint encoder 2017-07-07 01:25:32 -04:00
7109e30dcb Use ByteOrder function in decode_uint 2017-07-03 01:44:11 -04:00
51156d9fde implement decode_uint 2017-06-29 02:38:08 -04:00
ba9d00d0b4 Move tests under appropriate modules 2017-06-28 01:54:30 -04:00
8411363035 Break code into modules 2017-06-27 02:31:17 -04:00