Anton Khirnov
c9c6f07436
lavfi/af_hdcd: convert to query_func2()
5 months ago
Anton Khirnov
0ec382f494
lavfi/af_haas: convert to query_func2()
...
Also, drop a redundant call that also happens implicitly in generic code.
5 months ago
Anton Khirnov
408587c836
lavfi/af_extrastereo: convert to query_func2()
...
Also, drop a redundant call that also happens implicitly in generic code.
5 months ago
Anton Khirnov
7896b95430
lavfi/af_earwax: convert to query_func2()
5 months ago
Anton Khirnov
e37d1efe65
lavfi/af_dialoguenhance: convert to query_func2()
...
Also, drop redundant calls that also happen implicitly in generic code.
5 months ago
Anton Khirnov
ffbafbfded
lavfi/af_crossfeed: convert to query_func2()
...
Also, drop redundant calls that also happen implicitly in generic code.
5 months ago
Anton Khirnov
84fda7de79
lavfi/af_channelsplit: convert to query_func2()
...
Also, drop a redundant call that also happens implicitly in generic code.
5 months ago
Anton Khirnov
18d492ff41
lavfi/af_channelsplit: support arbitrary channel layouts
...
Not just those containing channel values under 64. Also, remove an
arbitrary limitation on channel count.
5 months ago
Anton Khirnov
7dc81d33c2
lavfi/af_channelmap: remove an arbitrary limit on channel count
5 months ago
Marvin Scholz
9556379943
lavfi/avfiltergraph: fix leak on error
...
Introduced in eddffbedb3
Fixes: CID1618897 Resource leak
Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 months ago
Lynne
eb5088d28c
vulkan_filter: require storage images properly, set usage flags explicitly
...
This caused images to be created without a storage usage, which broke
at least lavapipe.
5 months ago
Christian Helmrich
865cd3c056
avfilter: add XPSNR filter
...
Add XPSNR video filter
Register new filter xpsnr.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 months ago
James Almer
a49188297f
avfilter/af_bs2b: remove unecessary initializer from layouts
...
Fixes compilation with msvc.
Signed-off-by: James Almer <jamrial@gmail.com>
5 months ago
James Almer
d98de855a8
avfilter/af_asr: remove unecessary initializer from layouts
...
Fixes compilation with msvc.
Signed-off-by: James Almer <jamrial@gmail.com>
5 months ago
James Almer
ef6a5c98fb
avfilter/af_apulsator: remove unecessary initializer from layouts
...
Fixes compilation with msvc.
Signed-off-by: James Almer <jamrial@gmail.com>
5 months ago
Anton Khirnov
f0f1cf2697
lavfi/af_channelmap: convert to query_func2()
...
Also, drop redundant calls that also happen implicitly in generic code.
5 months ago
Anton Khirnov
3045949945
lavfi/af_bs2b: convert to query_func2()
...
Also, drop redundant calls that also happen implicitly in generic code.
5 months ago
Anton Khirnov
96a8a6139e
lavfi/af_biquads: convert to query_func2()
...
Also, drop redundant calls that also happen implicitly in generic code.
5 months ago
Anton Khirnov
2e899d3bdf
lavfi/af_asr: convert to query_func2()
...
Also, simplify code.
5 months ago
Anton Khirnov
cf43a02c2c
lavfi/af_asetrate: convert to query_func2()
...
Also, drop redundant calls that also happen implicitly in generic code.
5 months ago
Anton Khirnov
b18f7d7e2d
lavfi/af_arnndn: convert to query_func2()
...
Also, drop redundant calls that also happen implicitly in generic code.
5 months ago
Anton Khirnov
dfaa339167
lavfi/af_arls: convert to query_func2()
...
Also, drop redundant calls that also happen implicitly in generic code.
5 months ago
Anton Khirnov
814c961a78
lavfi/af_aresample: convert to query_func2()
5 months ago
Anton Khirnov
c24e0df30b
lavfi/af_apulsator: convert to query_func2()
...
Also, simplify code, and drop a redundant call that also happens
implicitly in generic code.
5 months ago
Anton Khirnov
6f2adb7967
lavfi/af_anlms: convert to query_func2()
...
Also, drop redundant calls that also happen implicitly in generic code.
5 months ago
Anton Khirnov
e0ab1fcc8c
lavfi/af_anequalizer: convert to query_func2()
...
Also, simplify code and drop redundant calls that also happen implicitly
in generic code.
5 months ago
Anton Khirnov
6e4affc407
lavfi/af_aiir: convert to query_func2()
...
Drop redundant ff_set_common_all_channel_counts() /
ff_set_common_all_samplerates() calls, since those happen implicitly in
generic code.
5 months ago
Anton Khirnov
f143723095
lavfi/af_agate: convert to query_func2()
...
Drop redundant ff_set_common_all_channel_counts() /
ff_set_common_all_samplerates() calls, since those happen implicitly in
generic code.
5 months ago
Anton Khirnov
c3fb696311
lavfi/af_aformat: convert to query_func2()
5 months ago
Anton Khirnov
8bc419aeb4
lavfi/af_aformat: change options from strings to arrays
...
Allows to drop custom parsing code, and also the assumption that
query_formats() is not called more than once.
5 months ago
Anton Khirnov
dc488d832c
lavfi/af_afir: convert to query_func2()
...
Drop redundant ff_set_common_all_channel_counts() /
ff_set_common_all_samplerates() calls, since those happen implicitly in
generic code.
5 months ago
Anton Khirnov
584be51334
lavfi/af_adynamicequalizer: convert to query_func2()
...
Drop redundant ff_set_common_all_channel_counts() /
ff_set_common_all_samplerates() calls, since those happen implicitly in
generic code.
5 months ago
Anton Khirnov
079834e645
lavfi/af_acrossover: convert to query_func2()
...
Drop redundant ff_set_common_all_channel_counts() /
ff_set_common_all_samplerates() calls, since those happen implicitly in
generic code.
5 months ago
Anton Khirnov
edf53e15b4
lavfi/af_aap: convert to query_func2()
...
Drop redundant ff_set_common_all_channel_counts() /
ff_set_common_all_samplerates() calls, since those happen implicitly in
generic code.
5 months ago
Anton Khirnov
0f004a0416
lavfi/aeval: convert to query_func2()
...
Drop redundant ff_set_common_all_channel_counts() /
ff_set_common_all_samplerates() calls, since those happen implicitly in
generic code.
5 months ago
Anton Khirnov
eddffbedb3
lavfi: add query_func2()
...
It differs from query_func() in accepting arrays of input/output format
configurations to be filled as callback parameters. This allows to mark
the filter context as const, ensuring it is not modified by this
function, as it is not supposed to have any side effects beyond
returning the supported formats.
5 months ago
Gyan Doshi
b5daaa1503
avfilter/formats: correct error message
...
The check is for color space, not range.
5 months ago
Zhao Zhili
2e370805da
avfilter/unsharp: Merge header into .c
...
It was shared with opencl implementation.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
5 months ago
Gnattu OC
30f090b4f8
avfilter: inherit input color range for videotoolbox filters
...
The color range should be set to match the input when creating
the VideoToolbox context. Otherwise, the new context will default
to limited range, creates inconsistencies with full range inputs.
Signed-off-by: Gnattu OC <gnattuoc@me.com>
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
5 months ago
Anton Khirnov
52471b56ba
lavfi: make FFFilterContext private to generic code
...
Nothing in it needs to be visible to filters.
5 months ago
Anton Khirnov
f19c988911
lavfi/filters: move functions only used by generic code to avfilter_internal.h
5 months ago
Anton Khirnov
6d75d44d90
lavfi: drop internal.h
...
All that remains in it are things that belong in avfilter_internal.h.
Move them there and remove internal.h
5 months ago
Anton Khirnov
90e4af65e1
lavfi/f_streamselect: remove a no-op ff_filter_config_links() call
...
It does not do anything when the links are already configured.
5 months ago
Anton Khirnov
a2314308f2
lavfi/inernal: move ff_fmt_is_regular_yuv() declaration to video.h
5 months ago
Anton Khirnov
a83a30e899
lavfi: move ff_parse_{sample_rate,channel_layout}() to audio.[ch]
...
That is a more appropriate place for those functions.
5 months ago
Anton Khirnov
f4bfdf7893
lavfi: move ff_parse_pixel_format() to vf_format, its only caller
...
The only thing this function does beyond calling av_get_pix_fmt() is
falling back onto parsing the argument as a number. No other filters
should need to do this.
5 months ago
Anton Khirnov
1afe42852b
lavfi/internal: move functions used by filters to filters.h
...
internal.h currently mixes interfaces intended to be used by filters
with those that should be limited to generic filter- or graph-level
code.
5 months ago
James Almer
211c88b9d5
avfilter/f_zmq: fix graph argument
...
Fixes regression since d566a37003
.
Signed-off-by: James Almer <jamrial@gmail.com>
5 months ago
Niklas Haas
f1071dc634
avfilter/vf_zscale: remove unused fields
5 months ago
Niklas Haas
c8bc6fabd7
avfilter/vf_scale: fix 4:1:0 interlaced chroma pos
...
The current logic hard-coded a check for v_sub == 1. We can extend this
logic slightly to cover the case of interlaced 4:1:0 (which has v_sub ==
2).
Here is a diagram explaining this scenario (with center-siting):
a a a a a a a a
b b b b b b b b
X X
a a a a a a a a
b b b b b b b b
a a a a a a a a
b b b b b b b b
Y Y
a a a a a a a a
b b b b b b b b
a = even luma rows
b = odd luma rows
X = even chroma sample
Y = odd chroma sample
In progressive mode, the chroma samples sit at (384, 384) respectively.
Relative to the 8x4 grid of even luma samples (a), the X sample sits at:
h_chr_pos = 384
v_chr_pos = 192
Relative to the 8x4 grid of odd luma samples (b), the Y sample sits at:
h_chr_pos = 384
v_chr_pos = 576
The new code calculates the correct values in all circumstances.
5 months ago