summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* avfilter/avf_showcwt: add qdrt frequency scalePaul B Mahol2023-07-092-0/+11
|
* avfilter/avf_showcwt: add cbrt frequency scalePaul B Mahol2023-07-092-0/+11
|
* avfilter/avf_showcwt: add sqrt frequency scalePaul B Mahol2023-07-092-0/+11
|
* fftools/ffmpeg: fix negative timestamps at the beginning of the encodingMarton Balint2023-07-091-13/+13
| | | | | | | | Also fix a couple of possible overflows while at it. Fixes the negative initial timestamps in ticket #10358. Signed-off-by: Marton Balint <[email protected]>
* avdevice/decklink_enc: use 64bit format string for BMD timebase instead of ↵Marton Balint2023-07-091-1/+1
| | | | | | | | | | | | | | | | long long BMDTimeValue is defined as LONGLONG on Windows, but int64_t on Linux/Mac. Fixes format string warnings: libavdevice/decklink_enc.cpp: In function ‘void construct_cc(AVFormatContext*, decklink_ctx*, AVPacket*, klvanc_line_set_s*)’: libavdevice/decklink_enc.cpp:424:48: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘BMDTimeValue {aka long int}’ [-Wformat=] ctx->bmd_tb_num, ctx->bmd_tb_den); ~~~~~~~~~~~~~~~ ^ libavdevice/decklink_enc.cpp:424:48: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘BMDTimeValue {aka long int}’ [-Wformat=] Signed-off-by: Marton Balint <[email protected]>
* avfilter/adynamicequalizer_template: fix peak filterPaul B Mahol2023-07-091-1/+1
|
* avfilter/af_adynamicequalizer: simplify calculationsPaul B Mahol2023-07-092-7/+11
|
* avformat/evc: Don't cast const away, avoid loopAndreas Rheinhardt2023-07-091-11/+6
| | | | Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/evcdec: Check that enough data has been readAndreas Rheinhardt2023-07-091-0/+2
| | | | | | | | Fixes potential use of uninitialized values in evc_read_nal_unit_length(). Reviewed-by: James Almer <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avutil: fix build failure on osx 10.4Pavel Koshevoy2023-07-082-3/+3
| | | | | | | | | | | libavutil/random_seed.c calls arc4random_buf which is not available on OSX 10.4 Tiger, but the configuration script tests for arc4random which is available. Fix the configuration test to match the actual API used. Co-authored-by: James Almer <[email protected]> Signed-off-by: James Almer <[email protected]>
* lavfi/vf_libplacebo: add contrast recovery optionsNiklas Haas2023-07-082-0/+21
| | | | | New upstream option. Enabled by default in the high-quality preset upstream, so enable it by default here.
* lavfi/vf_libplacebo: deprecate hybrid_mix optionNiklas Haas2023-07-082-13/+9
| | | | Deprecated upstream in libplacebo v6.292.
* fate/cbs: add more VVC testsJames Almer2023-07-076-0/+10
| | | | Signed-off-by: James Almer <[email protected]>
* avcodec/cbs_h266: use exp_tile_height when checking the allowed range for ↵James Almer2023-07-071-1/+1
| | | | | | | | pps_num_exp_tile_rows_minus1 Fixes warnings about variable set but not used. Signed-off-by: James Almer <[email protected]>
* avcodec/cbs_h266: fix use of uninitialized valueJames Almer2023-07-071-1/+6
| | | | | | And fix the allowed range for ph_log2_diff_max_bt_min_qt_intra_slice_luma while at it. Signed-off-by: James Almer <[email protected]>
* avcodec/nvenc: set idrPeriod to gopLength unconditionallyZhao Zhili2023-07-071-14/+4
| | | | | | | When intra_refresh is enabled, gopLength is equal to NVENC_INFINITE_GOPLENGTH. gopLength should be 1 at least. Signed-off-by: Zhao Zhili <[email protected]>
* avcodec/nvenc: fix intraRefreshPeriod settingZhao Zhili2023-07-071-3/+3
| | | | | | | Regression since 99dfdb45. intraRefreshPeriod access cc->gopLength, which has been overwritten to NVENC_INFINITE_GOPLENGTH before. Fixes #10445.
* lavf/dv: stop setting a random video bitrateAnton Khirnov2023-07-071-1/+0
| | | | A real value is determined from the bytestream.
* lavc/dvdec: export bitrateAnton Khirnov2023-07-073-2/+5
| | | | | | | | | | Changes the result of fate-mxf-probe-dv25, where the bitrate is now exported. Also changes the result of fate-bsf-dv-error-marker, where the exported bitrate is now different. Note that the codec layer bitrate does not match the container bitrate, because container timing is 25fps, while the DV profile is 50.
* lavc/decode: do not perform decoding when sending draining packetsAnton Khirnov2023-07-071-1/+1
| | | | | | | | | This way decoding errors will not be returned when the user starts draining the decoder, avoiding confusion over whether draining did or did not start. Fixes failures of fate-h264-attachment-631 for certain numbers of frame threads (e.g. 5).
* lavc/decode: move submitting input packets to bitstream filtersAnton Khirnov2023-07-071-10/+27
| | | | | | | Do it from ff_decode_get_packet() rather than from avcodec_send_packet(). This way all nontrivial stages of the decoding pipeline (i.e. other than just placing a packet at its entrance) are pull-based rather than a mix of push an pull.
* lavc/bsf: move IS_EMPTY() to packet_internal()Anton Khirnov2023-07-072-6/+7
| | | | It will be useful in other places.
* lavc/decode: track whether the caller started draining with a separate flagAnton Khirnov2023-07-071-3/+12
| | | | | | | Decoding pipeline has multiple stages, some of which may have their own delay (e.g. bitstream filters). The code currently uses AVCodecInternal.draining to track all of them, but they do not have to all be in sync.
* lavc: move AVCodecInternal.last_audio_frame to EncodeContextAnton Khirnov2023-07-072-9/+10
| | | | It does not need to be visible outside of encode.c.
* lavc: add generic-encode-layer private dataAnton Khirnov2023-07-074-10/+26
| | | | | Move AVCodecInternal.intra_only_flag to it, should should not be visible outside of encode.c.
* lavc: add generic-decode-layer private dataAnton Khirnov2023-07-075-7/+26
| | | | | Move AVCodecInternal.nb_draining_errors to it, should should not be visible outside of decode.c.
* lavc: reindent after previous commitAnton Khirnov2023-07-072-9/+9
|
* lavc/avcodec: split flushing into decode- and encode-specific functionsAnton Khirnov2023-07-074-14/+31
| | | | Will allow making some state private to encoding/decoding in the future.
* lavc: add a header for internal generic-layer APIsAnton Khirnov2023-07-076-22/+56
| | | | | | | | | | The goal is to distinguish between APIs provided by the generic layer to individual codecs and APIs internal to the generic layer. Start by moving ff_{decode,encode}_receive_frame() and ff_{decode,encode}_preinit() into this new header, as those functions are called from generic code and should not be visible to individual codecs.
* avformat/evcdec: Avoid nonsense castsAndreas Rheinhardt2023-07-071-3/+3
| | | | | | | | | | | | | For uint8_t buf[EVC_NALU_LENGTH_PREFIX_SIZE], &buf still points to the beginning of buf, but it is of type "pointer to array of EVC_NALU_LENGTH_PREFIX_SIZE uint8_t" (i.e. pointer arithmetic would operate on blocks of size EVC_NALU_LENGTH_PREFIX_SIZE). This is of course a different type than uint8_t*, which is why there have been casts in evc_read_packet(). But these are unnecessary if one justs removes the unnecessary address-of operator. Reviewed-by: James Almer <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* fftools/ffplay: fix typo in frame_queue_destoryQiTong Li2023-07-061-4/+4
| | | | | | | | Not sure if the function naming frame_queue_destory is intended because "destory" is not really a word. Changing it to "destroy" makes more sense. Signed-off-by: QiTong Li <[email protected]> Signed-off-by: Marton Balint <[email protected]>
* avcodec/mpeg12dec: ignore picture start code in extradata for AVID mpeg2 filesMarton Balint2023-07-061-0/+5
| | | | | | | | | AVID IMX MPEG2 files in MOV seems to have extradata like this: 00000000: 0000 0018 4143 4c52 4143 4c52 3030 3031 ....ACLRACLR0001 00000010: 0000 0001 0000 0000 ........ Signed-off-by: Marton Balint <[email protected]>
* avutil/random_seed: add support for gcrypt and OpenSSL as source of randomnessJames Almer2023-07-062-1/+17
| | | | | Reviewed-by: Anton Khirnov <[email protected]> Signed-off-by: James Almer <[email protected]>
* avcodec/cbs_h266: add support for Adaptation parameter set NALU typeJames Almer2023-07-064-0/+308
| | | | | Reviewed-by: Nuo Mi <[email protected]> Signed-off-by: James Almer <[email protected]>
* cbs_h266: add range extension supportFrank Plowman2023-07-062-8/+96
| | | | | | | | | | | | example clips: * 12b444vvc1_E_Sony_2 * 12b444Ietsrc_A_Kwai_2 * 10b444P16_D_Sony_2 * 12b444Iepp_A_Sharp_2 * 12b444SPetsrc_B_Kwai_2 Co-authored-by: Nuo Mi <[email protected]> Signed-off-by: James Almer <[email protected]>
* avfilter/vf_bwdif: Add neon for filter_line3John Cox2023-07-062-0/+300
| | | | | Signed-off-by: John Cox <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
* avfilter/vf_bwdif: Add a filter_line3 method for optimisationJohn Cox2023-07-063-3/+129
| | | | | | | | | | | | | | | | | | | | | | Add an optional filter_line3 to the available optimisations. filter_line3 is equivalent to filter_line, memcpy, filter_line filter_line shares quite a number of loads and some calculations in common with its next iteration and testing shows that using aarch64 neon filter_line3s performance is 30% better than two filter_lines and a memcpy. Adds a test for vf_bwdif filter_line3 to checkasm Rounds job start lines down to a multiple of 4. This means that if filter_line3 exists then filter_line will not sometimes be called once at the end of a slice depending on thread count. The final slice may do up to 3 extra lines but filter_edge is faster than filter_line so it is unlikely to create any noticable thread load variation. Signed-off-by: John Cox <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
* avfilter/vf_bwdif: Add neon for filter_lineJohn Cox2023-07-064-5/+234
| | | | | | | | Exports C filter_line needed for tail fixup of neon code Adds neon for filter_line Signed-off-by: John Cox <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
* avfilter/vf_bwdif: Add neon for filter_edgeJohn Cox2023-07-064-4/+205
| | | | | | | | | Adds clip and spatial macros for aarch64 neon Exports C filter_edge needed for tail fixup of neon code Adds neon for filter_edge Signed-off-by: John Cox <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
* tests/checkasm: Add test for vf_bwdif filter_edgeJohn Cox2023-07-061-0/+54
| | | | | Signed-off-by: John Cox <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
* avfilter/vf_bwdif: Add neon for filter_intraJohn Cox2023-07-065-3/+203
| | | | | | | | | | Adds an outline for aarch neon functions Adds common macros and consts for aarch64 neon Exports C filter_intra needed for tail fixup of neon code Adds neon for filter_intra Signed-off-by: John Cox <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
* tests/checkasm: Add test for vf_bwdif filter_intraJohn Cox2023-07-061-0/+37
| | | | | Signed-off-by: John Cox <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
* avcodec/cbs_h266: add support for Decoding capability information NALU typeJames Almer2023-07-054-0/+55
| | | | Signed-off-by: James Almer <[email protected]>
* avcodec/cbs_h266: add support for Operating point information NALU typeJames Almer2023-07-053-0/+56
| | | | Signed-off-by: James Almer <[email protected]>
* avcodec/cbs_h266: store RowHeightVal and ColWidthVal in the contextJames Almer2023-07-052-18/+22
| | | | | | | Stop overwriting values from the bitstream arrays pps_tile_column_width_minus1 and pps_tile_row_height_minus1. Signed-off-by: James Almer <[email protected]>
* avcodec/cbs_h266: don't infer derived valuesJames Almer2023-07-051-3/+3
| | | | | | The macro is meant for coded values only. Signed-off-by: James Almer <[email protected]>
* avfilter/avf_showcwt: fix offset to take into initial delayPaul B Mahol2023-07-051-1/+1
| | | | Syncs audio with video.
* avfilter/avf_showcwt: fix output frame pts if inlink timebase does not match ↵Paul B Mahol2023-07-051-0/+1
| | | | sample rate
* avfilter/af_aresample: switch to activatePaul B Mahol2023-07-051-8/+46
|
* avutil/random_seed: include stddef.hPhilip Langdale2023-07-051-0/+1
| | | | The new function uses size_t, which has to be defined.