Andreas Rheinhardt
d7fdd502d6
tests/ref/fate/source: Add exceptions for riscv startcode files
...
Fixes fate-source.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
eee88ba0dc
avcodec/decode: Set KEY flag+pict_type generically for intra-only codecs
...
This commit is the analog of 3f11eac757
for decoding: It sets the AV_FRAME_FLAG_KEY and (for video decoders)
also pict_type to AV_PICTURE_TYPE_I. It furthermore stops setting
audio frames as always being key frames -- it is wrong for e.g.
TrueHD/MLP. The latter also affects TAK and DFPWM.
The change already improves output for several decoders where
it has been forgotten to set e.g. pict_type like speedhq, wnv1
or tiff. The latter is the reason for the change to the exif-image-tiff
FATE test reference file.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
41fc62f2e8
avcodec/codec_desc, jvdec: JV is not intra-only
...
It reuses the previous frame and does not code unchanged blocks.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
James Almer
7e59f02c14
fate/lavf-container: add a test for VVC in mp4 muxing
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
415dfa89e2
avformat/vvc: fix writing general_constraint_info bytes
...
The existing implementation was completely broken.
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
727a603158
checkasm/h264dsp: use int64_t scale values
...
Fixes "signed integer overflow: [varies] * 104858 cannot be represented in type 'int'" errors
under ubsan.
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
Andreas Rheinhardt
784672b833
tests/checkasm/sw_gbrp: Use correct function types for calls
...
E.g. f2de911818
forgot to
add the unused void* here.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
9126705e6e
tests/checkasm/vf_blend: Update function type
...
Forgotten in 5b8faaad6c
,
a69a0b689c
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
caec57eb3a
tests/checkasm/vf_bwdif: Use correct function pointer type
...
Forgotten in fa06f48371
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
4c57cbda67
tests/checkasm/vf_colorspace: Use correct function pointer type
...
Forgotten in 9b26a8077f
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
e3de22e307
tests/checkasm/vvc_mc: Use correct function pointer type
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
6c0994864e
tests/checkasm/vp8dsp: Use correct function pointer type
...
Forgotten in a54e53a1c4
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
dcbdcc3bf5
tests/checkasm/motion: Use correct function pointer type
...
Forgotten in abb85429f3
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
99135a2f8b
tests/checkasm/llviddsp: Use correct function pointer type
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
631636e582
tests/checkasm/huffyuvdsp: Use correct function pointer type
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
895dd370a2
tests/checkasm/hevc_*: Fix funtion pointer types
...
Forgotten in b3bbbb14d0
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
dff0a1557e
tests/checkasm/llauddsp: Avoid UB integer overflow
...
The only multiplicators used in scalarproduct_and_madd_*
are -1, 0 and +1. Yet it is of type int and the checkasm
test uses the complete range of int for it, leading to overflows
that don't happen for actual users.
Fix this by using a more reasonable range for mul: Given
that it is used in v1[i] += v3[i] * mul with v1 being
a 16bit integer, it makes no sense to use values for mul
that don't fit into 16bit.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
James Almer
8670615743
checkasm/h264dsp: add missing pixel_mask values
...
Fixes "runtime error: index 4 out of bounds for type 'uint32_t [3]'" errors
after commit 4ced36744e
.
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
e9741f1a6b
fate/checkasm: test vvc_alf
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
Rémi Denis-Courmont
b410439263
lavu/riscv: CPU flag for fast misaligned accesses
8 months ago
J. Dekker
4ced36744e
checkasm/h264dsp: support checking more idct depths
...
Signed-off-by: J. Dekker <jdek@itanimul.li>
8 months ago
Wu Jianhua
3fa98f274a
tests/checkasm/vvc_alf: add check_alf_classify
...
Perforamnce Test (fps):
clip before after delta
Tango2_3840x2160_60_10_420_27_LD.266 56 115 105.36%
RitualDance_1920x1080_60_10_420_32_LD.266 272 481 76.83%
RitualDance_1920x1080_60_10_420_37_RA.266 303 426 40.59%
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
8 months ago
Wu Jianhua
9ef6e15b04
tests/checkasm: add checkasm_check_vvc_alf and check_alf_filter
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
8 months ago
James Almer
5ba6f4e63e
checkasm/flacdsp: add a test for wasted33
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
5acec189af
checkasm/flacdsp: add a test for wasted32
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
479d26cea2
checkasm/flacdsp: sanitize lpc arguments
...
Fixes signed integer overflows as reported by ubsan.
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
467d84a06d
checkasm/flacdsp: run lpc benchmarks with an unmodified buffer
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
Rémi Denis-Courmont
01c5f4ad9f
riscv: add Zvbb vector bit manipulation extension
8 months ago
sunyuechi
11f689317d
checkasm: Fix h264chroma test name
...
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
8 months ago
Ramiro Polla
250c0defa2
checkasm: add test for fdct
...
Reviewed-by: Martin Storsjö <martin@martin.st>
Reviewed-by: Rémi Denis-Courmont <remi@remlab.net>
8 months ago
Ramiro Polla
713c6eba8d
libavcodec/motion_est: fix penalty_factor for b frames
...
In direct_search() and ff_estimate_b_frame_motion(), penalty_factor
would be used before being initialized in estimate_motion_b(). Also,
the initialization would happen more than once unnecessarily.
8 months ago
Andreas Rheinhardt
6fa967810d
tests/checkasm/svq1enc: Use proper range for input
...
ssd_int8_vs_int16 is only called from encode_block()
in svq1enc.c; it calls it in stages: At stage 0,
the int16_t array contains the difference of two
uint16_t. At each of the following stages, the
int16_t array is filled by subtracting an int8_t from
the current stage's int16_t array. The maximum stage
is five, so the int16_t are in the range
(-255 - 5 * 127)..(255 + 5 * 128).
This commit modifies the checkasm test to only use
values from this range, fixing (undefined) integer overflow
in the test.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
James Almer
b6054e57cb
checkasm/blockdsp: use smallest allowed aligned buffers for fill_block_tab tests
...
The requirement is either 8 or 16 bytes alignment, not 32.
This should help finding bugs in asm implementations.
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
febd9271fc
checkasm/blockdsp: don't randomize the buffers for fill_block_tab
...
It ignores and overwrites the previous values.
Fixes running the test under ubsan.
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
d053290d8d
avutil/opt: add an unsigned option type
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
9902fc550a
avutil/tests/opt: test values > INT_MAX for INT64 type
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
72ac495960
avutil/tests/opt: test negative values for INT and INT64 types
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
sunyuechi
cfa8d2488d
checkasm/rv40dsp: add chroma_mc test
...
This is similar to h264.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
8 months ago
sunyuechi
b369c4d569
checkasm/blockdsp: add fill_block test
...
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
8 months ago
Niklas Haas
5b5e692da6
fate/scale2ref_keep_aspect: switch to vf_scale ref_*
8 months ago
Martin Storsjö
d11be191fa
checkasm: vc1dsp: Align buffers sufficiently for the mspel tests
...
This fixes crashes in the mspel tests on x86.
Signed-off-by: Martin Storsjö <martin@martin.st>
8 months ago
sunyuechi
dedc2456bf
checkasm/vc1dsp: add mspel_pixels test
...
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
8 months ago
Timo Rothenpieler
59767636c7
fate: allow https for git URLs
8 months ago
Lynne
134dba9544
opusdsp: add ability to modify deemphasis constant
...
xHE-AAC relies on the same postfilter mechanism
that Opus uses to improve clarity (albeit with a steeper
deemphasis filter).
The code to apply it is identical, it's still just a
simple IIR low-pass filter. This commit makes it possible
to use alternative constants.
8 months ago
James Almer
5fc4a824db
fate/iamf: don't demux packets in fate-iamf-5_1-{copy,demux}
...
They contain side data whose size is arch dependent.
This fixes fate failures on 32bit targets.
Signed-off-by: James Almer <jamrial@gmail.com>
9 months ago
James Almer
1a8d50e379
fate/iamf: add a demux text
...
Using the same input sample as iamf-5_1-copy, in order to compare both test's output
Signed-off-by: James Almer <jamrial@gmail.com>
9 months ago
James Almer
8c27cdd2d4
fftools/ffmpeg_mux_init: add missing IAMF Param Definition copies
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 months ago
James Almer
8c0045f013
fate/iamf: add a remux test with stream group copying
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 months ago
James Almer
8616cfe089
avutil/opt: add support for children objects in av_opt_serialize
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 months ago
James Almer
855d4b5254
avutil/tests/opt: test av_opt_find2()
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 months ago