Michael Niedermayer
044f7275d3
ffv1: add optional per slice CRCs to detect undamaged slices.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b4fc53856d
ffv1: move most fields from the frame header to the slice headers with ffv1.3
...
This will allow decoding a single undamaged slice even if all others are lost
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9408316a85
ffv1: refactor slice decoding init loop so that the first is less a special case
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8456089f50
ffv1: clear slice state in decode_slice()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c7a435aab2
ffv1: split clear_slice_state() out so individual slices can be cleared.
...
This allows us to clear outside of the main thread for example.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
32883c0667
ffv1: split init_slice_state() out so individual slices can be inited
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d7a4c43f18
ffv1: Add a CRC check to the global header with version 1.3
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
fa1b2c8e18
ffv1: attempt to workaround intel CC fate issue.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
2b8374e920
ffv1: Fix size mismatch in encode_line.
13 years ago
Michael Niedermayer
1d80c8db27
ffv1: set slice geometry based on user specified slices.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8dfbc1c5cf
ffv1: allow enabling of version 2 by using some of its features.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1b295a17d7
ffv1: fix version=2 chroma handling
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5612359501
ffv1: add a minor version field beginning with ffv1.3
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
3dde147ff9
cosmetics: Consistently place static, inline and av_cold attributes/keywords.
13 years ago
Paul B Mahol
ae2c33b0c2
cosmetics: remove superfluous curly brackets
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ed45636e16
ffv1enc: switch to ff_alloc_packet2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e01f478dd2
ffv1enc: Check context_model
...
Fixes crash
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
1eabd71c2b
ffv1: PIX_FMT_YUV444P10 support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
65491fa3d5
ffv1: PIX_FMT_YUV444P9 & PIX_FMT_YUV422P9 support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
278d88689b
ffv1enc: switch to encode2().
13 years ago
Martin Storsjö
9cf0841ef3
dsputil: Add ff_ prefix to the dsputil*_init* functions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
25893ad6c9
ffv1: Warn the user if transparency is stored.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
83e2e9315a
ffv1: PIX_FMT_GRAY8 support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
2396206fb4
ffv1: Assume encoding all bits is wanted if bits_per_raw_sample == 0.
13 years ago
Carl Eugen Hoyos
cadd9ab6aa
Cosmetics: Move a block in ffv1's encode_init().
...
Makes the next patch smaller.
13 years ago
Paul B Mahol
6833fe4342
ffv1: PIX_FMT_GRAY16 support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
9b9bf5ab73
ffv1: cosmetics: indentation
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
ec09230c9a
ffv1dec: PIX_FMT_YUV440P support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
917803babd
ffv1enc: PIX_FMT_YUV440P support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
0a3a69e8d7
ffv1dec: use correct linesize
...
Apparently this did not break anything.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
c8eba9f9d5
ffv1dec: PIX_FMT_YUVA444P support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
b0a30ea7c8
ffv1enc: PIX_FMT_YUVA444P support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
ab7da16ea4
ffv1dec: PIX_FMT_YUVA420P support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
7054629f04
ffv1enc: PIX_FMT_YUVA420P support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4b03d96022
ffv1dec: use PIX_FMT_0RGB32 when there is no transparency plane
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2027d073ae
ffv1dec: transparency plane support.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
492aab8589
ffv1enc: PIX_FMT_0RGB32 support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f7b160e829
ffv1enc: Store transparency plane.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Laurent Aimar
46b004959b
ffv1: Fixed size given to init_get_bits() in decoder.
...
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Laurent Aimar
8362a0ffed
Fixed size given to init_get_bits() in ffv1 decoder.
...
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
14 years ago
Mans Rullgard
6728aaf6d8
ffv1: remove unused tables
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
294e5475c2
ffv1: fix undefined behavior with insane widths.
...
The new tables is large enough to prevent this together with our image size checks.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
189db9c982
ffv1: fix 16bits multithreading
...
fixes ticket237
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
7b874dcc00
ffv1: Add PIX_FMT_YUV420P9 support.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
7a3a259840
ffv1dec: output PIX_FMT_YUV422P10 and PIX_FMT_YUV420P10 when possible.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
0a6b1a9f21
Replace int_fast integer types with their sized standard posix counterparts.
...
The _fast integer types provide no realworld benefits, but may introduce
portability issues and are just plain ugly.
14 years ago
Michael Niedermayer
b0e1d0d9ee
ffv1enc: support PIX_FMT_YUV420P10 & PIX_FMT_YUV422P10
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
4737a59373
ffv1: set internal frame defaults
...
Another fix missed before the vsrc_buffer changes.
14 years ago