yethie
01d843f6d0
avfilter/vf_drawtext: add expression variables to control font ascent/descent
...
The following new variables can be used in the x and y expressions: font_a, font_d, top_a, bottom_d.
2023-06-19 22:35:53 +02:00
yethie
fac7bb06d8
avfilter/vf_drawtext: add options for size of the background box
2023-06-19 22:35:53 +02:00
yethie
79e39978d8
avfilter/vf_drawtext: extend boxborderw option
...
Adds support for different border size in each direction.
2023-06-19 22:35:53 +02:00
yethie
1eeb59a209
avfilter/vf_drawtext: improve glyph shaping and positioning
...
- text is now shaped using libharfbuz
- glyphs position is now accurate to 1/4 pixel in both directions
- the default line height is now the one defined in the font
Adds libharfbuzz dependency.
2023-06-19 22:35:52 +02:00
yethie
ba00ed33e5
avfilter/vf_drawtext: cosmetics
2023-06-19 22:35:52 +02:00
Paul B Mahol
8e21f32fe7
avfilter/vf_displace: add support for commands
2023-06-18 11:11:46 +02:00
Paul B Mahol
54dc06e09e
avfilter/vf_displace: add slice threading support
2023-06-18 11:11:46 +02:00
Paul B Mahol
494ebfdbfa
avfilter/af_drmeter: misc cleanups
2023-06-18 02:21:29 +02:00
Paul B Mahol
238ec0c31b
avfilter/af_drmeter: fix error in picking 2nd peak
2023-06-18 02:21:29 +02:00
Paul B Mahol
c44fe10160
avfilter/af_afade: stop using ff_outlink_get_status on inputs
2023-06-17 22:36:31 +02:00
Paul B Mahol
a756ae41ed
avfilter/af_apad: switch to activate
...
Fixes EOF PTS reporting.
Also allowing previous/next filters in graph to release no longer needed resources.
2023-06-17 21:33:01 +02:00
Paul B Mahol
4583a24c65
avfilter/vf_xfade: add reveal transitions
2023-06-17 19:48:10 +02:00
Paul B Mahol
8fe25b1203
avfilter/vf_xfade: add cover transitions
2023-06-17 19:48:09 +02:00
Philip Langdale
73a2252f1d
avfilter/vf_bwdif_cuda: CUDA accelerated bwdif deinterlacer
...
I've been sitting on this for 3 1/2 years now(!), and I finally got
around to fixing the loose ends and convincing myself that it was
correct. It follows the same basic structure as yadif_cuda, including
leaving out the edge handling, to avoid expensive branching.
2023-06-16 12:52:32 -07:00
Philip Langdale
3c07c2489d
avfilter/scale_cuda: add support for rgb32/bgr32 conversions
...
As we are introducing two new formats and supporting conversions
between them, and also with the existing 0rgb32/0bgr32 formats, we get
a combinatorial explosion of kernels. I introduced a few new macros to
keep the things mostly managable.
The conversions are all simple, following existing patterns, with four
specific exceptions. When converting from 0rgb32/0bgr32 to rgb32/bgr32,
we need to ensure the alpha value is set to 1. In all other cases, it
can just be passed through, either to be used or ignored.
2023-06-16 10:40:21 -07:00
Paul B Mahol
12a073f72c
avfilter/buffersrc: stop passing AV_NOPTS_VALUE on EOF
2023-06-16 11:46:09 +02:00
Anton Khirnov
4abf42ab96
lavfi/graphparser: be more verbose when filtergraph parsing fails
...
When an option could not be found, print its name and value. Note that
this is not done while applying the options in
avfilter_graph_segment_apply_opts() to give the caller the option of
handling the missing options in some other way.
2023-06-16 08:07:02 +02:00
Philip Langdale
ecc3f158e1
avfilter/vf_yadif_cuda: remove unnecessary private struct fields
...
I'm not sure why I originally did this, but there's no good reason to
put pointers to the cuda context and stream in the priv struct. They
are directly available in the device context that is already being
stored there.
2023-06-15 12:29:52 -07:00
Niklas Haas
d26ea03f60
lavfi/vf_libplacebo: fix typo in assert
...
Not caught because av_assert1 was compiled out on my end.
2023-06-13 15:28:32 +02:00
Zhao Zhili
32a749c7a6
avfilter/dnn_backend_openvino: fix log message
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-06-08 10:50:44 +08:00
Zhao Zhili
3a5d95e3fa
avfilter/dnn_backend_tf: silence implicit cast warning
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-06-08 10:50:24 +08:00
Zhao Zhili
b0c0fedcda
avfilter/dnn_backend_tf: fix use of uninitialized value
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-06-08 10:50:24 +08:00
Zhao Zhili
d9f41a343e
avfilter/dnn_backend_tf: check TF_OperationOutputType return value
...
This also fixed a warning: implicit conversion from enumeration
type 'TF_DataType' (aka 'enum TF_DataType') to different
enumeration type 'DNNDataType'.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-06-08 10:50:24 +08:00
Zhao Zhili
f3495ef4f8
avfilter/dnn_backend_tf: remove unused define
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-06-08 10:50:23 +08:00
Zhao Zhili
e67af9e7f7
avfilter/vf_dnn_processing: replace magic number by enum value
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-06-08 10:50:23 +08:00
Zhao Zhili
e7e80e2083
avfilter/vf_dnn_detect: replace magic number by enum value
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-06-08 10:50:23 +08:00
Zhao Zhili
a887bc4ff1
avfilter/vf_dnn_classify: replace magic number by enum value
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-06-08 10:50:23 +08:00
Zhao Zhili
016f2f61c3
avfilter/dnn: add log context to ff_get_dnn_module
...
Print backend type when failed.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-06-08 10:50:23 +08:00
Zhao Zhili
505c43bb65
avfilter/dnn: refactor ff_get_dnn_module to remove allocation
...
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-06-08 10:50:23 +08:00
Zhao Zhili
3f52b7eedc
avfilter/dnn: define each backend as a DNNModule
...
To avoid export multiple functions for each backend
implementation.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-06-08 10:50:23 +08:00
Paul B Mahol
bfd5090628
avfilter/af_rubberband: rewrite EOF handling
...
Also pass correct EOF timestamp.
2023-06-08 02:31:19 +02:00
Marvin Scholz
d8c7fea8ef
lavfi/vf_blend_vulkan: fix leak on error
2023-06-07 23:59:06 +02:00
Marvin Scholz
dae393fe72
libavfilter: add vf_xfade_vulkan
...
This is an initial version of vf_xfade_vulkan based
on vf_xfade_opencl, for now only a subset of transitions
are supported.
2023-06-07 23:59:06 +02:00
Marvin Scholz
e62824835d
lavfi/vf_xfade: rewrite activate inputs handling
...
The old code was not properly handling a bunch of edge-cases with
streams terminating earlier and also did not properly report back EOF
to the first input.
This fixes at least one case where the filter could stop doing
anything:
ffmpeg -f lavfi -i "color=blue:d=10" -f lavfi -i "color=aqua:d=0" -filter_complex "[0][1]xfade=duration=2:offset=0:transition=wiperight" -f null -
2023-06-07 08:56:24 +02:00
Paul B Mahol
9a9b56c870
avfilter/vf_mix: add fast filtering in case all tmix weights are same
2023-06-02 18:54:32 +02:00
Paul B Mahol
3cfd85ec20
avfilter/avf_showcqt: switch to activate
...
And make output frame durations always same.
2023-06-01 20:27:33 +02:00
Paul B Mahol
baa9fccf8d
avfilter/vf_mergeplanes: remove hack for linesize calculation
2023-05-31 19:24:03 +02:00
Paul B Mahol
4d9afbeef5
avfilter/avf_aphasemeter: switch to activate
2023-05-30 20:09:47 +02:00
Paul B Mahol
3ea3a4ba16
avfilter/avf_aphasemeter: avoid using double
2023-05-30 20:09:46 +02:00
Paul B Mahol
862ebbf2ed
avfilter/avf_abitscope: refactor bit counting for histogram
...
This helps compiler figure out it can unroll loop and give 4x speedup.
2023-05-30 19:21:13 +02:00
Paul B Mahol
1636fb415a
avfilter/avf_ahistogram: refactor frame fill data code
2023-05-30 18:18:14 +02:00
Paul B Mahol
b01cfdb4ab
avfilter/avf_showwaves: cleanup and simplify some draw calls
2023-05-30 17:00:30 +02:00
Sami Boukortt
06e8eedeba
avfilter/vf_colorspace: fix message for missing/incorrect colorspace
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2023-05-30 09:05:19 -04:00
Paul B Mahol
81f658b99d
avfilter/f_ebur128: set output frame duration
...
Also produce output video timestamps that are consistent with
10 frames per second.
2023-05-30 14:08:40 +02:00
Paul B Mahol
447bdddeac
avfilter/af_afir: do not use ff_outlink_get_status() on inlinks
2023-05-30 14:08:22 +02:00
Paul B Mahol
4ab1184fae
avfilter/af_headphone: do not call ff_outlink_get_status() on inlink
2023-05-30 02:16:47 +02:00
Paul B Mahol
492f64de08
avfilter/vf_framepack: remove not needed calls and add newline to log
2023-05-30 02:16:46 +02:00
Paul B Mahol
12acbcb7a2
avfilter/f_graphmonitor: always output last frame on EOF
2023-05-30 02:16:45 +02:00
Paul B Mahol
ac6a6d1abf
avfilter/af_join: do not use ff_outlink_get_status() on inlink
2023-05-30 02:16:44 +02:00
Paul B Mahol
51a1124a68
avfilter/avf_showspectrum: do not use ff_outlink_get_status() on inlink
2023-05-30 02:16:42 +02:00