aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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 <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* 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 <liqitong@163.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* 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 <cus@passwd.hu>
* avutil/random_seed: add support for gcrypt and OpenSSL as source of randomnessJames Almer2023-07-062-1/+17
| | | | | Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/cbs_h266: add support for Adaptation parameter set NALU typeJames Almer2023-07-064-0/+308
| | | | | Reviewed-by: Nuo Mi <nuomi2021@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* 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 <nuomi2021@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/vf_bwdif: Add neon for filter_line3John Cox2023-07-062-0/+300
| | | | | Signed-off-by: John Cox <jc@kynesim.co.uk> Signed-off-by: Martin Storsjö <martin@martin.st>
* 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 <jc@kynesim.co.uk> Signed-off-by: Martin Storsjö <martin@martin.st>
* 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 <jc@kynesim.co.uk> Signed-off-by: Martin Storsjö <martin@martin.st>
* 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 <jc@kynesim.co.uk> Signed-off-by: Martin Storsjö <martin@martin.st>
* tests/checkasm: Add test for vf_bwdif filter_edgeJohn Cox2023-07-061-0/+54
| | | | | Signed-off-by: John Cox <jc@kynesim.co.uk> Signed-off-by: Martin Storsjö <martin@martin.st>
* 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 <jc@kynesim.co.uk> Signed-off-by: Martin Storsjö <martin@martin.st>
* tests/checkasm: Add test for vf_bwdif filter_intraJohn Cox2023-07-061-0/+37
| | | | | Signed-off-by: John Cox <jc@kynesim.co.uk> Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec/cbs_h266: add support for Decoding capability information NALU typeJames Almer2023-07-054-0/+55
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/cbs_h266: add support for Operating point information NALU typeJames Almer2023-07-053-0/+56
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* 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 <jamrial@gmail.com>
* 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 <jamrial@gmail.com>
* 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.
* avutil/random_seed: add av_random_bytes()James Almer2023-07-054-13/+40
| | | | | | | Uses the existing code for av_get_random_seed() to return a buffer with cryptographically secure random data, or an error if none could be generated. Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/random_seed: use fread() in read_random()James Almer2023-07-051-11/+12
| | | | | | | This ensures the requested amount of bytes is read. Also remove /dev/random as it's no longer necessary. Signed-off-by: James Almer <jamrial@gmail.com>
* vvc.h: Enable 16-bit support for VVC_MAX_POINTS_IN_QP_TABLENuo Mi2023-07-051-3/+4
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_h266: expand the bit depth range to 16 bitsFrank Plowman2023-07-051-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavfi/tonemap_vaapi: remove HDR metadataHaihao Xiang2023-07-051-0/+3
| | | | | | | The HDR metadata should be removed after HDR to SDR conversion, otherwise the output frame still has HDR side data. Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
* avfilter/adynamicequalizer_template: refactor and improve outputPaul B Mahol2023-07-052-38/+20
|
* bwdif_vulkan: clamp the temporarily interpolated sample spatiallyLynne2023-07-041-2/+1
| | | | | | | This makes the filter output match that of the C version. It was left intentionally while we figured out if it was better or not, and while it makes certain samples better, it makes static samples jump around slightly.
* avformat/asfdec_f: fix need_parsing flag for codec mpeg4Zhao Zhili2023-07-041-1/+1
| | | | | | AVSTREAM_PARSE_FULL_ONCE is only implemented for H.264. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
* avformat/asfdec_f: support bmp_tags_unofficialZhao Zhili2023-07-041-0/+4
| | | | Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
* avcodec/hevc_parse: check the size of hvcC is at least 23Zhao Zhili2023-07-041-1/+3
| | | | | | The code after the check skip 21 bytes and then read two bytes. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
* avcodec/hevc_parse: restrict configurationVersion to 0 and 1Zhao Zhili2023-07-041-5/+5
| | | | | | | | | | | The standard only defined configurationVersion 1. configurationVersion 0 is for backward compatibility predates the standard. This patch reduces the chance that some malformated streams being detected as hvcC. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
* fftools/ffplay: remove usage of internal AVInputFormat.read_seek fieldJames Almer2023-07-021-1/+1
| | | | | | | It's an internal field, so it should not be touched. Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: James Almer <jamrial@gmail.com>
* Add SMC vsynth testsTomas Härdin2023-07-025-0/+20
|
* avcodec/decode: Preserve AFD side data when going from AVPacket to AVFrameDevin Heitmueller2023-07-021-0/+1
| | | | | | | | This is needed to ensure that AFD data continues to work when capturing V210 video with the Decklink libavdevice input. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_enc: add support for SMPTE 2038 VANC packet outputDevin Heitmueller2023-07-027-2/+121
| | | | | | | | | | | | | | | | | Support decoding and embedding VANC packets delivered via SMPTE 2038 into the SDI output. We leverage an intermediate queue because data packets are announced separately from video but we need to embed the data into the video frame when it is output. Note that this patch has some additional abstraction for data streams in general as opposed to just SMPTE 2038 packets. This is because subsequent patches will introduce support for other data codecs. Thanks to Marton Balint for review/feedback. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: move queue_size to an argument for ↵Devin Heitmueller2023-07-023-5/+4
| | | | | | | | | | | | | | | | | | ff_decklink_packet_queue_init The existing queue initialization function would always sets it's maximum queue size to ctx->queue_size. But because we are introducing more queues we may want the sizes to differ between them. Move the specification of the queue size into an argument, which can be passed from the caller. This patch makes no functional change to the behavior. It is being made to accommodate Marton Balin's request to split out the queue size for the new VANC queue being introduced in a later patch. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* lavc/videotoolboxenc: fix enabling low-latency encodexufuji4562023-07-021-11/+7
| | | | | | | | | Use CFDictionarySetValue to enable low-latency encoding mode. Since the key is a type of "EncoderSpecification", instead of "CompressionProperty". Signed-off-by: xufuji456 <839789740@qq.com> Signed-off-by: Rick Kern <kernrj@gmail.com>
* fate/cbs: fix sample path for discard testsJames Almer2023-07-021-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_h266: fix typo for ols_mode_idc == 2Nuo Mi2023-07-021-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_h266: fix sign for pps_xxx_qp_offset_listNuo Mi2023-07-021-3/+3
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/cbs: simplify the filter_unit discard testsJames Almer2023-07-019-168/+20
| | | | | | | No need to generate intermediate files and probe them. We only care to know that the output of the bsf excludes the frames in question, and a simple checksum is enough. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/cbs_h266: store SubpicIdVal in the contextJames Almer2023-07-012-17/+18
| | | | | | And use it to derive CurrSubpicIdx Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/cbs_h266_syntax_template: Avoid shadowingAndreas Rheinhardt2023-07-011-3/+3
| | | | | Reviewed-by: Nuo Mi <nuomi2021@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/cbs_h266_syntax_template: Don't use uninitialized valueAndreas Rheinhardt2023-07-011-1/+1
| | | | | | | Just a typo. Fixes a warning from Clang. Reviewed-by: Nuo Mi <nuomi2021@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* doc/general_contents: update for recent additionsPaul B Mahol2023-06-301-1/+5
|
* fate/cbs: run the VVC tests within the fate-cbs targetJames Almer2023-06-301-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/tests/avcodec: Remove unnecessary internal.h inclusionAndreas Rheinhardt2023-06-301-1/+0
| | | | | | Forgotten in a688f3c13ce55c2ba51dbbb344564649f1bb52fe. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/hevc_ps: Constify VPS, SPS pointers when parsing PPSAndreas Rheinhardt2023-06-301-8/+9
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/cbs_h266: use VVC_MAX_VPS_COUNT for range checks and array sizeJames Almer2023-06-302-7/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>