Marton Balint
b0093ab8a3
avfilter/vf_geq: fix interpolation with 1 pixel width/height
...
Fixes ticket #9740 .
Signed-off-by: Marton Balint <cus@passwd.hu>
8 months ago
Marton Balint
64330e365b
avfilter/blend: use a per-thread AVExpr
...
Otherwise expression state is accessed and changed from multiple threads.
Fixes ticket #10987 .
Signed-off-by: Marton Balint <cus@passwd.hu>
8 months ago
Marton Balint
a69a0b689c
avfilter/blend: put slice parameters to a single struct
...
This should make future extensibility easier.
Signed-off-by: Marton Balint <cus@passwd.hu>
8 months ago
Marton Balint
77fc047bd9
avfilter/vsrc_testsrc: do not round down width and height for color src
...
ff_draw_rectangle handles subsampling since 2013.
Fixes ticket #10989 .
Signed-off-by: Marton Balint <cus@passwd.hu>
8 months ago
J. Dekker
ca583b22e4
avfilter/riscv: build afir only if required
...
Signed-off-by: J. Dekker <jdek@itanimul.li>
8 months ago
Andreas Rheinhardt
ebe78e3ef0
avfilter/af_volume: Don't free options manually
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
PoorvaGaikar
8b6e66d0f0
avfilter/f_select.c: add support for iw and ih variables
...
Fixes ticket #10509 .
Signed-off-by: Marton Balint <cus@passwd.hu>
8 months ago
Andreas Rheinhardt
894879a1df
avfilter/Makefile: Add missing morpho->framesync dependency
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
b5cf359c97
avfilter/Makefile: Add missing identity->framesync dependency
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
9ec928e627
avfilter/x86/Makefile: Fix standalone build of haldclut filter
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
0d80348748
avfilter/vf_lut3d: Fix standalone build of lut1d
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
afda5ee7b9
avfilter/Makefile: Add missing multiply->framesync dependency
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
c11d7ca2f0
avfilter/x86/Makefile: Add missing dependencies for sobel filter
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
3c7dc9ea59
avfilter/vf_convolution: Fix compilation with sobel disabled
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
dd246bdc0f
avfilter/Makefile: Add missing guided->framesync dependency
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
7e582d8b3e
avfilter/vsrc_testsrc: Fix compilation of colorchart filter
...
Move set_color() out of the CONFIG_TESTSRC2_FILTER block.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
03618ee8a8
avfilter/Makefile: Add scale(2ref)->framesync dependency
...
Forgotten in e82a3997cd
.
Reviewed-by: Frank Plowman <post@frankplowman.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
2e1b95283e
avfilter/vf_xmedian: Define OFFSET, FLAGS macros unconditionally
...
They are currently defined inside the #if CONFIG_XMEDIAN_FILTER
block. Fixes standalone compilation of the tmedian filter.
Broken in f58939affe
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
db53ee915d
avfilter/Makefile: Add missing colormap->framesync dependency
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
Andreas Rheinhardt
609d2c01ea
avfilter/Makefile: Add missing tiltshelf entry
...
Forgotten in 525f83becd
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
8 months ago
James Almer
82397084a9
avfilter/vf_scale: properly reinitialize framesync
...
Fixes leaks as reported by ASAN and Valgrind.
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
ccf395e8bd
avfilter/framesync: reset nb_in on allocation failure
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
James Almer
eb392e4100
avfilter/vf_scale: don't expose framesync options in vf_scale2ref
...
It doesn't use them.
Signed-off-by: James Almer <jamrial@gmail.com>
8 months ago
Niklas Haas
6a5b021e35
avfilter/vf_scale: fix input declaration
...
This filter needs to be marked as having only one input by default, with
AVFILTER_FLAG_DYNAMIC_INPUTS allowing the extra input to be added at
init() time.
Fixes: bb80445813
8 months ago
Niklas Haas
95568c4e31
avfilter/scale2ref: deprecate in favor of scale=rw:rh
...
And remove it from the documentation.
8 months ago
Niklas Haas
bb80445813
avfilter/vf_scale: add optional "ref" input
...
This is automatically enabled if the width/height expressions reference
any ref_* variable. This will ultimately serve as a more principled
replacement for the fundamentally broken scale2ref.
See-Also: https://trac.ffmpeg.org/ticket/10795
8 months ago
Niklas Haas
e82a3997cd
avfilter/vf_scale: switch to FFFrameSync
...
Preliminary commit, in anticipation of adding support for multiple
inputs (with proper synchronization and activate() callback).
8 months ago
Niklas Haas
a5032dc12a
avfilter/framesync: make framesync_class un-static
...
And rename to ff_framesync_class. More convenient for downstream users.
8 months ago
Michael Niedermayer
e757726e89
avfilter/avfiltergraph: return value of ff_request_frame() is unused
...
Fixes: CID1397741 Unchecked return value
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 months ago
Haihao Xiang
578ac59887
lavfi/qsv: Copy metadata fields from the given input
...
Currently it always copies the metadata fields from the last input when
there are multiple inputs for the filter. For example, the metadata
fields from input1 are copied to the output for overlay_qsv filter,
however for regular overlay filters, the metadata fields from input0 are
copied to the output. With this fix, we may copy the metadata fields
from input0 to the ouput as well.
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
9 months ago
Niklas Haas
a2cdb2f5be
avfilter/f_sidedata: synchronize with side data list
...
Add all recently added frame data types, as well as the more consistent
name DETECTION_BBOXES as an alias to DETECTION_BOUNDING_BOXES.
9 months ago
Michael Niedermayer
02301017d2
avfilter/vf_thumbnail_cuda: Set ret before checking it
...
Fixes: CID1418336 Logically dead code
Sponsored-by: Sovereign Tech Fund
Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months ago
Michael Niedermayer
e7174e66ac
avfilter/signature_lookup: Dont copy uninitialized stuff around
...
Fixes: CID1403238 Uninitialized pointer read
Fixes: CID1403239 Uninitialized pointer read
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months ago
Michael Niedermayer
25cb66369e
avfilter/signature_lookup: Fix 2 differences to the refernce SW
...
Fixes: CID1403227 Division or modulo by float zero
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 months ago
Xinpeng Sun
35ae44c615
lavfi/tonemap_vaapi: Add support for HDR to HDR tone mapping
...
Usage example:
ffmpeg -y -hwaccel vaapi -hwaccel_output_format vaapi -i hdr.mp4 \
-vf "tonemap_vaapi=display=7500 3000|34000 16000|13250 34500|15635 16450|500 10000000:extra_hw_frames=64" \
-c:v hevc_vaapi output.mp4
Signed-off-by: Xinpeng Sun <xinpeng.sun@intel.com>
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
9 months ago
Haihao Xiang
db22804145
lavfi/tonemap_vaapi: Update the log
...
demote the message to AV_LOG_VERBOSE.
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
9 months ago
Haihao Xiang
3172a6722e
lavfi/tonemap_vaapi: By default use bt709 for output frame
...
By default don't use the color properties from input frame as output
frame properties when performing HDR to SDR conversion
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
9 months ago
Haihao Xiang
5c55e4e297
lavfi: Add drawbox_vaapi filter
...
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
9 months ago
Haihao Xiang
42eb10ecc6
lavfi: Add pad_vaapi filter
...
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
9 months ago
Haihao Xiang
16616a3d1b
lavfi/vaapi_vpp: Use dynamic frame pool in outlink if possible
...
This can avoid to exhaust the buffers within outlink when libva2 is
available.
For example:
$ ffmpeg -hwaccel_output_format vaapi -hwaccel vaapi -i input.mp4 \
-vf 'scale_vaapi=w=720:h=480' -c:v hevc_vaapi -f null -
...
[vf#0:0 @ 0x55acad91f400] Error while filtering: Cannot allocate memory
[vf#0:0 @ 0x55acad91f400] Task finished with error code: -12 (Cannot
allocate memory)
[vf#0:0 @ 0x55acad91f400] Terminating thread with return code -12
(Cannot allocate memory)
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
9 months ago
Nicolas Gaullier
376b3d53c5
avfilter/vf_colorspace: use colorspace negotiation API
...
Fixes a regression due to the fact that the colorspace filter does
not use the new API introduced by 8c7934f73a
.
The scale filter uses it since 45e09a3041
, and the setparams
filter since 3bf80df3cc
.
Example:
ffprobe -f lavfi yuvtestsrc,setparams=color_primaries=bt470bg:color_trc=
bt470bg:colorspace=bt470bg,colorspace=bt709:range=tv,scale,showinfo
Before:
color_range:unknown color_space:bt470bg ...
After:
color_range:tv color_space:bt709 ...
Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris>
Signed-off-by: Niklas Haas <git@haasn.dev>
9 months ago
LuMingYin
5e380bcdb1
avfilter/af_channelsplit: fix memory leak
...
Signed-off-by: LuMingYin <lumingyindetect@163.com>
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
9 months ago
Fei Wang
0534d2ac84
lavfi/dnn_backend_torch: Include mem.h
...
Fix build fail since 790f793844
.
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
9 months ago
Marton Balint
4721b9f15f
avfilter/buffersrc: never override channel count in av_buffersrc_add_frame_flags
...
Overriding unknown layouts with the negotiated layout is OK, but the number of
channels should match with what was negotiated.
Signed-off-by: Marton Balint <cus@passwd.hu>
9 months ago
Anton Khirnov
d7cde009ce
lavfi/avfilter: add an "auto" constant to the threads option
...
Analogous to the same constant in avfiltergraph and avcodec.
Cf. f599ae88c2
.
9 months ago
Anton Khirnov
b0e1bc6298
lavfi/vf_scale: fix AVOption flags for "size"/"s"
9 months ago
Wenbin Chen
478d97f303
libavfilter/dnn_io_proc: Take step into consideration when crop frame
...
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
Reviewed-by: Guo Yejun <yejun.guo@intel.com>
9 months ago
Wenbin Chen
8869f5ce86
libavfilter/dnn_backend_openvino: Check bbox's height
...
Check bbox's height with frame's height rather than frame's width.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
Reviewed-by: Guo Yejun <yejun.guo@intel.com>
9 months ago
Jan Ekström
23d1b50175
avfilter/{buffersrc,vf_setparams}: map IPT-C2, YCgCo-R variants
9 months ago
Andreas Rheinhardt
7895d1860f
avfilter/avfilter: Don't use av_uninit
...
GCC 9-13 do not emit warnings for this at all optimization
levels even when -Wmaybe-uninitialized is not disabled.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
9 months ago