Commit Graph

118421 Commits

Author SHA1 Message Date
James Almer
2529754831 fate/filter-video: add more rgbtestsrc tests
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:17 +01:00
James Almer
255a8bd9ce vsrc_testsrc: add support for x2rgb10le to rgbtestsrc
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:17 +01:00
James Almer
a403471141 swscale/x86/rgb2rgb: add optimized versions of the remaining shuffle_bytes functions
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:17 +01:00
James Almer
93b9563fda swscale/swscale_unscaled: add unscaled conversion for AYUV/VUYA/UYVA
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:17 +01:00
Brad Smith
1abcacb15e libavutil/ppc: Include the hardware feature flags like the other archs
Also include the hardware feature flags like the other archs do and
clean up the code a bit.

Tested on Linux POWER9.

Signed-off-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:17 +01:00
Timo Rothenpieler
3bd7c6f2c2 avcodec/nvenc: set bitstreamRestrictionFlag when neccesary
This mimics the behaviour of libx264 for setting this flag.

Fixes #11131

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:17 +01:00
Koushik Dutta
6ada47b33d avfilter/scale_cuda: frame crop support
The crop filter has no effect on scale_cuda:

-vf crop=100:100,scale_cuda=100x100

Hardware frames (AV_PIX_FMT_FLAG_HWACCEL) are expected to use the crop_* properties,
as seen in the implementation vf_crop.c.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:17 +01:00
Zhao Zhili
fc79e14c3f fate/vvc: Add a sample which lose frames before 5c66a3
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:16 +01:00
Fei Wang
c24ec7c3e3 lavc/vvc_dec: Add hardware decode API
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:08 +01:00
Fei Wang
7abdfc7491 lavc/vvc_ps: Add alf raw syntax into VVCALF
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:08 +01:00
Fei Wang
ce2f3ee261 lavc/vvc_refs: Define VVC_FRAME_FLAG* to h header
So that hardware decoder can use the flags too.

Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:08 +01:00
Fei Wang
cb57679b1f lavc/cbs_h266: Add NumSlicesInTile to H266RawPPS
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:07 +01:00
Fei Wang
41f5a42ae9 lavc/cbs_h266: Add SliceTopLeftTileIdx to H266RawPPS
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:07 +01:00
Fei Wang
4794afa924 lavc/vaapi_decode: Use a more meaningful variable name
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:07 +01:00
Fei Wang
41fa5096a3 lavc/vaapi_dec: Create VA parameters dynamically
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-11-02 20:28:07 +01:00
Paul B Mahol
4e5069a066 avfilter/af_aexciter: add float sample format support
Add slice threading support.
2024-11-01 18:13:19 +01:00
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