Vittorio Giovara
05bfc03752
Add new vf_tiltandshift filter
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2023-12-21 17:16:16 -05:00
Wenbin Chen
9415c2c11f
libavfilter/vf_dnn_detect: Add initialized value to function pointer
...
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
2023-12-21 16:15:23 +08:00
Wenbin Chen
233c44f735
libavfilter/vf_dnn_detect: Fix a control flow issue
...
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
2023-12-21 16:15:23 +08:00
Wenbin Chen
1fa3346c70
libavfilter/vf_dnn_detect: Add yolov4 support
...
The difference of yolov4 is that sigmoid function needed to be applied
on x, y coordinates. Also make it compatiple with NHWC output as the
yolov4 model from openvino model zoo has NHWC output layout.
Model refer to: https://github.com/openvinotoolkit/open_model_zoo/tree/master/models/public/yolo-v4-tf
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
Reviewed-by: Guo Yejun <yejun.guo@intel.com >
2023-12-16 21:51:52 +08:00
Wenbin Chen
a882fc0294
libavfilter/vf_dnn_detect: Add yolov3 support
...
Add yolov3 support. The difference of yolov3 is that it has multiple
outputs in different scale to perform better on both large and small
object.
The model detail refer to: https://github.com/openvinotoolkit/open_model_zoo/tree/master/models/public/yolo-v3-tf
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
Reviewed-by: Guo Yejun <yejun.guo@intel.com >
2023-12-16 21:50:50 +08:00
Wenbin Chen
da02836b9d
libavfilter/vf_dnn_detect: Add input pad
...
Add input pad to get model input resolution. Detection models always
have fixed input size. And the output coordinators are based on the
input resolution, so we need to get input size to map coordinators to
our real output frames.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
Reviewed-by: Guo Yejun <yejun.guo@intel.com >
2023-12-16 21:50:37 +08:00
Wenbin Chen
22652b576c
libavfiter/dnn_backend_openvino: Add multiple output support
...
Add multiple output support to openvino backend. You can use '&' to
split different output when you set output name using command line.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
Reviewed-by: Guo Yejun <yejun.guo@intel.com >
2023-12-16 21:50:16 +08:00
Wenbin Chen
22bebfa5e6
libavfilter/vf_dnn_detect: Set used pointer to NULL
...
Set used pointer to NULL in case it leaks the storage.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
2023-12-15 20:04:54 +08:00
Wenbin Chen
a1e8892a8a
libavfilter/vf_dnn_detect: Fix uninitialized variables error
...
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
2023-12-15 20:04:54 +08:00
Wenbin Chen
833722343a
libavfilter/vf_dnn_detect: Add NULL pointer check
...
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
2023-12-15 20:04:54 +08:00
Wenbin Chen
e01afa1c6d
libavfilter/vf_dnn_detect: Fix an incorrect expression
...
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
2023-12-15 20:04:54 +08:00
Gyan Doshi
b9fd3e7a88
avfilter/select: initialize prev_selected_n to NAN
...
As per the doc, prev_selected_n should be NAN at the start.
However, this was never set.
2023-12-10 09:29:50 +05:30
nilfm
5f4b7bf2b5
avfilter/vf_libvmaf: fix string comparison bug
...
The libvmaf filter was doing substring checks in place of string equality
comparisons. This led to a bug when the user specified the pooling method
"harmonic_mean", since "mean" was checked first and the substring comparison
returned true. This patch changes all substring comparisons for string equality
comparisons. This is both correct and more efficient than the existing method.
Signed-off-by: nilfm <nilf@netflix.com >
2023-12-08 10:32:46 -08:00
Cosmin Stejerean
737ede405b
avfilter/bwdif: account for chroma sub-sampling in min size calculation
...
The current logic for detecting frames that are too small for the
algorithm does not account for chroma sub-sampling, and so a sample
where the luma plane is large enough, but the chroma planes are not
will not be rejected. In that event, a heap overflow will occur.
This change adjusts the logic to consider the chroma planes and makes
the change to all three bwdif implementations.
Fixes #10688
Signed-off-by: Cosmin Stejerean <cosmin@cosmin.at >
Reviewed-by: Thomas Mundt <tmundt75@gmail.com >
Signed-off-by: Philip Langdale <philipl@overt.org >
2023-12-07 10:00:12 +08:00
Paul B Mahol
ebfd3912e9
avfilter/asrc_flite: use streaming function
...
Fix continuous accumulation of audio samples for big txt inputs.
2023-12-06 10:52:46 +01:00
Paul B Mahol
d793af982e
avfilter/asrc_flite: switch to activate
...
Allows to set EOF timestamp.
2023-12-06 10:52:45 +01:00
Anton Khirnov
c6483f1c2a
lavfi/buffersink: avoid leaking peeked_frame on uninit
2023-12-06 10:01:09 +01:00
Haihao Xiang
35a555e2b9
lavfi/vf_vpp_qsv: set the default value of async_depth to 4
...
Both qsv encoders and decoders use 4 as the default value of
async_depth, let's use 4 as the default value for vpp_qsv filter too.
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com >
2023-12-05 10:12:16 +08:00
Paul B Mahol
9e74c7ae87
avfilter/af_dialoguenhance: add double-floating point sample format support
2023-12-04 23:14:40 +01:00
Paul B Mahol
704ef556fe
avfilter/af_surround: refactor some code
2023-12-04 23:14:39 +01:00
Kyle Swanson
9f1dbca820
avfilter/libvmaf: small cleanup for style, whitespace, unused LIBVMAFContext struct members
...
Signed-off-by: Kyle Swanson <kswanson@netflix.com >
2023-12-04 10:00:01 -08:00
Paul B Mahol
d9e41ead82
avfilter/avfilter: fix OOM case for default activate
...
Fixes OOM when caller keeps adding frames into filtergraph
that reached EOF by other means, for example EOF is signalled
by other filter in filtergraph or by buffersink.
2023-12-03 23:26:43 +01:00
Paul B Mahol
e3e3531d1e
avfilter/vsrc_gradients: make rotation always continuous if speed changes
2023-12-03 18:43:26 +01:00
Paul B Mahol
8888574d10
avfilter/vsrc_gradients: add commands support
2023-12-03 18:30:06 +01:00
Paul B Mahol
f84412d6f4
avfilter/vf_corr: for all zero returns zero score instead of 1
2023-12-03 03:10:05 +01:00
Paul B Mahol
aad3223978
avfilter/vf_corr: add slice threading support
2023-12-03 03:10:03 +01:00
Paul B Mahol
db7b838237
avfilter/vf_chromanr: compare correct variables for advanced mode
2023-12-01 21:31:38 +01:00
Paul B Mahol
a30adf9f96
avfilter/framesync: fix OOM case
...
Fixes OOM when caller keeps adding frames into filtergraph
that reached EOF by other means, for example EOF is signalled
by other filter in filtergraph or by buffersink.
2023-11-30 11:08:34 +01:00
Paul B Mahol
47e214245b
avfilter/arls_template: use defines for all constants
2023-11-28 16:09:12 +01:00
Paul B Mahol
f66536cc58
avfilter: add Affine Projection adaptive audio filter
2023-11-28 15:40:34 +01:00
Paul B Mahol
67ce690bc6
avfilter/af_anlms: set output frame duration
2023-11-28 13:17:19 +01:00
Paul B Mahol
411c516453
avfilter/af_arls: set output frame duration
2023-11-28 13:17:13 +01:00
Paul B Mahol
bafbb0697e
avfilter/af_amix: set output frame duration
2023-11-28 13:17:13 +01:00
Paul B Mahol
358aced447
avfilter/af_amultiply: set output frame duration
2023-11-28 13:17:12 +01:00
Paul B Mahol
8b9c400f1d
avfilter/af_amerge: use already provided outlink
2023-11-28 13:17:12 +01:00
Paul B Mahol
c979ccdfd7
avfilter: no need to request more samples if internal frame is available
2023-11-28 13:16:18 +01:00
Paul B Mahol
3bca828d39
avfilter/af_arls: add double sample format support
2023-11-27 20:27:27 +01:00
Paul B Mahol
42e45ea8ff
avfilter/af_anlms: add double sample format support
2023-11-27 20:27:25 +01:00
Paul B Mahol
5f87a68cf7
avfilter/vf_colorcorrect: fix memory leaks
2023-11-27 12:10:26 +01:00
Paul B Mahol
f1f973313b
avfilter/af_dialoguenhance: do output scaling once
2023-11-27 11:56:27 +01:00
Paul B Mahol
b1942734c7
avfilter/af_afwtdn: fix crash with EOF handling
2023-11-27 11:56:26 +01:00
Paul B Mahol
4671fb7dfb
avfilter/af_dialoguenhance: simplify channels copy
2023-11-27 11:56:23 +01:00
Wenbin Chen
47b2328076
libavfilter/vf_dnn_detect: Add yolo support
...
Add yolo support. Yolo model doesn't output final result. It outputs
candidate boxes, so we need post-process to remove overlap boxes to
get final results. Also, the box's coordinators relate to cell and
anchors, so we need these information to calculate boxes as well.
Model detail please refer to: https://github.com/openvinotoolkit/open_model_zoo/tree/master/models/public/yolo-v2-tf
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
Reviewed-by: Guo Yejun <yejun.guo@intel.com >
2023-11-26 20:38:36 +08:00
Wenbin Chen
caa5d123a7
libavfilter/vf_dnn_detect: Add model_type option.
...
There are many kinds of detection DNN model and they have different
preprocess and postprocess methods. To support more models,
"model_type" option is added to help to choose preprocess and
postprocess function.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
Reviewed-by: Guo Yejun <yejun.guo@intel.com >
2023-11-26 20:15:55 +08:00
Paul B Mahol
e7111ba44a
avfilter/vsrc_gradients: allow zero speed
2023-11-26 02:07:45 +01:00
Paul B Mahol
f1acb0d843
avfilter/vsrc_gradients: add square type
2023-11-26 02:07:44 +01:00
Paul B Mahol
2d9ed64859
avfilter/af_dialoguenhance: fix overreads
2023-11-25 13:05:31 +01:00
Paul B Mahol
37c5bcc4e8
avfilter/af_channelmap: do not override set channel layout
2023-11-25 13:05:31 +01:00
Paul B Mahol
4adb93dff0
avfilter/asrc_afirsrc: fix by one smaller allocation of buffer
2023-11-23 15:01:55 +01:00
James Almer
0008e1c5d5
avfilter/asrc_anullsrc: fix allowed range for sample_rate
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2023-11-22 19:41:15 -03:00