Zhao Zhili
791b88fcb4
avfilter/dnn_backend_openvino: fix input_port/output_port leaks
2023-09-15 13:02:15 +08:00
Zhao Zhili
37123100d2
avfilter/dnn_backend_openvino: fix leak of ov_shape_t
2023-09-15 13:02:15 +08:00
Zhao Zhili
d2c5c3b7ef
avfilter/dnn_backend_openvino: fix leak or ov_core_t on error path
2023-09-15 13:02:15 +08:00
Zhao Zhili
e0880ef8cb
avfilter/dnn_backend_openvino: fix use uninitialized values
...
Error handling was broken since neither `ret` nor `task` has being
initialized on error path.
2023-09-15 13:02:15 +08:00
Zhao Zhili
7cb6329296
avfilter/dnn_backend_openvino: reduce indentation in free_model_ov
...
No functional changes except ensures model isn't null.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com >
2023-09-15 13:02:15 +08:00
Zhao Zhili
5369548f2e
avfilter/dnn_backend_openvino: fix multiple memleaks
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com >
2023-09-15 13:02:15 +08:00
Zhao Zhili
3e24a27765
avfilter/dnn_filter_common: fix memleak
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com >
2023-09-15 13:02:15 +08:00
Andreas Rheinhardt
d0b03b4182
avfilter/avfilter: Don't report deprecated pkt_pos
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-14 12:32:01 +02:00
yethie
aeff5bcba0
avfilter/vf_drawtext: fix text width measurement
2023-09-12 19:33:09 +02:00
Andreas Rheinhardt
da784b81a6
avfilter/vf_framepack: Use dedicated pointer for access
...
Improves readability.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-12 09:42:43 +02:00
Andreas Rheinhardt
423b6a7e49
avutil/imgutils: Add wrapper for av_image_copy() to avoid casts
...
av_image_copy() accepts const uint8_t* const * as source;
lots of user have uint8_t* const * and therefore either
cast (the majority) or copy the array of pointers.
This commit changes this by adding a static inline wrapper
for av_image_copy() that casts between the two types
so that we do not need to add casts everywhere else.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-12 09:42:27 +02:00
Andreas Rheinhardt
cfa47fd331
all: Use av_frame_replace() where appropriate
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-10 21:22:30 +02:00
Andreas Rheinhardt
67cc7aaa51
avfilter/buffersrc: Use av_frame_clone() where appropriate
...
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-10 11:19:20 +02:00
Andreas Rheinhardt
44dcc4d606
avfilter/blend_modes: Always preserve constness
...
These casts cast const away temporarily; they are safe, because
the pointers that are initialized point to const data. But this
is nevertheless not nice and leads to warnings when using
-Wcast-qual. blend_modes.c generates 546 (2*39*7) such warnings
which is the majority of such warnings for FFmpeg as a whole.
vf_blend.c and vf_blend_init.h also use this pattern;
they have also been changed.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-07 20:58:00 +02:00
Andreas Rheinhardt
29c6f4329a
avfilter/vf_varblur: Don't use pointer-to-const for destination
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-07 20:58:00 +02:00
Andreas Rheinhardt
6378a6b3fe
avfilter/vsrc_testsrc: Don't use const uint8_t* when pointee changes
...
The const makes no sense and is later cast away.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-07 20:58:00 +02:00
Andreas Rheinhardt
bdccb27ba4
avfilter/vf_vif: Don't cast const away unnecessarily
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-07 20:58:00 +02:00
Andreas Rheinhardt
fd9bafc85e
avfilter/f_select: Also deprecate "pos" variable name
...
Forgotten in 27f8c9b27b .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-07 00:49:25 +02:00
Andreas Rheinhardt
41f1921f74
avfilter/af_volume: Also deprecate position enum value
...
Forgotten in 27f8c9b27b .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-07 00:49:25 +02:00
Andreas Rheinhardt
f8503b4c33
avutil/internal: Don't auto-include emms.h
...
Instead include emms.h wherever it is needed.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-04 11:04:45 +02:00
Andreas Rheinhardt
30e8ab8bc4
avfilter/af_amultiply: Remove unnecessary emms_c()
...
The floating point dsp code does not use MMX registers
since 2718a3be1f .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-04 11:04:45 +02:00
Andreas Rheinhardt
78d4bd260f
avfilter/af_headphone: Remove unnecessary emms_c()
...
The floating point dsp code does not use MMX registers
since 2718a3be1f .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-04 11:04:45 +02:00
Andreas Rheinhardt
e2ec90cd0e
avfilter/af_sofalizer: Remove unnecessary emms_c()
...
The floating point dsp code does not use MMX registers
since 2718a3be1f .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-04 11:04:45 +02:00
Andreas Rheinhardt
1ac7df4043
avfilter/af_volume: Remove unnecessary emms_c()
...
The floating point dsp code does not use MMX registers
since 2718a3be1f .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-04 11:04:45 +02:00
Andreas Rheinhardt
af1bf96138
avfilter/afir_template: Remove unnecessary emms_c()
...
The floating point dsp code does not use MMX registers
since 2718a3be1f .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-04 11:04:45 +02:00
Andreas Rheinhardt
63bd0f4ce8
avfilter/vf_bwdif: Remove obsolete emms_c()
...
Obsolete since ed42a51930 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-04 11:04:45 +02:00
Andreas Rheinhardt
03a60b2b30
avfilter/vf_colorspace: Remove redundant emms_c()
...
It is not even clear what these emms_c() are supposed to achieve:
create_filtergraph() (where it may be called) does not call
ASM functions itself; it merely sets some function pointers.
Furthermore, there are no colorspacedsp functions using MMX
(checked by checkasm which does not use declare_new_emms()).
Finally, checking whether to issue emms_c() is overblown anyway.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-04 11:04:45 +02:00
Andreas Rheinhardt
d84ee80c04
avfilter/vf_gblur: Remove unnecessary emms_c()
...
There is no MMX ASM code for gblur.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-04 11:04:45 +02:00
Andreas Rheinhardt
c59b082e20
avfilter: Remove unnecessary emms_c for ff_scene_sad_get_fn
...
ff_scene_sad_get_fn() does not return functions that use
MMX at all.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2023-09-04 11:04:45 +02:00
Niklas Haas
bef151d1ce
vf_libplacebo: warn on extra_opts + too old libplacebo
...
Instead of silently ignoring this option as before.
2023-09-03 13:40:27 +02:00
Paul B Mahol
a469186b8a
avfilter/asrc_sinc: check return code of tx_init()
2023-09-03 09:33:26 +02:00
Lynne
5f8feddd6a
lavfi/testsrc_vulkan: fix memory leaks
2023-08-28 22:29:36 +02:00
Lynne
3ef1e50c92
lavfi/transpose_vulkan: fix memory leaks
2023-08-28 22:29:36 +02:00
Lynne
d0ab2e2f98
lavfi/scale_vulkan: fix memory leaks
2023-08-28 22:29:35 +02:00
Lynne
0f2ae1ba69
lavfi/nlmeans_vulkan: fix memory leaks
2023-08-28 22:29:35 +02:00
Lynne
9944e96c61
lavfi/chromaber_vulkan: fix memory leaks
2023-08-28 22:29:34 +02:00
Lynne
a4673c9dff
lavfi/bwdif_vulkan: fix memory leaks
2023-08-28 22:29:34 +02:00
Lynne
b6cc53092a
lavfi/avgblur_vulkan: fix memory leaks
2023-08-28 22:29:34 +02:00
Niklas Haas
3c9dc009b6
lavfi/vf_libplacebo: add extra_opts AVDictionary
...
Can be used to configure libplacebo's underlying raw options, which
sometimes includes new or advanced / in-depth settings not (yet) exposed
by vf_libplacebo.
2023-08-27 13:37:03 +02:00
Niklas Haas
816983d951
lavfi/vf_libplacebo: switch to new pl_options struct
...
This new upstream struct simplifies params struct management by allowing
them to all be contained in a single dynamically allocated struct. This
commit switches to the new API in a backwards-compatible way.
The only nontrivial change that was required was to handle
`sigmoid_params` in a way consistent with the rest of the params
structs, instead of setting it directly to the upstream default.
2023-08-27 13:37:03 +02:00
Zhao Zhili
2387328fa2
avfilter/vf_transpose_vt: fix declaration-after-statement
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com >
2023-08-26 16:31:43 +08:00
Zhao Zhili
7cca9c07ca
avfilter/vf_transpose_vt: fix output frame dimension
...
Create a new hardware frame context when necessary.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com >
2023-08-26 16:31:43 +08:00
Zhao Zhili
9b543881ef
avfilter/vf_scale_vt: fix output frame dimension
...
The output frame dimension is incorrect because it shares hardware
frame context with input.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com >
2023-08-26 16:31:43 +08:00
Wenbin Chen
e79bd1f1b1
lavfi/dnn: Add OpenVINO API 2.0 support
...
OpenVINO API 2.0 was released in March 2022, which introduced new
features.
This commit implements current OpenVINO features with new 2.0 APIs. And
will add other features in API 2.0.
Please add installation path, which include openvino.pc, to
PKG_CONFIG_PATH mannually for new OpenVINO libs config.
Signed-off-by: Ting Fu <ting.fu@intel.com >
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
2023-08-26 14:12:10 +08:00
Marvin Scholz
15a89a9422
lavfi/vf_xfade_vulkan: add wipes
...
Add the wipetl, wipetr, wipebl, wipebr effects.
2023-08-24 22:50:57 +02:00
Marvin Scholz
85c7c79a62
lavfi/vf_xfade_vulkan: add pixelize
2023-08-24 22:50:57 +02:00
Marvin Scholz
98bd8a7f5c
lavfi/vf_xfade_vulkan: add dissolve
2023-08-24 22:50:57 +02:00
Marvin Scholz
8d3fd489e2
lavfi/vf_xfade_vulkan: reindent after last commit
2023-08-24 22:50:57 +02:00
Marvin Scholz
95e366fb59
lavfi/vf_xfade_vulkan: add circleopen/circleclose
2023-08-24 22:50:57 +02:00
Paul B Mahol
52ebb15ec1
avfilter/af_afade: add 4 more curves
2023-08-24 22:20:06 +02:00