Geoffroy Couprie
195db6bc84
Consumer starts with 0 needed bytes
2015-02-23 12:13:19 +01:00
Geoffroy Couprie
79f0042328
count remaining moov bytes
2015-02-23 12:02:39 +01:00
Geoffroy Couprie
e1e1f4a3c8
fix mvhd parsing
2015-02-23 01:21:55 +01:00
Geoffroy Couprie
cea8caf6d7
Feed the consumer an array of the required size
2015-02-23 00:51:09 +01:00
Geoffroy Couprie
f7a5d25128
Improve the seeking logic a bit
...
I am not proud of the syntax yet. I still need to solve
the case of subparsers in the state machine that are given
too much data, and coming back to the parent parser afterwards
2015-02-23 00:29:29 +01:00
Geoffroy Couprie
c8ad5a75ac
Managing state while handling array size is painful
...
This will move into the consumer handling code
2015-02-22 14:36:26 +01:00
Geoffroy Couprie
a2b2190ff3
should call end() when ConsumerDone is returned
2015-02-20 19:42:44 +01:00
Geoffroy Couprie
ebfbb26a29
Fix compilation of documentation code
2015-02-20 19:42:06 +01:00
Geoffroy Couprie
53a3542120
remove warnings
2015-02-20 19:37:03 +01:00
Geoffroy Couprie
1a0ff85673
Fix commented code
2015-02-20 19:21:53 +01:00
Geoffroy Couprie
8dd68c18ae
Example of seeking customer with mp4
2015-02-20 19:19:26 +01:00
Geoffroy Couprie
e121f0aa6f
Remove useless lifetime declarations
2015-02-20 18:51:40 +01:00
Geoffroy Couprie
1eecaba724
add seeking in consumers
2015-02-20 13:29:27 +01:00
Geoffroy Couprie
d6960981eb
Test the consumer usage on MP4
2015-02-20 11:15:21 +01:00
Geoffroy Couprie
81a562cb39
Await returns the number of bytes remaining
...
I am not sure this will be the final behaviour. It seems
clunky, but is usable for now
2015-02-20 11:13:41 +01:00
Geoffroy Couprie
077d1c1bdb
incomplete in consumer
2015-02-19 23:09:13 +01:00
Geoffroy Couprie
744f489f3e
remove some warnings
2015-02-19 18:46:20 +01:00
Geoffroy Couprie
8a94b6a318
producer can seek
2015-02-19 18:45:49 +01:00
Geoffroy Couprie
59de09ad36
Add an end method to consumers
2015-02-19 18:45:22 +01:00
Geoffroy Couprie
a312fd6f8a
update the file producer to the new io
2015-02-18 17:49:30 +01:00
Geoffroy Couprie
18c49e4672
With big endian parsers, I can now parse MVHD
2015-02-18 12:09:05 +01:00
Geoffroy Couprie
79de2da65c
parse f32 and f64
2015-02-17 23:52:10 +01:00
Geoffroy Couprie
d863278e93
Create the big endian uint parsers (8, 16, 32, 64 bits)
2015-02-17 23:25:17 +01:00
Geoffroy Couprie
1b4f270544
remove useless code
2015-02-17 22:47:20 +01:00
Geoffroy Couprie
681e6f15fd
bump version to 0.1.5
2015-02-17 22:20:10 +01:00
Geoffroy Couprie
8a46dd2bcc
Remove some warnings and update the slicing syntax
2015-02-17 18:33:10 +01:00
Geoffroy Couprie
37dfdf1122
Fix lifetime error with rustc f1bb6c2f4
2015-02-17 17:54:39 +01:00
Geoffroy Couprie
a62148a917
At last, rename the traits to something more sensible
2015-02-17 17:40:41 +01:00
Geoffroy Couprie
90cd558248
bump version to 0.1.4
2015-02-17 16:36:10 +01:00
Geoffroy Couprie
a4a5482a3d
Adapt the INI parser to optional parsing in chain
2015-02-17 16:34:44 +01:00
Geoffroy Couprie
1d4ddb8199
remove useless logs
2015-02-17 16:16:06 +01:00
Geoffroy Couprie
6837acd503
document the options in chains
2015-02-17 16:11:58 +01:00
Geoffroy Couprie
4bd9378c10
implement options in the chain macro
2015-02-17 16:05:12 +01:00
Geoffroy Couprie
70650ab93d
optional parsers can return Incomplete
2015-02-17 13:54:36 +01:00
Geoffroy Couprie
e753e519e7
bump version to 0.1.3
2015-02-16 14:56:46 +01:00
Geoffroy Couprie
45487ecee5
update the docs
2015-02-16 14:56:09 +01:00
Geoffroy Couprie
fefa5b748a
Put the closure at the end of the chain parser
2015-02-16 14:54:49 +01:00
Geoffroy Couprie
d218e40b38
add Travis image
2015-02-16 14:39:29 +01:00
Geoffroy Couprie
ed55e6ee0e
bump version to 0.1.2
2015-02-16 14:37:18 +01:00
Geoffroy Couprie
4efd8b2c87
document the new chaining macro
2015-02-16 14:36:25 +01:00
Geoffroy Couprie
497b9e2c2e
remove producer's logs
2015-02-16 14:31:01 +01:00
Geoffroy Couprie
41b7de7601
The new macro simplifies the syntax
2015-02-16 14:30:30 +01:00
Geoffroy Couprie
6b19b6ea79
generalize the chaining parser
2015-02-16 14:25:59 +01:00
Geoffroy Couprie
52f6fbb441
simplify code by using map and flat_map
2015-02-15 23:59:24 +01:00
Geoffroy Couprie
b92778f07f
missing flat_map implementation for <&[u8], &[u8]>
2015-02-15 23:37:19 +01:00
Geoffroy Couprie
9ec6f67c59
return Incomplete with a 0
2015-02-15 23:36:46 +01:00
Geoffroy Couprie
bd42f9edd0
debugging code
2015-02-15 21:28:21 +01:00
Geoffroy Couprie
c40cb6ffbe
fix last atom parsing
2015-02-15 21:27:12 +01:00
Geoffroy Couprie
a881a90085
create the mvhd structs, but too lazy to parse them now
2015-02-15 21:04:20 +01:00
Geoffroy Couprie
7e3d60ce01
Parse the list of atoms
2015-02-15 20:43:57 +01:00