228 Commits

Author SHA1 Message Date
lummax
a082998e48 format/context: add write_header{_with}() methods 2015-09-02 16:14:38 +02:00
lummax
a48233cbfe format/context: add new_stream() method 2015-09-02 16:13:31 +02:00
lummax
471a768b8e format/context: implement Context opening as output 2015-09-02 14:52:02 +02:00
lummax
9b612fc90f format: rename open* function to open_input* 2015-09-02 14:51:56 +02:00
lummax
b5c7d27f96 frame/video: implement From<Frame> 2015-09-02 12:43:52 +02:00
lummax
71d14e15ba frame/audio: implement From<Frame> 2015-09-02 12:43:44 +02:00
lummax
0e83f8a0c4 encoder/audio: add set_channels()
For this a method for `ChannelLayout` to retrieve the number of channels was
also added.
2015-08-31 22:59:35 +02:00
lummax
5332dabffa util/frame/video: set alignment to 32 in av_frame_get_buffer()
In all places where the function `av_frame_get_buffer()` was used on a video
frame in the ffmpeg sources the value `32` was used as an alignment.
2015-08-31 22:47:29 +02:00
lummax
c0049beaba util/frame/audio: set alignment to 0 in av_frame_get_buffer()
In all places where the function `av_frame_get_buffer()` was used on an audio
frame in the ffmpeg sources the value `0` was used as an alignment.

Also [1] states the value `0` as the default alignment.

[1]: http://www.ffmpeg.org/doxygen/2.7/group__lavu__sampfmts.html#gaa7368bc4e3a366b688e81938ed55eb06
2015-08-31 22:43:46 +02:00
lummax
3091e20f2d codec/packet: fix pts(): return Option 2015-08-30 22:15:20 +02:00
lummax
edcddc91e7 format/stream: add set_time_base() 2015-08-30 16:39:28 +02:00
lummax
2d3b77f43b codec/encoder/audio: add set_channel_layout() 2015-08-30 16:39:00 +02:00
lummax
0d80d5e3de codec/encoder/audio: add set_format() 2015-08-30 16:38:32 +02:00
lummax
370890d1cf codec/encoder/audio: add set_rate() 2015-08-30 16:38:00 +02:00
lummax
f2fc59f25d codec/packet: add rescale_ts() method 2015-08-30 16:37:39 +02:00
lummax
40c13a7238 codec/encoder: remove deprecated set_time_base() 2015-08-30 16:26:26 +02:00
lummax
c867dd6259 codec: improve encoder state transitions
This commit improves the state transitions for the `codec::*` structs as
discussed in #7.
2015-08-29 21:19:14 +02:00
lummax
ac5d8cfbe8 examples/metadata: adapt example to new decoder state transitions 2015-08-29 21:10:25 +02:00
lummax
891b87f25d codec/decoder: adapt accessors to new state transitions 2015-08-29 21:09:39 +02:00
lummax
ee6004d05e codec: improve decoder state transitions
This commit improves the state transitions for the `codec::*` structs as
discussed in #7.
2015-08-29 21:08:31 +02:00
meh
8ed092c0c3 codec: use Option<_> in the getter API 2015-08-29 16:15:57 +02:00
meh
b39d8df4ee examples/codec-info: fix field names 2015-08-28 21:28:57 +02:00
meh
81badeb10d codec/video: fix style 2015-08-28 21:28:28 +02:00
meh
f223ada727 codec/video: fix style 2015-08-28 21:26:38 +02:00
meh
a85bd6d6c8 examples/codec-info: print capabilities and profiles 2015-08-28 21:25:36 +02:00
meh
a373d9bf3f codec: add profiles getter 2015-08-28 21:25:23 +02:00
meh
e8db20c86b codec/capabilities: add Capabilities and getter 2015-08-28 21:20:57 +02:00
lummax
5fff2ab123 examples/codec-info: add example 2015-08-28 20:37:36 +02:00
lummax
59b1eead16 codec: add several getters 2015-08-28 20:36:55 +02:00
meh
13c9f8e5ab examples/metadata: cleanup and find best streams 2015-08-28 16:33:19 +02:00
meh
549727b084 format/context: implement best stream retrieval 2015-08-28 16:33:04 +02:00
meh
b839b5fe2f *: implement ExactSizeIterator where possible 2015-08-25 16:13:42 +02:00
meh
62acd3ef02 *: use Into<Rational> instead of Rational for setters 2015-08-25 15:53:46 +02:00
meh
2baf1deaab rational: add From<(i32, i32)> for Rational 2015-08-25 15:50:18 +02:00
meh
a282d85662 format/stream: avoid unsoundness splitting Stream into StreamMut 2015-08-25 15:45:55 +02:00
lummax
d1fa9bd864 examples/metadata: add a metadata fetching example 2015-08-24 14:04:55 +02:00
lummax
fa5f07d67c cargo: use bitlags 0.3 to get Debug implementation 2015-08-24 14:04:50 +02:00
lummax
3c9c4f926f util/dictionary: implement Iterator and IntoIterator 2015-08-19 14:24:03 +02:00
lummax
f486b7c051 format/context: expose the metadata dictionary 2015-08-19 14:01:27 +02:00
meh
e063da22a4 frame/side_data: add inline attributes 2015-08-14 19:33:06 +02:00
Aman Gupta
83d3156c62 codec/packet: expose predicates for packet flags 2015-08-14 19:32:22 +02:00
meh
03b1d25fde time: add inline attributes 2015-08-05 19:34:43 +02:00
meh
5d718ffdb9 picture: add inline attributes 2015-08-05 19:34:05 +02:00
meh
a8eceeada1 media: add inline attributes 2015-08-05 19:33:29 +02:00
meh
7dc9858ee0 frame/video: change some inline attributes 2015-08-05 19:32:48 +02:00
meh
61b2e5b81b frame/audio: change some inline attributes 2015-08-05 19:31:37 +02:00
meh
f9d365876b rational: add inline attributes 2015-08-05 17:10:02 +02:00
meh
19b0351574 frame/audio: add inline attributes 2015-08-05 17:08:15 +02:00
meh
3c138fe189 frame/audio: make Sample unsafe and add more implementations 2015-08-04 15:42:34 +02:00
meh
898069692d frame/video: make Component unsafe 2015-08-04 15:31:05 +02:00