James Almer
9d8f7bf4b8
tests/checkasm/diracdsp: fix alignment for src and ombc_weight buffers
...
They are supposed to be 16 byte aligned, not 8.
Should fix crashes in some systems.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-19 12:32:49 -03:00
Rémi Denis-Courmont
55aa81d5cc
checkasm: add RISC-V vector width to arch info
2024-11-17 11:28:21 +02:00
Kyosuke Kawakami
711290f9a3
checkasm/diracdsp: test add_dirac_obmc
...
Signed-off-by: Kyosuke Kawakami <kawakami150708@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2024-11-15 13:44:53 -05:00
James Almer
edc7b67508
avformat/iamf: use the new Binaural channel layout
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-13 12:38:04 -03:00
James Almer
20af68b63a
avutil/channel_layout: add Binaural channels and layout
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-13 12:38:04 -03:00
James Almer
2b1bf3e228
fate/pixfmt: reintroduce scale filter dependency for some tests
...
Removed by mistake in 271aea60a4
.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-10 20:22:22 -03:00
Osamu Watanabe
82467b635e
avcodec/jpeg2000: Improve FF_DWT97_INT to pass ISO/IEC 15444-4 conformance tests
...
Fixes https://trac.ffmpeg.org/ticket/10123
Signed-off-by: Pierre-Anthony Lemieux <pal@palemieux.com>
2024-11-08 08:30:07 -08:00
James Almer
3330b733d3
fate/pixfmt: disable dithering in the scale filter
...
Should fix fate failures across different systems.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-08 09:19:06 -03:00
James Almer
2eb9c35010
x86/swscale: disable AVX2 yuv2nv12cX functions if accurate_rnd is requested
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-07 11:16:42 -03:00
James Almer
271aea60a4
fate/pixfmts: extend the high bit depth test
...
Also test 8bit formats, and try bitdepth conversion paths.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-06 17:44:25 -03:00
James Almer
ae8ef645ec
swscale/swscale_unscaled: add unscaled x2rgb10le to planar RGB
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-06 17:34:31 -03:00
Peter Ross
2d81eaa37b
fate/rv60: add test
2024-11-03 10:53:15 +11:00
James Almer
40878dfb11
fate/pixfmts: test conversion of high bitdepth formats
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-02 15:01:31 -03:00
James Almer
c029a2f7dd
swscale/swscale_unscaled: add unscaled rgb to planar rgba
...
The fate test reference changes are due to the conversion being a simple
lossless deinterleave, instead of going through a RGB -> YUV -> RGB roundtrip.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-02 15:01:31 -03:00
James Almer
febc9e8162
swscale/output: add full chroma interpolation support for x2rgb10
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-02 15:01:31 -03:00
James Almer
430bec8666
fate/filter-video: add more rgbtestsrc tests
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-11-02 15:01:31 -03:00
Zhao Zhili
1864025458
fate/vvc: Add a sample which lose frames before 5c66a3
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2024-11-01 16:59:48 +08:00
Peter Ross
87068b9600
fate/vp60-interlace: add test
2024-10-31 17:49:48 +11:00
Ramiro Polla
562524587e
checkasm/sw_range_convert: indent after previous couple of commits
2024-10-27 13:20:56 +01:00
Ramiro Polla
031d98790e
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).
2024-10-27 13:20:56 +01:00
Ramiro Polla
2c44393c01
checkasm/sw_range_convert: only run benchmarks on largest input width
2024-10-27 13:20:56 +01:00
Ramiro Polla
e308d09fba
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).
2024-10-27 13:20:56 +01:00
Ramiro Polla
d1acd68d73
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.
2024-10-27 13:20:56 +01:00
Ramiro Polla
a8ef1fac0d
checkasm: use FF_ARRAY_ELEMS instead of hardcoding size of arrays
2024-10-27 13:20:56 +01:00
Zhao Zhili
78525bc36b
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>
2024-10-27 11:40:00 +08:00
James Almer
42b748f738
avfilter/vsrc_testsrc: add support for XV48
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-26 00:04:55 -03:00
James Almer
707e2184ca
avformat/riff: map Y416 fourcc to RAWVIDEO decoder
...
As defined in https://learn.microsoft.com/en-us/windows/win32/medfound/10-bit-and-16-bit-yuv-video-formats#422-formats
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-26 00:04:55 -03:00
James Almer
a67ba3c132
swscale/output: add XV48 output support
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-26 00:04:50 -03:00
James Almer
e02a3b40a5
avutil/pixfmt: add XV48 pixel format
...
Much like XV30 and XV36 in d75c4693fe
,
XV48 is added to support 16bit 4:4:4 as defined by Microsoft.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-26 00:04:23 -03:00
James Almer
faec8763e8
avformat/riff: map Y210 and Y216 fourcc to RAWVIDEO decoder
...
As defined in https://learn.microsoft.com/en-us/windows/win32/medfound/10-bit-and-16-bit-yuv-video-formats#422-formats
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-25 19:41:07 -03:00
Niklas Haas
67adb30322
swscale: rename SwsContext to SwsInternal
...
And preserve the public SwsContext as separate name. The motivation here
is that I want to turn SwsContext into a public struct, while keeping the
internal implementation hidden. Additionally, I also want to be able to
use multiple internal implementations, e.g. for GPU devices.
This commit does not include any functional changes. For the most part, it is
a simple rename. The only complications arise from the public facing API
functions, which preserve their current type (and hence require an additional
unwrapping step internally), and the checkasm test framework, which directly
accesses SwsInternal.
For consistency, the affected functions that need to maintain a distionction
have generally been changed to refer to the SwsContext as *sws, and the
SwsInternal as *c.
In an upcoming commit, I will provide a backing definition for the public
SwsContext, and update `sws_internal()` to dereference the internal struct
instead of merely casting it.
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
2024-10-24 22:50:00 +02:00
James Almer
b520d95467
swscale/output: add Y216LE output support
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-23 14:11:35 -03:00
James Almer
f462ba05f5
avutil/pixfmt: add Y216 pixel format
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-23 14:11:16 -03:00
Emily
3565903c63
fate/ffmpeg: add samples dependency to fate-ffmpeg-spec-disposition
...
This test utilizes an MPEG-TS sample from FATE suite, yet was
marked as not requiring samples.
Reviewed-by: Jan Ekström <jeebjp@gmail.com>
2024-10-21 21:19:33 +03:00
James Almer
60b8f0d004
fate/filter-video: make fate-filter-pixdesc compare the hashed output with and without pixdesctest filtering
...
This helps detecting inconsistencies in swscale input/output code and
a av_read_image_line()/av_write_image_line() pass.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-21 09:52:58 -03:00
James Almer
0bb53948ac
swscale/swscale_unscaled: clear the low bits in planar8ToP01xleWrapper
...
This makes the unscaled output of p010le and p016le match the generic path.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-21 09:52:58 -03:00
James Almer
dfd7acf3ed
avfilter/vf_pixdesctest: also take into account undefined alpha components
...
Ensure those bits are copied, which will result in the output being the same as
the input, where swscale set them to the equivalent of fully opaque.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-21 09:52:58 -03:00
James Almer
8debc5aa41
avfilter/vsrc_testsrc: use the alpha component information for XV3{0,6} and V30X
...
And add a few more tests to ensure all the pixfmts affected by this change
are tested.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-21 09:52:58 -03:00
James Almer
6cf4186d1b
fate/vcodec: update reference files for v410 vsynth tests
...
Forgotten in 601a347946
.
Found-by: ramiro
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-17 17:04:57 -03:00
James Almer
f0e6296dde
swscale/output: fix alpha endianness in XV36
...
Mistakenly written in native endianness in 42098f9266
.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-17 12:18:35 -03:00
James Almer
062fcacc8f
avfilter/vsrc_testsrc: fill the xv30le alpha bits
...
As with other pixel formats, set the undefined alpha bits to opaque.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-17 11:59:30 -03:00
James Almer
601a347946
swscale/output: fill the xv30le alpha bits
...
As with other pixel formats, set the undefined alpha bits to opaque.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-17 11:59:24 -03:00
James Almer
5601c5bb2e
avfilter/vsrc_testsrc: add support for XV36 and AYUV64
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-17 11:57:36 -03:00
James Almer
08c632ec0f
swscale/output: add AYUV64BE output support
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-17 11:57:36 -03:00
James Almer
42098f9266
swscale/output: add X36VBE output support
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-17 11:57:36 -03:00
James Almer
2137346324
swscale/output: fill all the xv36le alpha bits
...
The format is 10 bit per component, not 8.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-17 11:57:36 -03:00
James Almer
e1d1ba4cbc
tests/checkasm/sw_rgb: don't write random data past the end of the buffer
...
Should fix fate-checkasm-sw_rgb under gcc-ubsan.
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
2024-10-17 13:08:39 +02:00
James Almer
e206e72b83
Revert "tests/fate: disable compression for zlib-based codecs"
...
This made the output non binary reproducible across different versions of
zlib.
This reverts commit bce5855afb
.
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-16 17:38:57 -03:00
Anton Khirnov
86460a0342
lavf/flvdec: replace a private option with a field in FFFormatContext
...
The demuxer's 'missing_streams' private option is used to communicate
information from the demuxer to avformat_find_stream_info(). However,
that is not only unnecessarily complicated, it also leaks internal
information to users, e.g. this option appears in the results of the
fate-flv-demux test.
Use a new field in FFFormatContext to communicate this information
instead.
2024-10-16 16:46:29 +02:00
James Almer
cb2f5cf400
fate/vcodec: add a test for v410 pixel format raw video
...
Signed-off-by: James Almer <jamrial@gmail.com>
2024-10-16 10:05:55 -03:00