568 Commits

Author SHA1 Message Date
Zhiming Wang
bd35f013f8
util::color: implement .name() for {Primaries, Range, TransferCharacteristic} 2018-09-14 21:22:47 -04:00
Zhiming Wang
b387e1de48
Add README to explain what this fork is about 2018-09-13 17:41:49 -04:00
Zhiming Wang
e9870589b6
filter/mod: fix mutability 2018-09-10 16:22:28 -04:00
Zhiming Wang
2c5abbfe33
Add missing macros (FFmpeg 4.0.2) 2018-09-10 16:22:16 -04:00
Zhiming Wang
37d47c0d6e
Fix AV_PIX_FMT_XVMC situation 2018-09-10 15:08:52 -04:00
Zhiming Wang
8199541f09
Drop obselete macros (obselete wrt FFmpeg 4.0) 2018-09-10 14:39:28 -04:00
Tadas Barzdžius
67b7f13305 format/stream: add set_metadata function to StreamMut 2018-04-10 16:24:21 +02:00
Tadas Barzdžius
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
Tadas Barzdžius
20c7ef399a format/stream: add id accessor 2017-12-06 16:13:46 +01:00
Adam Sypniewski
94ebdf143c *: add the newest enum values from ffmpeg-sys 2017-11-29 20:49:54 +01:00
fengalin
28b7a82ac1 format: add support for Chapters
Read chapters from an input context and add chapters to an output context.

Note: unlike avformat_new_stream, the equivalent function for chapter is private:
avpriv_new_chapter (part of libavformat/internal.h). I couldn't find any other
solution but re-implementing it in format::context::output::add_chapter.
2017-09-23 20:42:51 +02:00
meh
d29deedad9 crate: bump ffmpeg-sys version 2017-09-23 20:42:23 +02:00
Tadas Barzdžius
7d980a693e *: fix warnings
- Don't use deprecated function for packet dropping
- Fix compiler warning about values, which do not need to be mutable
2017-09-19 14:36:35 +02:00
Tadas Barzdžius
052d342baf format: fix segmentation fault
Double free error.

On failure avformat_open_input frees AVFormatContext. I had it wrapped with context::Input::wrap. On avformat_open_input failure it would free AVFormatContext and Drop implementation for context::Input would try to call avformat_close_input on same AVFormatContext resulting in segmentation fault.
2017-08-21 19:38:36 +02:00
Tadas Barzdžius
5afe774f40 crate: update bitflags 2017-07-10 11:35:49 +02:00
Victor Nivet
206ccd4e5a format/stream: add stream metadata 2017-07-08 17:07:46 +02:00
Tadas Barzdzius
991bbc24e8 format: add interrupt callback support 2017-07-08 17:05:44 +02:00
Tadas Barzdžius
5ac0527bdc *: use latest ffmpeg-sys using bindgen
* Update bindings to newest ffmpeg version for new ffmpeg-sys, which is mostly generated by bindgen
* Bring back removed feature flags
* Fix whitespace formating
* Remove prepended enum names to enum variants
* Remove unneeded allows
2017-07-08 17:00:27 +02:00
Ivan Molodetskikh
8cf47c7ec6 format/pixel: implement FromStr for Pixel 2017-06-28 10:53:24 +02:00
Ivan Molodetskikh
8b4693d04c frame/video: get linesize through self.stride() 2017-06-22 22:16:46 +02:00
Ivan Molodetskikh
27d1e7a3fa frame/video: add plane_width() 2017-06-22 22:16:46 +02:00
Ivan Molodetskikh
403407bf2c format/pixel: add Descriptor::{name, log2_chroma_w}() 2017-06-22 22:16:46 +02:00
Ivan Molodetskikh
1095c8842e format/pixel: add Descriptor::nb_components() 2017-06-22 22:16:46 +02:00
Ivan Molodetskikh
a5a112713c util: fix formatting 2017-06-22 22:16:46 +02:00
Ivan Molodetskikh
1dd672546d util: fix code style 2017-06-22 22:16:46 +02:00
Ivan Molodetskikh
62739b803d util: fix formatting 2017-06-22 22:16:46 +02:00
Ivan Molodetskikh
0f48e9472b frame/video: make plane_height() public 2017-06-22 22:16:46 +02:00
Ivan Molodetskikh
c873287eb8 frame/video: use correct height in video frame data getters 2017-06-22 22:16:46 +02:00
Ivan Molodetskikh
c0327cebdc format/pixel: add format::pixel::Descriptor 2017-06-22 22:16:46 +02:00
Ivan Molodetskikh
471b48ddd4 format/stream: add avg_frame_rate accessors 2017-06-14 13:02:19 +02:00
Ivan Molodetskikh
9e933fa4fb codec/encoder/video: add colorspace and color_range accessors 2017-06-14 13:01:59 +02:00
Ivan Molodetskikh
b14dd01126 frame/audio: fix return type of frame::Audio::plane_mut() 2017-06-14 13:01:15 +02:00
Ivan Molodetskikh
6ad3d42482 software: fix typo in #[cfg] 2017-06-14 13:00:49 +02:00
Tadas Barzdžius
b67e4eb6d9 format/context: close AVIOContext before freeing AVFormatContext 2017-04-27 17:58:37 +02:00
meh
ef11b2bec4 format/context/output: return the Dictionary on write_header_with 2017-02-25 19:30:08 +01:00
meh
8562de8e44 format/context/ouptut: revert pass muxer options to avformat_write_header"
This reverts commit e04e9da29806271ed4cd956e3084f3b9145c748a.

There's already a function for that, `write_header_with`.
2017-02-25 19:28:02 +01:00
meh
b48521108e *: update dependencies 2017-02-19 01:45:05 +01:00
meh
575b440267 dictionary/owned: impl Default 2017-02-01 17:21:31 +01:00
meh
38d1e882f2 crate: update dependencies 2017-02-01 17:20:29 +01:00
main()
e04e9da298 format/context/output: pass muxer options to avformat_write_header 2017-02-01 17:18:19 +01:00
panicbit
2aebc761dd util/format: add CUDA pixel format 2017-01-05 16:21:28 +01:00
meh
90291de572 frame/video: add stride() getter 2016-12-28 23:42:29 +01:00
Tae-il Lim
edb6d91f59 codec/context: more Into 2016-12-03 01:44:56 +01:00
Tae-il Lim
2ca2ff4a2c examples: fix errors 2016-12-03 01:43:34 +01:00
Tae-il Lim
8609619a5d codec: impl AsMut for all Context wrappers 2016-12-03 01:43:30 +01:00
Tae-il Lim
4df56b516f codec/parameters: impl AsRef for all codec::Context wrappers 2016-12-03 01:43:23 +01:00
Tae-il Lim
36ac2513c1 codec/parameters: make api more flexible and consistent 2016-12-03 01:43:21 +01:00
Tae-il Lim
f1ce26a137 codec/parameters: add medium and id methods 2016-12-03 01:42:40 +01:00
Tae-il Lim
606847cc50 codec: introduce Parameters
As of ffmpeg 3.1, a new `AVCodecParameters` type and related API introduced.
This commit contains minimal changes to support new API.
2016-12-03 01:41:29 +01:00
Tae-il Lim
00ff69021d build/travis: use yasm 2016-11-30 14:51:24 +01:00