Rostislav Pehlivanov
3796fb2692
lavfi: deprecate AVFilterGraph->resample_lavr_opts
...
Not used by anything at all since we don't auto insert lavr filters.
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Alexis Ballier
bbc8f3d20e
lavf/vf_framerate: Fix frame leak when increasing framerate.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Paul B Mahol
62c8dc4642
avfilter/vf_lut3d: actually skip lines when encountering DOMAIN_ string
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Jun Zhao
bf238a6a3c
vf_hwupload: Add missing return value check
...
Add missing return value checks to suppress build warning and
remove noop ff_formats_unref() calling.
Note: most filters using ff_formats_ref() didn't have a suitable
error handling, it's a potential memory leak issue.
Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
8 years ago
Anton Khirnov
807a3b30d2
lavfi: add a QSV scaling filter
...
This merges libav commit ac7bfd6967
,
which was previously skipped.
(cherry picked from commit ac7bfd6967
)
Signed-off-by: Mark Thompson <sw@jkqxz.net>
8 years ago
Muhammad Faiz
0bab78f7e7
avfilter/af_firequalizer: add av_restrict on convolution func
...
slightly improved speed
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
8 years ago
Moritz Barsnick
114bbb0b74
libavfilter/avf_showwaves: make sqrt and cbrt scale option values available to showwavespic by name
...
The 'sqrt' and 'cbrt' scalers were added in commit
80262d8c86
, but their symbolic option values
only made available to the showwaves filter, not showwavespic, despite
the scalers working properly by their numerical option values.
Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
8 years ago
Muhammad Faiz
af7010ad05
avfilter/allfilters: make avfilter_register_all thread safe
...
use ff_thread_once
Suggested-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
8 years ago
Paul B Mahol
dbc7f02a72
avfilter/aeval: trim last frame's number of samples to match requested duration
...
Fixes #6181 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Mark Thompson
359586f14f
lavfi: Add VAAPI deinterlacer
...
(cherry picked from commit ade370a4d7
)
(cherry picked from commit 2d518aec4c
)
8 years ago
Rostislav Pehlivanov
42959044ac
lavfi/buffersrc: fix directly setting channel layout
...
When setting the channel layout directly using AVBufferSrcParameters
the channel layout was correctly set however the init function still
expected the old string format to set the number of channels (when it
hadn't already been specified).
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Pavel Koshevoy
947fdad92d
avfilter/af_atempo: fix drift calculation, ticket #6157
...
ticket #6157
Reported-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Pavel Koshevoy <pkoshevoy@gmail.com>
8 years ago
Marton Balint
a9f3e4b138
avfilter/f_setcmd: fix null pointer dereference on using dash as interval
...
Fixes Coverity CID 1396259.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years ago
Paul B Mahol
aa234698e9
avfilter/vf_lut: make it possible to clip pixel values that are out of valid range
...
Previous behavior was not useful at all as such pixels where all mapped to 0.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
72864547f9
avfilter/vf_lut: do not always explicitly clip pixels
...
Old behaviour was not useful at all. New behaviour only emulate
old behaviour with default options.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Carl Eugen Hoyos
350ce0b9d3
lavfi/minterpolate: Remove an unused variable.
8 years ago
Maksym Veremeyenko
8efb7f5a26
avfilter/vf_scale: Fix chroma positioning for 4:2:0 pixel format
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
4fcdc9f359
avfilter/vf_midequalizer: Remove duplicate include
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Marton Balint
e57fd926b0
avfilter/af_pan: fix null pointer dereference on empty token
...
Fixes Coverity CID 1396254.
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years ago
Mark Thompson
326b1ed93e
vf_scale_vaapi: Add missing return value checks
...
Fixes CID 1374119.
8 years ago
Marton Balint
fd57f70c97
avfilter/ebur128: fix relative threshold calculation for multiple contexts
...
This reworks the code a bit and also disallows NULL contexts.
Fixes Coverity CID 1396273, 1396279.
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years ago
Marton Balint
a91cedf79a
avfilter/ebur128: do not allow null ebur128 context in ff_ebur128_relative_threshold
...
The user should supply a proper context.
Fixes Coverity CID 1396246.
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years ago
Paul B Mahol
012dd8c99a
avfilter: add midequalizer filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Michael Niedermayer
c347b28699
avfilter/vf_unsharp: Free out AVFrame on error
...
Fixes memleak
Fixes part of CID1197065
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
19f567208c
avfilter/vf_perspective: Free out AVFrame on error
...
Fixes memleak
Fixes part of CID1197065
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
21a07ac191
avfilter/vf_fieldhint: Free out AVFrame on error
...
Fixes memleak
Fixes part of CID1197065
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
15b2c37d5e
avfilter/vf_deshake: Free out AVFrame on error
...
Fixes memleak
Fixes part of CID1197065
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
3edbc2408b
avfilter/vf_ciescope: Free out AVFrame on error
...
Fixes memleak
Fixes part of CID1197065
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Aman Gupta
037bb4021c
avfilter/scale: refactor common code for scaling height/width expressions
...
Implements support for height/width expressions in vf_scale_vaapi,
by refactoring common code into a new libavfilter/scale.c
Signed-off-by: Mark Thompson <sw@jkqxz.net>
8 years ago
Paul B Mahol
3405d6c7bc
avfilter/overlay: add gbrp output format
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
acf1dd5b74
avfilter: add threshold filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Muhammad Faiz
c4a3526b57
avfilter/showcqt: make minimum timeclamp option lower
...
high basefreq does not require high timeclamp
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
8 years ago
Nicolas George
383057f8e7
lavfi: make ff_framequeue_skip_samples() more useful.
...
Instead of just updating statistics and leaving the work to the
call site, have it actually do the work.
Also: skip the samples by updating the frame data pointers
instead of moving the samples. More efficient and avoid writing
into shared frames.
Found-By: Muhammad Faiz <mfcc64@gmail.com>
8 years ago
Paul B Mahol
c6f7f33eec
avfilter/vf_remap: add . at end of long description
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Michael Niedermayer
6294247730
avfilter/vf_gblur: Increase supported pixel count from 31bit to 32bit in filter_postscale()
...
Fixes CID1396252
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Paul B Mahol
836c8750b3
avfilter/avf_showspectrum: fix 2 possible crashes
...
Make sure no division by zero is done.
Make sure there are actually samples available.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
ee8e00b703
avfilter: add abitscope multimedia filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Marton Balint
977fd88419
avfilter/formats: do not allow unknown layouts in ff_parse_channel_layout if nret is not set
...
Current code returned the number of channels as channel layout in that case,
and if nret is not set then unknown layouts are typically not supported.
Also use the common parsing code. Use a temporary workaround to parse an
unknown channel layout such as '13c', after a 1 year grace period only '13C'
will work.
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years ago
Paul B Mahol
08e5732318
avfilter: add EIA-608 line extractor
...
Signed-off-by: Dave Rice <dave@dericed.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Michael Niedermayer
0a5add45c7
avfilter/af_hdcd: Fix leak of memory allocated by ff_make_format_list()
...
Fixes CID1396265
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
61164112a5
avfilter/avf_showspectrum: Fix memleak of text allocated by av_asprintf()
...
Fixes CID1396261
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
e740e9c798
avfilter/vf_palettegen: Fix leak and simplify code
...
Fixes CID1270818
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
5f2b360fc0
avfilter/avfiltergraph: Add assert to write down in machine readable form what is assumed about sample rates in swap_samplerates_on_filter()
...
Fixes CID1397292
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Steven Liu
90096e42e1
avfilter:vf_drawtext: add new line space size set parameter
...
add line_spacing parameter to set the space between two lines
Based on an idea by: Leandro Santiago <leandrosansilva@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
8 years ago
Sergey Kudryashov
a9b33b5a37
libavfilter/af_biquads: warn about clipping only after frame with clipping
8 years ago
Nicolas George
f7191ccad6
lavfi: remove stray semicolons.
...
Hopefully fix compilation with suncc.
8 years ago
Nicolas George
aaae459a85
lavfi: reindent after previous commit.
8 years ago
Nicolas George
912969a33e
lavfi/buffersink: move to the new design.
8 years ago
Nicolas George
32c59a115d
lavfi: do not call ff_filter_frame() with activate.
...
avfilter_graph_request_oldest() does work that should be done by
either the filter or the application.
The principle of this function, calling ff_request_frame() from
outside the filter was always shaky. This version is less elegant
since it requires making special cases for each filter, but it
is more robust since it no longer calls ff_request_frame()
directly without notifying the filter.
Eventually, avfilter_graph_request_oldest() will be deprecated
for a function to just run the graph.
8 years ago
Nicolas George
c619a4e525
lavfi: make two functions static.
...
ff_request_frame_to_filter() and ff_filter_frame_to_filter()
are only used in avfilter.c.
8 years ago