Rémi Denis-Courmont
cdcb4b98b7
lavc/riscv: use ff_rv_vlen_least()
10 months ago
Rémi Denis-Courmont
247c5b2b97
lavu/riscv: add ff_rv_vlen_least()
...
This inline function checks that the vector length is at least a given
value. With this, most run-time VLEN checks can be optimised away.
10 months ago
Rémi Denis-Courmont
38e7b0ecf8
lavc/vp9dsp: fix indentation
10 months ago
James Almer
b450c44630
x86/flacdsp: remove unused parameters to pmacsdql macro
...
Signed-off-by: James Almer <jamrial@gmail.com>
10 months ago
James Almer
eb5733f38f
x86/flacdsp: add an SSE4 version of wasted33
...
flac_wasted_33_c: 214.1
flac_wasted_33_sse4: 103.2
Signed-off-by: James Almer <jamrial@gmail.com>
10 months ago
James Almer
5ba6f4e63e
checkasm/flacdsp: add a test for wasted33
...
Signed-off-by: James Almer <jamrial@gmail.com>
10 months ago
Ramiro Polla
d4d09c8e42
lavc/aarch64/fdct: add neon-optimized fdct for aarch64
...
The code is imported from libjpeg-turbo-3.0.1. The neon registers used
have been changed to avoid modifying v8-v15.
Reviewed-by: Martin Storsjö <martin@martin.st>
10 months ago
Ramiro Polla
27f6211c74
lavc/aarch64: fix include for cpu.h
10 months ago
Andreas Rheinhardt
b7b1a4e6c3
configure: Add missing ftr_parser->adts_header,mpeg4audio dependencies
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
10 months ago
Andreas Rheinhardt
06d1840b56
configure, avcodec/Makefile: Add h264parse->h264data,golomb dependencies
...
Fixes standalone compilation of the dts2pts BSF.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
10 months ago
Andreas Rheinhardt
4df43df6e1
avcodec/bsf/dts2pts: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
10 months ago
Lynne
baf8651d56
aacdec: restore arm32 dequantization optimizations
...
Unintentionally removed as part of 03cf101645
.
Untested, but its assumed that unlike most of the old ARM code,
this one was still working.
10 months ago
Tomas Härdin
37db0454e4
lavc/speedhqdec: Obey AVDISCARD_ALL
10 months ago
Tomas Härdin
5b32685d77
lavc/speedhqdec: Add AV_CODEC_CAP_FRAME_THREADS
10 months ago
Michael Niedermayer
36126e4c14
avcodec/exr: Fix preview overflow
...
Fixes: CID1515456 Unintentional integer overflow
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Michael Niedermayer
73d6d9f129
avcodec/dovi_rpuenc: fix compaatibility
...
Fixes: a frequency
Found while reviewing: CID1596607
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Michael Niedermayer
46ad68084e
avcodec/dovi_rpuenc: initialize profile
...
Code is taken from dovi_rpudec
Fixes: CID1596604 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Michael Niedermayer
e9bb586543
avcodec/decode: decode_simple_internal() only implements audio and video
...
Fixes: CID1538861 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Michael Niedermayer
96c1162545
avcodec/fmvc: remove dead assignment
...
Fixes: CID1529220 Unused value
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Michael Niedermayer
fdaa6ae2b6
avcodec/h2645_sei: Remove dead checks
...
Fixes: CID1596534 Dereference after null check
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Michael Niedermayer
a68aa951b2
avcodec/h264_slice: Remove dead sps check
...
Fixes: CID1439574 Dereference after null check
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Brad Smith
950a7891a9
MAINTAINERS: add myself as *BSD maintainer
...
I try to help out with *BSD patches or build related issues where I can.
Signed-off-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Michael Niedermayer
c2d897f356
avcodec/lpc: copy levenson coeffs only when they have been computed
...
Fixes: CID1473514 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Michael Niedermayer
c304784a86
avutil/tests/base64: Check with too short output array
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Michael Niedermayer
2d216566f2
libavutil/base64: Try not to write over the array end
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
James Almer
0664cbd732
x86/flacdsp: add a SSE2 version of wasted32
...
flac_wasted_32_c: 851.3
flac_wasted_32_sse2: 41.3
Signed-off-by: James Almer <jamrial@gmail.com>
10 months ago
James Almer
5acec189af
checkasm/flacdsp: add a test for wasted32
...
Signed-off-by: James Almer <jamrial@gmail.com>
10 months ago
James Almer
1ba5287697
avcodec/flacdsp: split off wasted bit handling into dsp functions
...
Signed-off-by: James Almer <jamrial@gmail.com>
10 months ago
James Almer
c00c8679ed
x86/flacdsp: add a SSE4 version of lpc16
...
flac_lpc_16_13_c: 2841.3
flac_lpc_16_13_sse4: 2151.8
flac_lpc_16_16_c: 3382.8
flac_lpc_16_16_sse4: 2228.3
flac_lpc_16_29_c: 5800.3
flac_lpc_16_29_sse4: 3727.3
flac_lpc_16_32_c: 5972.8
flac_lpc_16_32_sse4: 4052.3
Signed-off-by: James Almer <jamrial@gmail.com>
10 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>
10 months ago
James Almer
467d84a06d
checkasm/flacdsp: run lpc benchmarks with an unmodified buffer
...
Signed-off-by: James Almer <jamrial@gmail.com>
10 months ago
Yotam Ofek
02c032abcd
avcodec/aacenc_tns: remove unreachable code branch
...
the condition being tested was the same as the stop condition for the containing loop,
so inside the loop it would always test positive
10 months ago
Rémi Denis-Courmont
0d9591841b
lavc/ac3dsp: add R-V Zvbb extract_exponents
10 months ago
Rémi Denis-Courmont
5d8f62feb5
lavu/riscv: add Zvbb CPU capability detection
...
This requires Linux kernel version 6.8 or later.
10 months ago
Rémi Denis-Courmont
01c5f4ad9f
riscv: add Zvbb vector bit manipulation extension
10 months ago
sunyuechi
11f689317d
checkasm: Fix h264chroma test name
...
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
10 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>
10 months ago
Ramiro Polla
b8af0809fb
libavcodec/mpegvideo_enc: fix multi-threaded motion estimation rounding for mpeg4
...
ff_init_me() was being called after ff_update_duplicate_context(),
which caused the propagation of the initialization to other thread
contexts to be delayed by one frame.
In the case of mpeg4 (or flipflop_rounding), this would make the
hpel_put functions differ between the first thread (which would be
correctly initialized) and the other threads (which would be stale
from the previous frame).
10 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.
10 months ago
Haihao Xiang
ceace488ff
lavc/vaapi_encode_av1: insert HDR_CLL metadata if have
...
Only look for HDR_CLL on key frame on the output.
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
10 months ago
Haihao Xiang
0bdf71ada7
lavc/vaapi_encode_av1: Insert HDR_MDCV metadata if have
...
Only look for HDR_MDVC on key frame on the output.
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
10 months ago
Haihao Xiang
7f3ba6bbfa
lavc/vaapi_encode_av1: implement write_extra_header callback
...
This can be used to insert a metadata OBU to the stream later.
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
10 months ago
Niklas Haas
9c6c4f3d47
avcodec/libaomenc: properly clean up image metadata
...
This does not get consumed by aom_codec_encode().
10 months ago
Rémi Denis-Courmont
5afe734b6d
lavu/riscv: remove bespoke assembler for MIN
...
This is no longer necessary as Zbb is now always explicitly required.
10 months ago
Rémi Denis-Courmont
6c6313f1b5
swscale/riscv: explicitly require Zbb for MIN
10 months ago
Rémi Denis-Courmont
c07af340ae
lavc/riscv: explicitly require Zbb for MIN
10 months ago
Rémi Denis-Courmont
89029baebd
lavu/riscv: allow requesting a second extension
10 months ago
sunyuechi
6e77af1c22
lavc/vp8dsp: R-V V put_epel v
...
C908:
vp8_put_epel4_v4_c: 11.0
vp8_put_epel4_v4_rvv_i32: 5.0
vp8_put_epel4_v6_c: 16.5
vp8_put_epel4_v6_rvv_i32: 6.2
vp8_put_epel8_v4_c: 43.7
vp8_put_epel8_v4_rvv_i32: 11.2
vp8_put_epel8_v6_c: 68.7
vp8_put_epel8_v6_rvv_i32: 13.2
vp8_put_epel16_v4_c: 92.5
vp8_put_epel16_v4_rvv_i32: 13.7
vp8_put_epel16_v6_c: 135.7
vp8_put_epel16_v6_rvv_i32: 16.5
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
10 months ago
sunyuechi
109daea619
lavc/vp8dsp: R-V V put_epel h
...
C908:
vp8_put_epel4_h4_c: 10.7
vp8_put_epel4_h4_rvv_i32: 5.0
vp8_put_epel4_h6_c: 15.0
vp8_put_epel4_h6_rvv_i32: 6.2
vp8_put_epel8_h4_c: 43.2
vp8_put_epel8_h4_rvv_i32: 11.2
vp8_put_epel8_h6_c: 57.5
vp8_put_epel8_h6_rvv_i32: 13.5
vp8_put_epel16_h4_c: 92.5
vp8_put_epel16_h4_rvv_i32: 13.7
vp8_put_epel16_h6_c: 139.0
vp8_put_epel16_h6_rvv_i32: 16.5
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
10 months ago
sunyuechi
538f217bbb
lavc/vp8dsp: R-V V put_bilin_hv
...
C908:
vp8_put_bilin4_hv_c: 561.0
vp8_put_bilin4_hv_rvv_i32: 232.7
vp8_put_bilin8_hv_c: 2162.7
vp8_put_bilin8_hv_rvv_i32: 506.7
vp8_put_bilin16_hv_c: 4769.7
vp8_put_bilin16_hv_rvv_i32: 556.7
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
10 months ago