aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* lavc: deprecate channel count/layout changing side dataAnton Khirnov2022-03-155-1/+28
| | | | | | | | They are incompatible with the new channel layout scheme and no decoder uses them. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* lavu: support AVChannelLayout AVOptionsAnton Khirnov2022-03-154-13/+149
| | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* fate: add a channel_layout API testJames Almer2022-03-154-0/+380
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/channel_layout: Add a new channel layout APIAnton Khirnov2022-03-153-103/+1086
| | | | | | | | | | | | | The new API is more extensible and allows for custom layouts. More accurate information is exported, eg for decoders that do not set a channel layout, lavc will not make one up for them. Deprecate the old API working with just uint64_t bitmasks. Expanded and completed by Vittorio Giovara <vittorio.giovara@gmail.com> and James Almer <jamrial@gmail.com>. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/flashsv: Avoid deflating dataAndreas Rheinhardt2022-03-151-51/+38
| | | | | | | | | | | | | | | | Currently priming the zlib decompressor involves compressing data directly after having decompressed it and decompressing it again in order to set the "dictionary" and to initialize the adler32-checksum. Yet this is wasteful and can be simplified by synthetizing the compressed data via non-compressed blocks. This reduced the amount of allocations for the decoding part of fate-vsynth1-flashsv2, namely from total heap usage: 9,135 allocs, 9,135 frees, 376,503,427 bytes allocated to total heap usage: 2,373 allocs, 2,373 frees, 14,144,083 bytes allocated Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/flashsv: Avoid copying packetAndreas Rheinhardt2022-03-151-7/+8
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* aarch64: Only emit the PAC/BTI note section when targeting ELFMartin Storsjö2022-03-151-1/+1
| | | | | | | | | This avoids build errors if such features are enabled while targeting another binary format. (Using such features on other platforms might require some other form of signaling/setup though, but the ELF specific .note section isn't applicable at least.) Signed-off-by: Martin Storsjö <martin@martin.st>
* avfilter/vf_epx: stop doing read overflowPaul B Mahol2022-03-141-2/+2
|
* avcodec: Add dv marker bsfMichael Niedermayer2022-03-144-0/+170
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/target_dec_fuzzer: Adjust threshold for DFAMichael Niedermayer2022-03-141-0/+1
| | | | | | | | Fixes: Timeout Fixes: 45351/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DFA_fuzzer-5768895011618816 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/avf_abitscope: rename macro to less generic onePaul B Mahol2022-03-141-5/+5
|
* avfilter/vf_palettegen: add protection against potential divide by zeroYiyuan GUO2022-03-141-1/+1
| | | | | | | | | In libavfilter/vf_palettegen.c, the function get_avg_color requires that box->len greater than zero to avoid dividing by zero. However, the call sequence filter_frame -> get_palette_frame -> get_avg_color may not satisfy this precondition. Fixes #9222. Signed-off-by: Yiyuan GUO <yguoaz@gmail.com>
* avutil/hwcontext_vulkan: fix typo in undefZhao Zhili2022-03-141-1/+1
|
* avfilter/vf_fieldhint: add pattern mode of filteringPaul B Mahol2022-03-142-8/+27
|
* avfilter/af_afftdn: allow user to control number of bandsPaul B Mahol2022-03-142-1/+8
|
* avfilter/af_afftdn: use correct variable in for loopsPaul B Mahol2022-03-141-6/+6
| | | | Tehnically changes nothing as they are same value currently.
* fate: add decimate filter testPaul B Mahol2022-03-142-0/+248
|
* avfilter/af_afftdn: stop producing small impulsive noise at start of outputPaul B Mahol2022-03-141-6/+5
|
* avfilter/vf_decimate: also check for ready frames if not ppsrc is usedPaul B Mahol2022-03-131-2/+2
| | | | Fixes filtering when cascading multiple decimate filters.
* avcodec/libsvtav1: remove version check macro workaroundJames Almer2022-03-131-4/+0
| | | | | | The current minimum supported version defines the macro. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libsvtav1: fine tune qp mode settingsJames Almer2022-03-131-2/+1
| | | | | | As requested in https://gitlab.com/AOMediaCodec/SVT-AV1/-/issues/1829 Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libsvtav1: deprecate some optionsJames Almer2022-03-132-26/+31
| | | | | | svtav1-params should be used for these. Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/avf_showspectrum: stop rewriting ptsPaul B Mahol2022-03-131-5/+6
| | | | Also fix dropping of first frame for fullframe sliding.
* avfilter/af_afftdn: add way to control noise floor link for >1 channelsPaul B Mahol2022-03-132-0/+55
|
* avfilter/af_afftdn: improve residual trackingPaul B Mahol2022-03-131-3/+3
|
* avfilter/af_afftdn: rename some variables to less cryptic namePaul B Mahol2022-03-131-11/+10
|
* avfilter/af_afftdn: reduce some pointless pointer indirectionsPaul B Mahol2022-03-131-37/+48
|
* avfilter/af_afftdn: use define for sfm flags mask and sizePaul B Mahol2022-03-131-6/+8
| | | | Instead of hardcoding values.
* avfilter/af_afftdn: allow user to change ratio factorPaul B Mahol2022-03-132-4/+13
| | | | | While here change default to lower value as previous value were causing too much smearing on time axis of spectrogram.
* avfilter/af_afftdn: stop sharing non-shareable parameters between channelsPaul B Mahol2022-03-131-38/+67
|
* movenc: Use LIBAVFORMAT_IDENT instead of LIBAVCODEC_IDENTMartin Storsjö2022-03-131-1/+1
| | | | | | | | The muxer seems to have had one seemingly accidental use of LIBAVCODEC_IDENT, while LIBAVFORMAT_IDENT probably is the relevant one (which is used multiple times in the same file). Signed-off-by: Martin Storsjö <martin@martin.st>
* avfilter/af_afftdn: use RDFT insteadPaul B Mahol2022-03-121-24/+16
| | | | Makes spectral filtering less crude.
* avfilter/af_afftdn: reduce code duplicationPaul B Mahol2022-03-121-18/+1
|
* avfilter/af_afftdn: reduce scaling of input samplesPaul B Mahol2022-03-121-3/+3
| | | | It was multiplied too much.
* avfilter/af_afftdn: fix small memory leakPaul B Mahol2022-03-121-3/+3
|
* avfilter/af_afftdn: change noise profile to floating point precisionPaul B Mahol2022-03-121-20/+21
|
* avfilter/af_afftdn: generalize noise profile mean estimationPaul B Mahol2022-03-121-9/+16
|
* avfilter/af_afftdn: use single define for number of bands in noise profilePaul B Mahol2022-03-121-51/+52
|
* libavfilter: Remove DNNReturnType from DNN ModuleShubhanshu Saxena2022-03-1216-94/+92
| | | | | | | | | | This patch removes all occurences of DNNReturnType from the DNN module. This commit replaces DNN_SUCCESS by 0 (essentially the same), so the functions with DNNReturnType now return 0 in case of success, the negative values otherwise. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com> Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavfi/dnn_backend_common: Return specific error codesShubhanshu Saxena2022-03-122-30/+27
| | | | | | | Switch to returning specific error codes or DNN_GENERIC_ERROR when an error is encountered in the common DNN backend functions. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavfi/dnn_backend_native: Return Specific Error CodesShubhanshu Saxena2022-03-122-41/+45
| | | | | | | Switch to returning specific error codes or DNN_GENERIC_ERROR when an error is encountered. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavfi/dnn_backend_tf: Return Specific Error CodesShubhanshu Saxena2022-03-122-67/+85
| | | | | | | | Switch to returning specific error codes or DNN_GENERIC_ERROR when an error is encountered. For TensorFlow C API errors, currently DNN_GENERIC_ERROR is returned. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavfi/dnn_backend_openvino: Return Specific Error CodesShubhanshu Saxena2022-03-123-63/+89
| | | | | | | | Switch to returning specific error codes or DNN_GENERIC_ERROR when an error is encountered. For OpenVINO API errors, currently DNN_GENERIC_ERROR is returned. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavfi/dnn_io_proc: Return Specific Error CodesShubhanshu Saxena2022-03-122-26/+30
| | | | | | | This commit returns specific error codes from the functions in the dnn_io_proc instead of DNN_ERROR. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavfi/dnn: Error Specificity in Native Backend LayersShubhanshu Saxena2022-03-1214-30/+39
| | | | | | | This commit returns specific error codes from the execution functions in the Native Backend layers instead of DNN_ERROR. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* libavfilter: Prepare to handle specific error codes in DNN FiltersShubhanshu Saxena2022-03-125-20/+20
| | | | | | | This commit prepares the filter side to handle specific error codes from the DNN backends instead of current DNN_ERROR. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* avfilter/af_afftdn: remove special handling for first and last binPaul B Mahol2022-03-111-39/+6
|
* avfilter/af_afftdn: remove code that have marginal impact to denoisingPaul B Mahol2022-03-111-68/+0
|
* avformat/movenc: Simplify creating chapter track extradataAndreas Rheinhardt2022-03-111-53/+26
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/mov: Add test for muxing chaptersAndreas Rheinhardt2022-03-112-0/+56
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>