Carl Eugen Hoyos
b1367f7e5e
lavc/dpx: Support GRAY12 colourspace.
8 years ago
Carl Eugen Hoyos
aec96e233f
lavc/dpx: Support decoding 12 bit colourspace with transparency information.
9 years ago
Carl Eugen Hoyos
d5ded429f2
lavc/dpx: Support decoding 10 bit colourspace with transparency information.
...
Fixes one sample from ticket #5639 .
9 years ago
Michael Niedermayer
c8aaae8e0f
avcodec/dpx: Move need_align to act per line
...
Fixes out of array read
Fixes: 61cf123c081ee2bb774d307c75bdb99e/asan_heap-oob_1224f76_5546_bee833ffae73f752b489b9eeaac52db7.dpx
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Vittorio Giovara
def97856de
lavc: AV-prefix all codec capabilities
...
Express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Carl Eugen Hoyos
2efaaf9476
Support decoding yuv dpx images.
10 years ago
Michael Niedermayer
18255441dd
avcodec/dpx: fix framerate
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Christophe Gisquet
4ba45c189c
dpx: use aligned line starts
...
SMPTE 268M-2003 specifies that each line starts at a 4-bytes boundary.
Therefore, modify correspondingly the input buffer strides and size.
Partially fixes ticket #3692 : DLAD_8b_3c_big.dpx still has inverted
colors, which might be related to endianness.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Christophe Gisquet
7cdef77b50
dpx: warn if encrypted
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Justin Ruggles
9e500efdbe
Add av_image_check_sar() and use it to validate SAR
11 years ago
Reimar Döffinger
d90ba411ab
dpx: use intfloat.h instead of deprecated intfloat_readwrite.h.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
11 years ago
Michael Niedermayer
e0e60c9211
avcodec/dpx: extract frame rate
...
Fixes part of Ticket3511
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Anton Khirnov
8451b5f00a
dpx: stop using deprecated avcodec_set_dimensions
11 years ago
Paul B Mahol
3abbf20962
dpx: abgr support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Paul B Mahol
23824b9698
avcodec/dpx: support for 8 and 16 bit luma only files
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Paul B Mahol
e745dc2d6f
avcodec/dpx: refactor pixel format selection
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Paul B Mahol
62078f25ee
avcodec/dpx: return different error code for unsupported depths
...
Also give better message in such cases.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Paul B Mahol
ee3d03bf4e
avcodec/dpx: make .long_name more descriptive
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Paul B Mahol
fc83c99c0b
avcodec/dpx: cosmetics: fix identation
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Paul B Mahol
0841652b54
avcodec/dpx: reformat avpriv_report_missing_feature messages
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Paul B Mahol
c3e0fbc507
avcodec/dpx: return proper error code for unsupported files
...
Also use avpriv_report_missing_feature().
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Michael Niedermayer
a927276fcc
avcodec/dpx: check packing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
23f105a830
avcodec/dpx: check encoding
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
fb726ef09a
avcodec/dpx: fix reading of the packing field
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
8cb7d20567
avcodec/dpx: fix reading 12bit dpx images, which have non zero padding bits
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
b2bed9325d
cosmetics: Group .name and .long_name together in codec/format declarations
11 years ago
Paul B Mahol
94ad38e2e8
dpx: use av_image_copy_plane()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
2f284c0170
dpxdec: Fix decoding of RGBA10
...
Fixes Ticket2392
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
1ec94b0f06
lavc: factorize ff_{thread_,re,}get_buffer error messages.
...
Coccinelle profile used:
@@
expression r, ctx, f, loglevel, str, flags;
@@
-if ((r = ff_get_buffer(ctx, f, flags)) < 0) {
- av_log(ctx, loglevel, str);
- return r;
-}
+if ((r = ff_get_buffer(ctx, f, flags)) < 0)
+ return r;
@@
expression r, ctx, f, loglevel, str;
@@
-if ((r = ff_reget_buffer(ctx, f)) < 0) {
- av_log(ctx, loglevel, str);
- return r;
-}
+if ((r = ff_reget_buffer(ctx, f)) < 0)
+ return r;
@@
expression r, ctx, f, loglevel, str, flags;
@@
-if ((r = ff_thread_get_buffer(ctx, f, flags)) < 0) {
- av_log(ctx, loglevel, str);
- return r;
-}
+if ((r = ff_thread_get_buffer(ctx, f, flags)) < 0)
+ return r;
...along with some manual patches for the remaining ones.
12 years ago
Anton Khirnov
759001c534
lavc decoders: work with refcounted frames.
12 years ago
Michael Niedermayer
cb85779d45
dpx: include offset in the total_size calculation
...
Fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
151067bbc2
dpx: Fix rounding in 10bit total_size calculation
...
This could have caused out of array reads
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
0c19b23bd5
dpx: return meaningful error codes.
12 years ago
Anton Khirnov
df9b956751
lavc: fix decode_frame() third parameter semantics for video decoders
...
It's got_frame, not data size
12 years ago
Anton Khirnov
594d4d5df3
lavc: add a wrapper for AVCodecContext.get_buffer().
...
It will be useful in the upcoming transition to refcounted AVFrames.
12 years ago
Peter Ross
f2dc82b90f
dpx: perform width/height upgrade and av_image_check_size earlier to prevent segfault on malformed input
...
Signed-off-by: Peter Ross <pross@xvid.org>
12 years ago
Paul B Mahol
9051025102
lavc: remove duplicated .capabilities
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Anton Khirnov
f174fbac3c
lavc: add CODEC_CAP_DR1 to all video decoders missing them
12 years ago
Georg Lippitsch
05b7315412
Fix DPX decoder
...
Rewrite the DPX decoder to work with provided sample DPXs at
http://samples.ffmpeg.org/image-samples/dpx_samples.zip
The decoder could only decode 8 and 10 bit without alpha correctly,
failing or even crashing at other flavors. This patch aims to fix
these issues, properly decoding all variants of DPX provided in the
referenced DPX sample zip. For 10 and 12 bit, the alpha channel
is ignored, but decoding is still possible.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Georg Lippitsch
5cc5d9d5f7
dpx: 10 and 12 bit decoding
...
Rewrite 10 bit dpx decoder to decode into GBRP10 color space
instead of converting to RGB48.
Add 12 bit decoder to decode into GBRP12 color space.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Derek Buitenhuis
965efc1673
dpx: Make start offset unsigned
...
Some corrupted files would end up with a negative offset,
and segfault.
Fixes bug #177 .
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
13 years ago
Nicolas George
0abab00303
dpx: invalid aspect ratio is 0/1, not 0/0.
13 years ago
Paul B Mahol
104ea00108
dpx: add CODEC_CAP_DR1
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Nicolas George
8b421fad24
dpx: sanitize aspect ratio.
...
Fixes some samples where the ratio is declared as -1/-1.
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
Carl Eugen Hoyos
dd55adb1a7
Support reading 64bit dpx images.
...
Reviewed-by: Jean First
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
Peter Ross
406629150c
DPX decoder: read sample aspect ratio
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago