Anton Khirnov
1f4cf92cfb
pthread_frame: merge the functionality for normal decoder init and init_thread_copy
...
The current design, where
- proper init is called for the first per-thread context
- first thread's private data is copied into private data for all the
other threads
- a "fixup" function is called for all the other threads to e.g.
allocate dynamically allocated data
is very fragile and hard to follow, so it is abandoned. Instead, the
same init function is used to init each per-thread context. Where
necessary, AVCodecInternal.is_copy can be used to differentiate between
the first thread and the other ones (e.g. for decoding the extradata
just once).
5 years ago
Paul B Mahol
be3a051ca8
avcodec/sheervideo: move tables to own header
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years ago
Michael Niedermayer
d8030c14bd
avcodec/sheervideo: Check input buffer size before allocating and decoding
...
Fixes: Timeout
Fixes: 1858/clusterfuzz-testcase-minimized-6450473802399744
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Clément Bœsch
67e370ee52
lavc: fix usages of av_get_codec_tag_string()
8 years ago
Carl Eugen Hoyos
46082c2b3f
lavc/sheervideo: Fix Y prediction for interlaced frames with transparency.
...
Based on 260de8a2
by Paul B Mahol.
Fixes ticket #6210 .
8 years ago
Carl Eugen Hoyos
c0e2846dcd
lavc/sheervideo: Increase av_get_codec_tag_string() input buffer size.
...
A size of 32 is typically used.
8 years ago
Paul B Mahol
6216b4780b
avcodec/sheervideo: print internal format in debug log
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
260de8a264
avcodec/sheervideo: fix Y prediction in decode_ybr(i) for older formats
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
dccea0ed0d
avcodec/sheervideo: fix YbYr format decoding
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
6098d4b8a8
avcodec/sheervideo: check build_vlc for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
1a57b464cf
avcodec/sheervideo: add 10-bit interlaced RGB(A) support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
9e9286e9ed
avcodec/sheervideo: add support for 10-bit interlaced YCbCr(A) 4:2:2
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
f0e7b06453
avcodec/sheervideo: fix argx format support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
2ed8baa614
avcodec/sheervideo: add support for 10-bit interlaced YCbCr(A) 4:4:4(:4)
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
c156420bce
avcodec/sheervideo: fix prediction for ybyr format
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
0a9e781b88
avcodec/sheervideo: fix predictions for c82p format
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
0c7fa152b9
avcodec/sheervideo: supports some other 8bit formats
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
e826ceeb55
avcodec/sheervideo: add interlaced YCbCr(A) 4:2:2:4 8-bit support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
131cb675cf
avcodec/sheervideo: add interlaced YCbCr(A) 4:4:4:4 8-bit support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
c206a32435
avcodec/sheervideo: fix order of operations for raw lines
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
60bac785c3
avcodec/sheervideo: add support for 8-bit interlaced (A)RGB
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
fdf832a986
avcodec: add BitJazz SheerVideo decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago