Clément Bœsch
eb4d220ae1
avcodec/dvbsubenc: fix onject/object typo
2020-08-22 19:02:01 +02:00
Clément Bœsch
80d2a33d83
avcodec/dvbsubenc: reindent after previous commit
2020-08-22 19:02:01 +02:00
Clément Bœsch
5fc075d53e
avcodec/dvbsubenc: merge rectangle encode code blocks
2020-08-22 19:02:01 +02:00
Clément Bœsch
4dbd055d5a
avcodec/dvbsub: add "enc" suffix to encoder
2020-08-22 19:02:01 +02:00
Clément Bœsch
346309a795
avcodec/dvbsub: remove useless indirection in dvbsub_encode.
2020-08-22 19:02:01 +02:00
Andreas Rheinhardt
01a580f141
avcodec/rzpaenc: Remove set-but-unused variable
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-08-22 09:23:30 +02:00
Derek Buitenhuis
3fc3d712a9
avcodec/libaomdec: Set SAR based on RenderWidth and RenderHeight
...
This is the same thing we do in libdav1d.c
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2020-08-21 23:58:10 +01:00
Michael Bradshaw
b97eb35308
avcodec/proresenc: infer array lengths
...
Signed-off-by: Michael Bradshaw <mjbshaw@google.com>
2020-08-21 15:43:52 -07:00
Paul B Mahol
6158029dfc
avcodec: add RPZA encoder
2020-08-21 22:46:07 +02:00
Michael Bradshaw
b30f737f7a
avcodec/proresenc: add support for PQ and HLG
...
Signed-off-by: Michael Bradshaw <mjbshaw@google.com>
2020-08-21 11:09:11 -07:00
Paul B Mahol
d2206f0c5b
avcodec/qdmc: reduce insanely huge tables
2020-08-21 13:55:50 +02:00
James Almer
23bbb01077
avcodec/h2645_parse: reset the H2645NAL type value before parsing a NAL header
...
This will prevent reporting a bogus value in the log message when
the header parsing fails.
Signed-off-by: James Almer <jamrial@gmail.com>
2020-08-20 13:50:11 -03:00
James Almer
1e41a9be34
avcodec/h2645_parse: skip empty NAL units earlier
...
No point in trying to parse nonexistent header bits.
Signed-off-by: James Almer <jamrial@gmail.com>
2020-08-20 13:50:01 -03:00
James Almer
a4d28ea030
avcodec/h2645_parse: always return 0 on successful h{264,evc}_parse_nal_header() calls
...
HEVC NALs are no longer being skipped based on their nuh_layer_id
value since ad326379c6 .
Signed-off-by: James Almer <jamrial@gmail.com>
2020-08-20 13:17:50 -03:00
James Almer
c56d787fe3
avcodec/decode: move the ff_decode_frame_props() prototype to the proper header
...
Signed-off-by: James Almer <jamrial@gmail.com>
2020-08-20 13:17:50 -03:00
Harry Mallon
a606e3b339
libavcodec/proresdec2: Setup qmat_chroma according to RDD36
...
Signed-off-by: Harry Mallon <harry.mallon@codex.online>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-08-20 13:21:20 +02:00
Jun Zhao
d5abb11738
lavc/libkvazaar: export encoded frame stats
...
Export choosen pict_type and qp.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2020-08-20 15:06:14 +08:00
Andriy Gelman
5df9724e42
avcodec/v4l2_context: return EAGAIN to signal full buffers
...
Return proper error when frame buffers are full. This path is triggered
on the DragonBoard 410c since the encoding API change in commit
827d6fe73d .
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
Reviewed-by: Mark Thompson <sw@jkqxz.net>
2020-08-16 17:39:13 -04:00
Limin Wang
d7af6d1469
avcodec/utils: calculate frame number of HEVC if the framerate > 30FPS
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-08-16 22:51:11 +08:00
James Almer
161d7f3fee
avcodec/bsf: improve the doxy for av_bsf_flush()
...
Mention an example scenario where the function should be used.
Signed-off-by: James Almer <jamrial@gmail.com>
2020-08-15 15:55:22 -03:00
James Almer
34a385b340
avcodec/qsvenc_h264: add missing atsc_a53.h include
...
Regression since 0de01da1d2
Signed-off-by: James Almer <jamrial@gmail.com>
2020-08-15 14:43:11 -03:00
James Almer
0de01da1d2
avcodec: move ff_alloc_a53_sei() to atsc_53
...
Signed-off-by: James Almer <jamrial@gmail.com>
2020-08-15 13:01:25 -03:00
James Almer
1ab3ae6fd5
avcodec/hevc_sei: use ff_parse_a53_cc() to parse A53 Closed Captions
...
Signed-off-by: James Almer <jamrial@gmail.com>
2020-08-15 13:01:19 -03:00
James Almer
c93ba51ef3
avcodec/h264_sei: use ff_parse_a53_cc() to parse A53 Closed Captions
...
Signed-off-by: James Almer <jamrial@gmail.com>
2020-08-15 13:01:13 -03:00
James Almer
6c1bf7c02e
avcodec/libdav1d: add support for A53 Closed Captions
...
Signed-off-by: James Almer <jamrial@gmail.com>
2020-08-15 13:01:08 -03:00
James Almer
1841921277
avcodec: split off A53 Closed Caption parsing code into its own file
...
Signed-off-by: James Almer <jamrial@gmail.com>
2020-08-15 13:01:00 -03:00
Limin Wang
392a2d0790
avcodec/libsvtav1: remove unneeded svt_av1_enc_deinit_handle()
...
It's for FF_CODEC_CAP_INIT_CLEANUP flag.
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-08-14 22:54:01 +08:00
Limin Wang
ad49dd7694
avcodec/mpeg12enc: support mpeg2 encoder const level
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-08-14 22:48:05 +08:00
Paul B Mahol
9f702fc8f4
avcodec: extend CFHD description
2020-08-14 10:52:28 +02:00
Xu Guangxin
6a941b5691
avcodec/av1_parse: use macro for MAX_OBU_HEADER_SIZE
...
Signed-off-by: James Almer <jamrial@gmail.com>
2020-08-13 23:48:40 -03:00
Mark Thompson
bb59bdbcd1
cbs: Mention all codecs in unit type comment
2020-08-12 22:02:03 +01:00
Alexander Strasser
b40dd2fdab
lavc/snowenc: Expose an option to set the rc_eq expression
...
Snow uses the ratecontrol module, but does not expose a way to set
the rc_eq expression. The default expression, set in the ratecontrol
module, will always be used.
Make it possible to set rc_eq by adding an AVOption to snowenc.
The option definition is mostly a copy from the mpegvideo common
options definition of rc_eq (libavcodec/mpegvideo.h), with some
minor style adjustments to be closer to the other snowenc option
initializer expressions.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
2020-08-12 17:35:38 +02:00
Alexander Strasser
ecd71916d1
lavc/aac_ac3_parser: fix potential overflow when averaging bitrate
...
The new code is analog to how it's done in our mpegaudio parser.
Acked-by: Jun Zhao <barryjzhao@tencent.com>
Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
2020-08-12 17:35:38 +02:00
Paul B Mahol
f95dac666c
avcodec/sheervideo: reduce size of vlc tables to normal values
2020-08-12 10:17:01 +02:00
Limin Wang
ed39d28ce7
avcodec/libsvtav1: fix copy and paste error
...
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-08-12 08:12:59 +08:00
Michael Niedermayer
6d7e522103
avcodec/agm: Mark fill_pixels() as av_always_inline
...
Speedup from 275sec to 142sec
Testcase: 24426/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AGM_fuzzer-5639724379930624
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-08-11 14:21:56 +02:00
Paul B Mahol
3f58dbca72
avcodec/cfhdenc: mark filter as always inline
2020-08-11 10:01:05 +02:00
Paul B Mahol
ba0825626a
avcodec/cfhdenc: optimize writting of small runcodes
2020-08-11 10:01:05 +02:00
Paul B Mahol
16b79f3d3a
avcodec/cfhdenc: improve quality vs size ratio
2020-08-11 10:01:04 +02:00
Michael Niedermayer
a5ac81952e
avcodec/jpeg2000dec: Check remaining data in packed_headers_stream before use
...
Fixes: out of array read
Fixes: 24487/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5165847820369920
Fixes: 24636/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5700973918683136
Fixes: 24683/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-6202883897556992
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-08-10 14:54:32 +02:00
Paul B Mahol
4ad77086b9
avcodec/cfhd: improve SampleIndex tag output
...
This tag is used for jumping to different channels in bitstream.
2020-08-09 18:47:30 +02:00
Paul B Mahol
17d1454a5f
avcodec/cfhd: log version tags too
2020-08-09 18:47:29 +02:00
Paul B Mahol
fc3546bece
avcodec/cfhd: read prescale table tag
...
Currently unused. Remove prescale shift tag as it
is not part of this codec.
2020-08-09 18:47:29 +02:00
Paul B Mahol
3ff7171a85
avcodec/cfhd: use init_get_bits8()
2020-08-09 18:47:29 +02:00
Paul B Mahol
25d07e1394
avcodec/cfhd: reindent
2020-08-09 18:47:28 +02:00
Paul B Mahol
8c7ea0c344
avcodec/cfhd: check if band encoding is valid
...
Also simplify lossless check as value of 5 for band encoding
always specify lossless mode.
2020-08-09 18:47:28 +02:00
Gautam Ramakrishnan
9ce787d61e
libavcodec/j2kenc: Support for all Progression orders
...
This patch allows for selecting the progression order
in the j2k encoder. However, all components and resolution
levels will use the same progression order and will not
feature the use of progression order change markers.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-08-09 14:58:24 +02:00
Paul B Mahol
14b84a2e99
avcodec/cfhdenc: free alpha buffer on closing
2020-08-08 19:59:06 +02:00
Paul B Mahol
0a8742a1e6
avcodec/cfhdenc: add gbrap12 pixel format support
2020-08-08 19:40:34 +02:00
Paul B Mahol
8d48e8d251
avcodec/cfhdenc: compand coefficients
...
Also use -quality private option and add more modes.
2020-08-08 12:05:39 +02:00