132c514e3f
*: returning &mut Self from setters was an awful idea
...
Deref breaks things.
2015-10-04 03:21:52 +02:00
e7cd9fd94f
codec/encoder: set the medium if it's unknown
2015-10-01 23:34:59 +02:00
8570e3a5b4
codec/encoder/video: add inline attributes
2015-10-01 20:40:17 +02:00
f3d6f901be
codec/encoder/video: add mb_lmin and mb_lmax writers
2015-10-01 20:39:50 +02:00
1497c645be
codec/encoder/video: also check width and height in encode
2015-10-01 01:28:56 +02:00
3ba84fb7ea
codec/encoder/video: check the passed frame is in the proper format
2015-09-27 20:30:44 +02:00
e1e6e8cca7
codec/encoder/audio: check the passed frame is in the proper format
2015-09-27 20:30:14 +02:00
510e8604b6
*: refactor setters to return self
2015-09-26 18:01:23 +02:00
66284eb045
codec: add magic traits to get codecs by name and id
2015-09-25 21:33:08 +02:00
2ca44d08d4
*: fix UB with CString usage
2015-09-22 02:44:13 +02:00
c8a95364a2
encoder/{audio,video}: add flush()
methods`
2015-09-19 12:37:28 +02:00
de8585b24d
codec/encoder: add set_max_bit_rate()
2015-09-18 21:44:35 +02:00
2366506e63
codec/encoder: rename set_rate()
to set_bit_rate()
...
This commit serves the purpose to remove ambiguity:
- The decoder actually calls the getter for this field `bit_rate()`
- The audio decoder/encoder have methods called `{set_}rate()` for the _rate`
- The encoder/audio `set_rate()` shadows the encoder/mod `set_rate()`
2015-09-18 21:44:14 +02:00
9736980b02
codec/context: make destructors safe
2015-09-17 17:33:31 +02:00
bc2a39a48b
codec/encoder: add set_time_base()
...
The documentation [1] states: `encoding: MUST be set by user`.
[1]: https://ffmpeg.org/doxygen/trunk/structAVCodecContext.html#ab7bfeb9fa5840aac090e2b0bd0ef7589
2015-09-13 20:21:07 +02:00
91134301a5
encoder/video: add getter methods needed for video transcoding
2015-09-09 20:05:42 +02:00
29450c4260
{en,de}coder/audio: add frame_size()
method
2015-09-08 19:11:18 +02:00
f2fb08e491
util/dictionary: refactor and make more sound
2015-09-08 18:26:29 +02:00
fbf5cd94eb
codec: make lifetimes saner
2015-09-04 16:28:56 +02:00
a2979c828d
encoder/audio: add getters for fields where setters exist
2015-09-02 16:15:02 +02:00
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
2d3b77f43b
codec/encoder/audio: add set_channel_layout()
2015-08-30 16:39:00 +02:00
0d80d5e3de
codec/encoder/audio: add set_format()
2015-08-30 16:38:32 +02:00
370890d1cf
codec/encoder/audio: add set_rate()
2015-08-30 16:38:00 +02:00
40c13a7238
codec/encoder: remove deprecated set_time_base()
2015-08-30 16:26:26 +02:00
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
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
62acd3ef02
*: use Into<Rational> instead of Rational for setters
2015-08-25 15:53:46 +02:00
bb4263b7be
util/rational: some more refactoring
2015-06-25 22:23:33 +02:00
1e5d77816a
*: update to 2.7
2015-06-19 01:04:49 +02:00
d56ac34413
*: use is_null instead of == ptr::null()
2015-06-08 15:48:28 +02:00
ff1b880be6
*: make internal pointer handling safer
2015-06-04 03:03:19 +02:00
5e56fc5e04
codec/encoder: add frame_rate accessor
2015-05-31 19:06:23 +02:00
547ea2829e
codec/encoder/video: implement DerefMut
2015-05-28 20:16:00 +02:00
6f07c48a04
codec/encoder/subtitle: implement DerefMut
2015-05-28 20:15:47 +02:00
cd9db3adc5
codec/encoder: implement DerefMut
2015-05-28 20:15:29 +02:00
f6e1690292
codec/encoder/audio: implement DerefMut
2015-05-28 20:15:13 +02:00
5b80b10949
util/error: refactor error handling
2015-05-24 18:51:34 +02:00
18d91a9dd9
codec/encoder/video: change width and height to u32
2015-05-18 23:31:02 +02:00
fc7016a8c1
codec/encoder/video: add some accessors
2015-05-16 22:50:01 +02:00
e02bd1e763
codec/encoder: add some accessors
2015-05-16 22:47:38 +02:00
4fe66b6735
codec/encoder/decision: add enum
2015-05-16 22:41:01 +02:00
2de64a1a37
codec/encoder/comparison: add enum
2015-05-16 22:40:44 +02:00
457bffbeb2
codec/encoder/prediction: add enum
2015-05-16 22:40:17 +02:00
d68a9192ba
codec/encoder/motion_estimation: add enum
2015-05-16 22:39:48 +02:00
757088f46c
codec: refactor decoder and encoder
2015-05-16 17:28:25 +02:00