Paul B Mahol
ff72256235
avformat/gif: use last frame duration
2023-05-20 13:06:38 +02:00
James Almer
bd9d984c11
fate/demux: fix fate-cavs-demux
...
Signed-off-by: James Almer <jamrial@gmail.com>
2023-05-20 00:10:54 -03:00
James Almer
d55743c809
avfilter/af_surround: replace double constants with float variants
...
This is cleaner than the approach in d1ded7310a
.
Signed-off-by: James Almer <jamrial@gmail.com>
2023-05-19 17:12:04 -03:00
James Almer
4d885271bb
avutil/mathematics: add missing constants
...
Including float variants for all of them.
Signed-off-by: James Almer <jamrial@gmail.com>
2023-05-19 17:10:58 -03:00
James Almer
1b05d27346
avcodec/libdav1d: export decoder frame delay
...
As this is an AV_CODEC_CAP_OTHER_THREADS decoder, threading is handled by the
underlying library. In this case, the frame delay is calculated by libdav1d
based on the values from avctx->thread_count and the private max_frame_delay
option.
Export said delay reported by the library in AVCodecContext.delay
Reviewed-by: Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2023-05-19 15:29:31 -03:00
Paul B Mahol
613f716450
avfilter/vf_mix: improve speed even more by avoiding using filter private context
2023-05-19 19:32:22 +02:00
Rick Kern
c789a2324a
lavc/videotoolboxenc: better compat_keys documentation
...
Added documentation that describes when compat_keys should be used,
and why it exists.
Signed-off-by: Rick Kern <kernrj@gmail.com>
2023-05-19 09:48:26 -04:00
xufuji456
5cd304298e
avcodec/videotoolboxenc: add low-latency encoding
...
When using low-latency mode, it eliminates frame reordering
and follows a one-in-one-out encoding mode
Signed-off-by: xufuji456 <839789740@qq.com>
Signed-off-by: Rick Kern <kernrj@gmail.com>
2023-05-19 09:40:28 -04:00
Zhao Zhili
47430a3cb1
avcodec/cavs_parser: fix finding the end of a frame
...
Use the next I/P/B or start code as the end of current frame.
Before the patch, extension start code, user data start code,
sequence end code and so on are treated as the start of next
frame.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-05-20 04:03:44 +08:00
Pierre-Anthony Lemieux
2838138975
fate/imf: remove redundant code
2023-05-18 15:03:34 -07:00
Pierre-Anthony Lemieux
dbe43bca25
fate/imf: fix memory leak
2023-05-18 15:03:15 -07:00
James Almer
a2a0a81184
avformat/yuvmpegenc: add support for rawvideo input
...
The demuxer exports rawvideo, so there's no reason for the muxer to only
work with wrapped_avframe.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2023-05-18 17:31:37 -03:00
Paul B Mahol
4c695bfa65
avfilter/f_graphmonitor: make mode option of type flags
2023-05-18 18:12:42 +02:00
Paul B Mahol
8cdbe3abb6
avfilter/f_graphmonitor: add commands support
2023-05-18 18:12:42 +02:00
Paul B Mahol
386de9319e
avfilter/f_graphmonitor: add nozeroeof mode
2023-05-18 18:12:42 +02:00
James Almer
4adb6da7a6
avutil/frame: remove one layer of indirection in av_frame_replace()
...
And don't force copy side data.
Signed-off-by: James Almer <jamrial@gmail.com>
2023-05-18 11:52:16 -03:00
James Almer
4f9799bd88
avcodec/h264_picture: use ff_thread_replace_frame()
...
Signed-off-by: James Almer <jamrial@gmail.com>
2023-05-18 10:52:30 -03:00
James Almer
3fe74c9017
avcodec/utils: add ff_thread_replace_frame()
...
Signed-off-by: James Almer <jamrial@gmail.com>
2023-05-18 10:16:03 -03:00
James Almer
01d444c077
avutil/frame: add av_frame_replace
...
Signed-off-by: James Almer <jamrial@gmail.com>
2023-05-18 10:15:59 -03:00
James Almer
63767b79a5
avutil/frame: deprecate palette_has_changed
...
Not only this is information that relies on the concept of a sequence of
frames, which is completely out of place as a field in AVFrame, but there are
no known or intended uses of this field.
Signed-off-by: James Almer <jamrial@gmail.com>
2023-05-18 08:45:23 -03:00
Paul B Mahol
01d9a84ef5
avfilter/avf_showspectrum: check for allocation error
2023-05-18 12:06:38 +02:00
Paul B Mahol
c48eff209c
avcodec/ccaptions_dec: correct flushing output on EOF
...
Prevents infinite flushing same last output.
2023-05-18 11:59:34 +02:00
Clement Lecigne
96c30affba
avcodec/hevc_ps: add proper bound checks around cm_ref_layer_id in colour_mapping_table.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
2023-05-17 17:51:36 -03:00
Mark Thompson
8450531059
av1_parse: Don't reject zero-size padding OBUs
...
Padding OBUs are not required to be nonempty.
2023-05-17 19:38:45 +00:00
Mark Thompson
9c830f4f65
av1_parse: Remove unused getbits instance
2023-05-17 19:38:45 +00:00
Mark Thompson
dce6cf2c36
cbs_av1: Don't reject unknown metadata
...
Accept it and pass it through unchanged.
The standard requires that decoders ignore unknown metadata, and indeed
this is tested by some of the Argon coverage streams.
2023-05-17 19:38:45 +00:00
Mark Thompson
bee912cb63
cbs_av1: Add tracing headers for metadata types
...
Make it a little easier to interpret metadata in trace output.
2023-05-17 19:38:45 +00:00
Tobias Rapp
aa6eeb29cb
doc/ffmpeg: Extend documentation for sws_flags option
...
Clarify that -sws_flags are only applied to simple filtergraphs as a
default, not complex filtergraphs. Add a reference to the scaler
options.
2023-05-17 17:14:54 +02:00
Leo Izen
d4c48ee7f3
fate/jpg: add RGB mjpeg fate tests
...
Adds FATE tests for RGB jpegs to test commit
0b352e350e
.
2023-05-17 12:37:42 +02:00
Samuel Mira
416fd1b43b
avcodec/mediacodec: Add VP8 encoder
...
Connected FFmpeg to Mediacodec VP8 encoder.
Signed-off-by: Samuel Mira <samuel.mira@qt.io>
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-05-17 19:20:57 +08:00
Samuel Mira
acd37fd566
avcodec/mediacodec: Add AV1 encoder
...
Connected FFmpeg to Mediacodec AV1 encoder
Signed-off-by: Samuel Mira <samuel.mira@qt.io>
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-05-17 19:19:51 +08:00
Hendrik Leppkes
6b2ae90411
avcodec/vdpau_mpeg4: fix order of quant matrix coefficients
...
The matrix coefficients are stored permutated for the IDCT,
rather then in plain raster order, and need to be un-permutated
for the hardware.
2023-05-15 18:30:54 +02:00
Hendrik Leppkes
308e4ae8e3
avcodec/vdpau_mpeg12: fix order of quant matrix coefficients
...
The matrix coefficients are stored permutated for the IDCT,
rather then in plain raster order, and need to be un-permutated
for the hardware.
2023-05-15 18:30:49 +02:00
Hendrik Leppkes
b3e938ef80
avcodec/nvdec_mpeg4: fix order of quant matrix coefficients
...
The matrix coefficients are stored permutated for the IDCT,
rather then in plain raster order, and need to be un-permutated
for the hardware.
2023-05-15 18:30:43 +02:00
Hendrik Leppkes
af8affb77e
avcodec/nvdec_mpeg2: fix order of quant matrix coefficients
...
The matrix coefficients are stored permutated for the IDCT,
rather then in plain raster order, and need to be un-permutated
for the hardware.
2023-05-15 18:30:38 +02:00
Anton Khirnov
9d70e74d25
lavc/libdav1d: fix exporting framerate
...
Same issues as in the previous commit.
2023-05-15 14:45:46 +02:00
Anton Khirnov
e10a5b91bc
lavc/av1*: fix exporting framerate
...
* take num_ticks_per_picture_minus_1 into account, since that is a part
of the framerate computation
* stop exporting num_ticks_per_picture_minus_1 into
AVCodecContext.ticks_per_frame, as that field is used for other
purposes (in conjunction with repeat_pict, which is not used at all by
av1)
2023-05-15 14:17:49 +02:00
Anton Khirnov
7be945a011
fftools/ffmpeg: rename transcode_init()
...
It does no initialization anymore, except for setting
transcode_init_done - the bulk of the function is printing the
input/output maps. It also cannot fail anymore, so remove the useless
return value.
2023-05-15 13:32:02 +02:00
Anton Khirnov
de6d60117e
fftools/ffmpeg_demux: stop logging to demuxer context
...
Only the demuxer itself should do that.
2023-05-15 13:32:02 +02:00
Anton Khirnov
c5d77dcbf1
fftools/ffmpeg_demux: move InputFile.ts_offset_discont,last_ts to private data
...
They are no longer used outside of ffmpeg_demux.
2023-05-15 13:32:02 +02:00
Anton Khirnov
ab223a4d8c
fftools/ffmpeg: stop accessing input format from decoding code
...
Export the corresponding flag in InputFile instead. This will allow
making the demuxer AVFormatContext private in future commits, similarly
to what was previously done for muxers.
2023-05-15 13:32:02 +02:00
Anton Khirnov
2ab9f247f7
fftools/ffmpeg: log corrupt-frame errors to the appropriate context
2023-05-15 13:32:02 +02:00
Anton Khirnov
a1002bc39c
fftools/ffmpeg: replace print_error() by more meaningful messages
2023-05-15 13:32:01 +02:00
Anton Khirnov
fd980b2615
fftools/ffmpeg_demux: reindent after previous commit
2023-05-15 13:32:01 +02:00
Anton Khirnov
9429624a76
fftools/ffmpeg: move discarding unused programs to ffmpeg_demux
...
This is a more appropriate place for this code.
2023-05-15 13:32:01 +02:00
Anton Khirnov
f9657b7443
fftools/ffmpeg: simplify tracking -readrate start time
...
There is no point in having a per-stream wallclock start time, since
they are all computed at the same instant. Keep a per-file start time
instead, initialized when the demuxer thread starts.
2023-05-15 13:32:01 +02:00
Anton Khirnov
6b0c984f0d
fftools/ffmpeg_demux: move InputStream.streamcopy_needed to private data
...
It is no longer used outside of ffmpeg_demux.
2023-05-15 13:32:01 +02:00
Anton Khirnov
7df3253c5a
fftools/ffmpeg_demux: move InputStream.wrap_correction_done to private data
...
It is no longer used outside of ffmpeg_demux.
2023-05-15 13:32:01 +02:00
Anton Khirnov
df25e21ce7
fftools/ffmpeg_demux: move InputStream.[next_]dts to private data
...
They are no longer used outside of ffmpeg_demux.
2023-05-15 13:32:01 +02:00
Anton Khirnov
6d7b43ed44
fftools/ffmpeg_demux: move InputStream.[saw_]first_d?ts to private data
...
They are no longer used outside of ffmpeg_demux.
2023-05-15 13:32:01 +02:00