Commit Graph

118405 Commits

Author SHA1 Message Date
Paul B Mahol
f9f7627b90 avfilter/af_surround: remove dead store 2024-11-01 11:36:11 +01:00
Paul B Mahol
1bdc1d8791 avfilter/af_dialoguenhance: rework activate() 2024-11-01 11:28:34 +01:00
Paul B Mahol
fc55503fca avfilter/af_stereofield: rework activate() 2024-11-01 11:25:12 +01:00
Paul B Mahol
56fd1ce3ae avfilter/af_adrc: rework activate() 2024-11-01 11:21:13 +01:00
Paul B Mahol
beb0f183bf avfilter/af_apsyclip: rework activate() 2024-11-01 11:17:26 +01:00
Paul B Mahol
e12ebb1c77 avfilter/af_acentercut: rework activate() 2024-11-01 11:13:49 +01:00
Paul B Mahol
2d486ae068 avfilter/af_surround: remove duplicated check 2024-11-01 11:08:54 +01:00
Paul B Mahol
4826283c24 avfilter/af_ardftsrc: rework activate() call 2024-11-01 10:36:04 +01:00
Paul B Mahol
acfb2140ef avutil/tx_template: factor some repeated dereferencing out of pfa* loops 2024-11-01 08:28:22 +01:00
Paul B Mahol
bef3deb237 avutil/tx_template: factor multiplication out of the loop 2024-10-31 10:34:03 +01:00
Paul B Mahol
bba5310bfc avutil/tx_template: remove multiplications in inner loop of fft_pfa 2024-10-31 10:12:51 +01:00
Paul B Mahol
8c15ab617b avutil/tx_template: raise priority for butterfly prime codelets
Also add 3, 5 and 7 codelets while here.
2024-10-31 10:11:03 +01:00
Paul B Mahol
b202539d9f avfilter/surround_template: use fma() in overlap-add 2024-10-31 09:51:52 +01:00
Peter Ross
9fc88fe312 fate/vp60-interlace: add test
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:36:31 +01:00
Peter Ross
73cbf32294 avcodec/vp56: decode interlace content
Modification of patch submitted by Aurelien Jacobs (November 2007).

Fixes ticket #5581 and #5582.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:36:31 +01:00
Thomas Guillem
0888dcf918 avcodec/decode: clean-up if get_hw_frames_parameters fails
Fixes the following assert:

[00007f1df83d17e0] vaapi generic error: avcodec_get_hw_frames_parameters failed: -22
Assertion p_dst->hwaccel_threadsafe || (!dst->hwaccel && !dst->internal->hwaccel_priv_data) failed at libavcodec/pthread_frame.c:349

Reproduced from VLC with VAAPI, when fallbacking from hw to sw.

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:30:24 +01:00
James Almer
2ed0623058 avutil/hwcontext_vulkan: add missing packed YUV444 format mappings
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:30:24 +01:00
Pierre-Anthony Lemieux
a0a64e71f1 jpeg2000dec: fix tile-part header state reset
Fixes https://trac.ffmpeg.org/ticket/11266

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:30:24 +01:00
Ramiro Polla
f3837d7e21 checkasm/sw_range_convert: indent after previous couple of commits
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:30:24 +01:00
Ramiro Polla
d1cf450895 checkasm/sw_range_convert: test all supported bit depths
This commit also reduces the number of times ff_sws_init_scale() gets
called (only once per bit depth), and the number of times randomize_buffers()
gets called (only if the function must be checked).

Benchmarks are only performed on bit depths 8 and 16 (since they are
different functions, and not only different constants).

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:30:24 +01:00
Ramiro Polla
e916b70b15 checkasm/sw_range_convert: only run benchmarks on largest input width
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:30:24 +01:00
Ramiro Polla
e912eeba81 checkasm/sw_range_convert: reduce number of input sizes tested
Reduce input sizes to 8 (to test that the function works with widths
smaller than the vector length) and 1920 (raising the largest input
size to improve benchmark results).

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:30:24 +01:00
Ramiro Polla
37f0cd8d05 checkasm/sw_range_convert: use YUV pixel formats instead of YUVJ
We are already setting the range, so we can use regular YUV pixel
formats instead of YUVJ.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:30:23 +01:00
Ramiro Polla
1113b2c658 checkasm: use FF_ARRAY_ELEMS instead of hardcoding size of arrays
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:30:23 +01:00
Ramiro Polla
615d3764e8 swscale/range_convert: indent after previous commit
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:30:23 +01:00
Ramiro Polla
185d00d146 swscale/range_convert: drop redundant conditionals from arch-specific init functions
These conditions are already checked for in the main init function.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:29:34 +01:00
Ramiro Polla
92cd703a80 swscale/range_convert: call arch-specific init functions from main init function
This commit also fixes the issue that the call to ff_sws_init_range_convert()
from sws_init_swscale() was not setting up the arch-specific optimizations.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:28:25 +01:00
Marton Balint
40bae4af26 avutil/wchar_filename: re-introduce explicit cast of void* to char*
Fixes compile error on windows with decklink:

In file included from ./libavformat/os_support.h:175,
                 from ./libavformat/internal.h:30,
                 from libavdevice/decklink_common.cpp:25:
./libavutil/wchar_filename.h: In function 'int wchartocp(unsigned int, const wchar_t*, char**)':
./libavutil/wchar_filename.h:59:32: error: invalid conversion from 'void*' to 'char*' [-fpermissive]
   59 |     *filename = av_malloc_array(num_chars, sizeof **filename);
      |                 ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                |
      |                                void*

Regression since e9e8bea2e79bc3c481a6f81f75f6c871e3e0f367.

Fixes ticket #11103.

Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:23:44 +01:00
Zhao Zhili
69c79bb32a tests/fate-run: Fix pixdesc failure
-u and -q doesn't work together for diff on macOS.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:23:44 +01:00
Zhao Zhili
f3741f017b avcodec/mediacodecdec_common: Workaround MTK broken crop implementation
MediaTek SOC return broken crop info, e.g.,
width: int32(3840) height: int32(2160) crop: Rect(0, 0, 318, 238)

It will notify the right crop info with infoOutputFormatChanged, but
too late.

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:23:44 +01:00
Zhao Zhili
05dfc5d97b avcodec/mediacodecenc: Extract configOBUs from AV1CodecConfigurationRecord
MediaCodec can generate AV1CodecConfigurationRecord, which shouldn't
be put into packet->data. Skip four bytes and extract configOBUs
if it exist.

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:23:44 +01:00
Zhao Zhili
4538551b20 fftools/ffplay: use swapchain_colorspace_hint to get better HDR support
For example, the default surface configuration on macOS is:
VK_FORMAT_A2B10G10R10_UNORM_PACK32 + VK_COLOR_SPACE_PASS_THROUGH_EXT

With HDR10 content and swapchain_colorspace_hint, the surface
configuration updated to:
VK_FORMAT_A2B10G10R10_UNORM_PACK32 + VK_COLOR_SPACE_HDR10_ST2084_EXT

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-31 08:23:43 +01:00
Paul B Mahol
9194248796 avfilter/ardftsrc_template: change from tukey to planck-taper window
Gives less artifacts.
2024-10-30 09:07:44 +01:00
Paul B Mahol
12afae0ac5 avutil/tx: fix signed integer overflow 2024-10-29 20:31:37 +01:00
Paul B Mahol
3e785c16c5 avutil/tx_template: remove invalid code, and fix min_len for bailey 2024-10-29 19:45:27 +01:00
Paul B Mahol
a164309cb4 avfilter/af_ardftsrc: check for eof early 2024-10-29 14:23:31 +01:00
Paul B Mahol
eb3ad9302b avfilter/vf_waveform: fix crash when graticule is shown 2024-10-29 09:14:28 +01:00
Paul B Mahol
a74760358e avfilter/surround_template: no need to use FFMIN3 2024-10-28 19:07:57 +01:00
Paul B Mahol
df485f8ede avfilter/surround_template: revert same scaling for forward and backward transform 2024-10-28 17:40:38 +01:00
Paul B Mahol
d2c7ed2fd0 avfilter/surround_template: reduce x/y center channel strength 2024-10-28 16:42:19 +01:00
Paul B Mahol
462283e8b8 avfilter/avf_showspatial: fix output for extreme panning 2024-10-28 15:51:29 +01:00
Paul B Mahol
676ed56e24 avfilter/avf_showspatial: remove scaling for transform 2024-10-28 09:18:31 +01:00
Paul B Mahol
6cdd6b5457 avfilter/surround_template: fix output for extreme panning 2024-10-28 09:15:29 +01:00
Paul B Mahol
c4941f7e60 avfilter/avf_showspatial: change output pixel format 2024-10-27 21:16:32 +01:00
Paul B Mahol
87af6f2d26 avfillter/af_surround: fix calculations 2024-10-27 21:16:30 +01:00
James Almer
53d5bb94f6 avutil/hwcontext_d3d11va: drop duplicate pixfmt entry
Added by accident in ca71b0b807b4d5588ec765976b8b18d3efde40fb.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-26 14:43:37 +02:00
Paul B Mahol
373147dd71 avfilter/surround_template: do normalization for power factors 2024-10-26 10:44:27 +02:00
James Almer
4b40c46ab3 libavutil/hwcontext_d3d11va: use the XV48 pixel format
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-26 09:28:06 +02:00
James Almer
c84b4800e1 libavutil/hwcontext_dxva2: use the XV48 pixel format
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-26 09:28:06 +02:00
James Almer
247af34ac0 avfilter/vsrc_testsrc: add support for XV48
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-26 09:28:06 +02:00