Commit Graph

32 Commits

Author SHA1 Message Date
7a8643f2cc Migrate crates to Rust edition 2021 (#24)
* Migrate ffmpeg-sys to Edition 2021

* Migrate ffmpeg to Edition 2021

* Remove now-redundant imports

* Reorder imports after edition migration
2024-04-06 21:31:36 -04:00
22ad8b9598 Bump version to use ffmpeg 5 2022-02-11 17:58:42 +01:00
6f44fb79fd codec: deprecate encoder's encode/flush and decoder's decode 2020-08-08 01:16:44 +08:00
307f52c002 Reformat code with latest cargo fmt 2020-06-02 17:54:31 +08:00
0bcd4550b8 *: format code with rustfmt and fix clippy suggestions
* Add avformat_close_input call to clean up AVFormantContext
* Format code with rustfmt
* Fix clippy lint double_parens
* Fix clippy lint deref_addrof
* Fix clippy lint identity_conversion
* Fix clippy lint match_ref_pats
* Fix clippy lint cast_lossless
* Fix clippy lint cmp_null
* Fix clippy lint clone_on_ref_ptr
* Fix clippy lint map_clone
* Fix clippy lint needless_borrow
* Fix clippy lint needless_pass_by_value
* Fix clippy lints for examples
* Fix clippy lint unused_io_amount
* Fix clippy lint new_without_default
* Ignore inline_always clippy lint
* Add vim temp files to .gitignore
2018-04-10 16:06:42 +02:00
9e933fa4fb codec/encoder/video: add colorspace and color_range accessors 2017-06-14 13:01:59 +02:00
8609619a5d codec: impl AsMut for all Context wrappers 2016-12-03 01:43:30 +01:00
4df56b516f codec/parameters: impl AsRef for all codec::Context wrappers 2016-12-03 01:43:23 +01:00
859c01f268 codec/encoder/video: add missing feature flag (quant_bias) 2016-05-20 14:08:32 +02:00
e4fcdad658 codec/encoder/video: add missing feature flag (motion_est) 2016-05-20 14:08:32 +02:00
meh
6bb6a806ed codec/encoder/video: add open_with() constructor 2015-10-26 20:26:21 +01:00
meh
306b9c6698 codec/packet: refactoring to allow zero-copy packet creation 2015-10-09 14:09:35 +02:00
meh
132c514e3f *: returning &mut Self from setters was an awful idea
Deref breaks things.
2015-10-04 03:21:52 +02:00
meh
8570e3a5b4 codec/encoder/video: add inline attributes 2015-10-01 20:40:17 +02:00
meh
f3d6f901be codec/encoder/video: add mb_lmin and mb_lmax writers 2015-10-01 20:39:50 +02:00
meh
1497c645be codec/encoder/video: also check width and height in encode 2015-10-01 01:28:56 +02:00
meh
3ba84fb7ea codec/encoder/video: check the passed frame is in the proper format 2015-09-27 20:30:44 +02:00
meh
510e8604b6 *: refactor setters to return self 2015-09-26 18:01:23 +02:00
meh
66284eb045 codec: add magic traits to get codecs by name and id 2015-09-25 21:33:08 +02:00
c8a95364a2 encoder/{audio,video}: add flush() methods` 2015-09-19 12:37:28 +02:00
91134301a5 encoder/video: add getter methods needed for video transcoding 2015-09-09 20:05:42 +02:00
meh
f2fb08e491 util/dictionary: refactor and make more sound 2015-09-08 18:26:29 +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
meh
62acd3ef02 *: use Into<Rational> instead of Rational for setters 2015-08-25 15:53:46 +02:00
meh
bb4263b7be util/rational: some more refactoring 2015-06-25 22:23:33 +02:00
meh
1e5d77816a *: update to 2.7 2015-06-19 01:04:49 +02:00
meh
ff1b880be6 *: make internal pointer handling safer 2015-06-04 03:03:19 +02:00
meh
547ea2829e codec/encoder/video: implement DerefMut 2015-05-28 20:16:00 +02:00
meh
5b80b10949 util/error: refactor error handling 2015-05-24 18:51:34 +02:00
meh
18d91a9dd9 codec/encoder/video: change width and height to u32 2015-05-18 23:31:02 +02:00
meh
fc7016a8c1 codec/encoder/video: add some accessors 2015-05-16 22:50:01 +02:00
meh
757088f46c codec: refactor decoder and encoder 2015-05-16 17:28:25 +02:00