Paul B Mahol
97297fb144
avfilter/vf_overlay: inline yuv output formats
...
Overall speedup ~10-20%
Tested-by: Michael on mingw32 mingw64 linux32 mips and arm
2016-09-11 00:38:13 +02:00
Paul B Mahol
140a0485d3
avfilter/vf_overlay: split blend_image into functions for each overlay format
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-11 00:27:01 +02:00
Michael Niedermayer
054f912c0d
avfilter/avf_concat: Make independent of the channel layout
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-09-10 23:19:01 +02:00
Paul B Mahol
b257266ee8
avfilter/af_amix: use ff_all_channel_counts() instead of ff_all_channel_layouts()
...
Adds support for filtering frames with unknown channel layouts.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-10 13:05:31 +02:00
Paul B Mahol
c784b5cfdc
avfilter/vf_histogram: set foreground alpha if possible in destination format
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-10 00:28:28 +02:00
Paul B Mahol
7055b28d98
avfilter/vf_datascope: cleanup code a little
...
Make few helper functions.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-09 14:16:22 +02:00
Paul B Mahol
653ca05807
avfilter/vf_weave: do not leak unused frame
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-09 11:58:18 +02:00
Burt P
91117fc9f1
af_hdcd: fix bounds check in hdcd_envelope()
...
From Sebastian Ramacher.
https://github.com/bp0/libhdcd/pull/11
Signed-off-by: Burt P <pburt0@gmail.com>
2016-09-08 18:13:12 -05:00
Paul B Mahol
e9770b40b1
avfilter/vf_datascope: let user change background opacity
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-09 00:40:30 +02:00
Paul B Mahol
ae31ab8070
avfilter/vf_shuffleframes: unbreak filter
...
Regression since 736e2e2c30
.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-08 10:56:30 +02:00
Paul B Mahol
4fb6f9de0c
avfilter/vf_waveform: make possible to change background opacity
...
Only useful if output pixel format have alpha.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-07 22:38:14 +02:00
Burt P
38445d58f1
af_hdcd: hdcd_analyze_gen() using int instead of float
...
Signed-off-by: Burt P <pburt0@gmail.com>
2016-09-07 10:59:18 -05:00
Burt P
eb0086588f
af_hdcd: tweak hdcd_analyze_prepare() a bit
...
* use the actual sample rate
* use a more sensible frequency for the tone
* update fate test result
Signed-off-by: Burt P <pburt0@gmail.com>
2016-09-07 10:54:30 -05:00
Burt P
e700e21b6f
af_hdcd: move decoding setup from init to config_input
...
Signed-off-by: Burt P <pburt0@gmail.com>
2016-09-07 10:54:08 -05:00
Burt P
91be2ad756
af_hdcd: fix possible integer overflow
...
Signed-off-by: Burt P <pburt0@gmail.com>
2016-09-07 10:53:41 -05:00
Burt P
5e553cab68
af_hdcd: some types renamed to remove _t
...
Following a suggestion by Diego Biurrun.
_t is reserved for POSIX, apparently.
Signed-off-by: Burt P <pburt0@gmail.com>
2016-09-07 10:49:04 -05:00
Paul B Mahol
b7e78c75cc
avfilter/vf_paletteuse: add option to use new palette for each output frame
2016-09-07 15:56:13 +02:00
Paul B Mahol
93ae68d62a
avfilter/vf_palettegen: add mode for generating palette for each input frame
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-07 15:56:13 +02:00
Paul B Mahol
424f0f9e33
avfilter: add avgblur filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-07 15:36:54 +02:00
Michael Niedermayer
fdd9663781
avfilter/fifo: Make independent of the channel layout
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-09-06 12:36:28 +02:00
Michael Niedermayer
db3b93319d
avfilter/af_atempo: Make independent of the channel layout
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Pavel Koshevoy <pkoshevoy@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-09-06 12:36:28 +02:00
Michael Niedermayer
3a3265899b
avfilter/af_amix: make independent of the channel layout
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-09-06 12:36:28 +02:00
Carl Eugen Hoyos
70f4b453cb
doc/showspectrum*: Change options order to reflect numeric values.
...
Fixes ticket #5823 .
2016-09-06 11:52:10 +02:00
Paul B Mahol
496d97f465
avfilter/vf_owdenoise: hight bit-depth support
2016-09-06 01:29:46 +02:00
Paul B Mahol
443c9fab57
avfilter/vf_gblur: add sigmaV option, different vertical filtering
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-04 23:59:45 +02:00
Paul B Mahol
28b920c09b
avfilter/Makefile: move anullsrc and nullsink to correct place
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-04 15:33:05 +02:00
Paul B Mahol
9833cf2ae1
avfilter/vf_bitplanenoise: silence clang warning, do not truncate value
2016-09-04 15:33:05 +02:00
Paul B Mahol
ee605aa730
avfilter: add gblur filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-04 15:33:05 +02:00
Vittorio Giovara
5df993f3b1
vf_colorspace: Allow overriding input color properties
...
The filter needs input frames with color properties filled out by
the decoder. Since this is not always possible, add input options to
the filter so that user may override color space, color primaries,
transfer characteristics, and color range, as well as a generic option
to set all properties at once.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2016-09-04 13:11:32 +02:00
Paul B Mahol
b5cf307d0f
avfilter/vf_zscale: make possible to change chroma location
2016-09-02 16:10:30 +02:00
Davinder Singh
367577dbe2
avfilter/vf_minterpolate: rename chroma log vars
...
also use AVPixFmtDescriptor instead of avcodec_get_chroma_sub_sample()
for log2_chroma*.
2016-09-02 13:08:21 +02:00
Paul B Mahol
3e1356f790
avfilter: add weave filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-09-02 12:27:28 +02:00
Lucas Cooper
aabe12eba3
avfilter/vf_psnr: Add max value output option to psnr stats log.
...
This allows retroactive calculation/aggregation of PSNR from the stats
log.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-09-01 11:54:31 +02:00
Timo Rothenpieler
2625b955a3
avfilter/drawutils: honor shift for color component description
2016-08-31 13:19:46 +02:00
Timo Rothenpieler
d3a23b6777
avfilter/drawutils: P010 is not supported
2016-08-31 13:19:46 +02:00
Paul B Mahol
8175fb03f0
avfilter/vf_lut: unbreak planar rgb suppot on big-endian
2016-08-31 11:18:40 +02:00
Davinder Singh
11a631d4a7
avfilter/vf_minterpolate: do not right shift negative numbers
...
It was source of crashes. Use division instead.
Original patch by author. Log message by comitter.
2016-08-29 17:32:47 +02:00
Paul B Mahol
a0a57072c9
avfilter: make use of ff_filter_get_nb_threads
2016-08-29 16:27:09 +02:00
Paul B Mahol
5b1907142d
avfilter: add ff_filter_get_nb_threads()
2016-08-29 16:27:09 +02:00
Paul B Mahol
449339084f
avfilter: add nb_threads to AVFilterContext
...
To be used in following commits.
2016-08-29 16:27:09 +02:00
Paul B Mahol
88bcdf109a
avfilter: hflip,swapuv,vflip: add timeline support
2016-08-28 11:00:06 +02:00
Paul B Mahol
f242d74d17
avfilter/vf_convolution: add >8 bit depth support
2016-08-27 16:04:07 +02:00
Paul B Mahol
b2c6a11fb6
avfilter/vf_atadenoise: add planes option
...
Make possible filtering only some planes.
2016-08-27 13:48:14 +02:00
Vittorio Giovara
69abf4f93c
vf_colorspace: Add support for full range yuv
...
Whenever a full range video is input, since the YUVJ* formats are not
listed as supported for this filter, a range reduction takes place
through the auto-inserted format filter, forcing the conversion to
operate on a limited range,
However the filter handles full range videos perfectly fine, so adding
support to YUVJ* formats will allow skipping a conversion step, while
providing completely identical results.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-27 13:08:43 +02:00
Vittorio Giovara
6648da3591
vf_colorspace: Check av_frame_copy_props() return value
...
This function can potentially allocate memory.
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-27 13:08:43 +02:00
Paul B Mahol
0429ff4be6
avfilter: add vaguedenoiser filter
2016-08-26 23:17:19 +02:00
Michael Niedermayer
0c7979b43d
avfilter/motion_estimation: Fix pre processor formating
...
IIRC, The spaces are not standard before the #
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-26 23:09:17 +02:00
Michael Niedermayer
7827813f8c
avfilter/motion_estimation: Fix warning: variable dir_x set but not used
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-26 20:17:39 +02:00
Davinder Singh
b07d4a0fb2
avfilter: added motion estimation and interpolation filters
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-26 11:17:51 +02:00
Burt P
ec220a8c1c
af_hdcd: av_frame_free(out) if av_frame_copy_props() fails
...
Signed-off-by: Burt P <pburt0@gmail.com>
2016-08-25 17:12:16 -05:00
Burt P
9d5e3c3f59
af_hdcd: for easier maintenance alongside libhdcd
...
Mostly just re-arranges some code to make it easier to update this
filter and libhdcd together. filter_frame() is much simpler as a
result.
* use the HDCD detection data structure and functions from libhdcd,
moved detection code out of filter_frame()
* moved analyze_mode preparation out of filter_frame() into
hdcd_analyze_prepare(), from libhdcd
* moved some macro definitions to the top so they are all together
Signed-off-by: Burt P <pburt0@gmail.com>
2016-08-25 17:11:57 -05:00
Michael Niedermayer
e1ced854f2
avfilter/af_acrusher: Rename sun/sov
...
The names are hard to understand and also seem to break build on at least some solaris
versions
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-25 18:36:59 +02:00
Paul B Mahol
feb2ea6e09
avfilter: add yuvtestsrc source filter
2016-08-25 11:16:09 +02:00
Paul B Mahol
5d7743019b
avfilter: add lut2 filter
2016-08-25 11:16:09 +02:00
Burt P
8a78fc5b01
af_hdcd: check return value of av_frame_copy_props()
...
Anton Khirnov:
"[av_frame_copy_props()] potentially contains memory allocation,
so the return value needs to be checked."
Signed-off-by: Burt P <pburt0@gmail.com>
2016-08-24 09:08:45 -05:00
Paul B Mahol
0edfd8e6f4
avfilter/vf_lut: add planar RGB support
2016-08-24 08:30:22 +02:00
Paul B Mahol
68dc0c13f9
avfilter/vf_maskedmerge: add support for more pixel formats
2016-08-23 15:21:06 +02:00
Paul B Mahol
bb109dce18
avfilter: add hysteresis filter
2016-08-23 15:21:06 +02:00
Paul B Mahol
12f997d061
avfilter: add maskedclamp filter
2016-08-23 15:21:06 +02:00
Burt P
0e0f8859ba
af_hdcd: PE table limits
...
Signed-off-by: Burt P <pburt0@gmail.com>
2016-08-21 13:48:46 -05:00
Burt P
accbb00ba7
af_hdcd: add AVOption to disable autoconversion in the filter graph
...
Signed-off-by: Burt P <pburt0@gmail.com>
2016-08-21 13:48:08 -05:00
Burt P
8c19732a42
af_hdcd: add AVOption to set the CDT period
...
Signed-off-by: Burt P <pburt0@gmail.com>
2016-08-21 13:47:20 -05:00
Burt P
400e2acd11
af_hdcd: Code comments update
...
Signed-off-by: Burt P <pburt0@gmail.com>
2016-08-21 13:47:01 -05:00
Paul B Mahol
45e5d5f547
avfilter/avf_showvolume: calculate color table only once
2016-08-21 16:49:18 +02:00
Paul B Mahol
4d7d74802d
avfilter/vf_crop: make possible to do exact cropping for subsampled videos
2016-08-21 10:06:48 +02:00
James Almer
27ee70290e
avfilter/window_func: use a constant instead of acosh()
...
Should fix compilation with non C99 compilers like msvc 2012, where
acosh() is not available.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2016-08-20 11:50:58 -03:00
James Almer
a8e3833a61
x86/avf_showcqt: use the FMULADD_PS x86util macro
...
Signed-off-by: James Almer <jamrial@gmail.com>
2016-08-20 02:12:33 -03:00
Paul B Mahol
0d8b6a15dd
avfilter/vf_histogram: make foreground and background opacity configurable
2016-08-19 18:03:07 +02:00
Paul B Mahol
e2a39b103e
avfilter/avf_showvolume: use current peak value for picking colors
2016-08-18 20:14:58 +02:00
Paul B Mahol
b3c6e89d48
avfilter/avf_showspectrum: do not use uninitialized memory
2016-08-18 18:40:00 +02:00
Paul B Mahol
703ae350c2
avfilter/af_astats: fix flt(p) support
2016-08-18 15:30:05 +02:00
Paul B Mahol
81f7d07608
avfilter/af_astats: add support for s64(p) sample format
2016-08-18 15:30:05 +02:00
Paul B Mahol
5ee5f4b13c
avfilter/avf_showfreqs: make minimum amplitude for log scaler configurable
2016-08-17 22:02:29 +02:00
Paul B Mahol
345c252e9c
avfilter/avf_showspectrum: unbreak dB legend
2016-08-17 22:02:29 +02:00
Paul B Mahol
d299defbba
avfilter/Makefile & allfilters: sort entries
2016-08-17 13:37:39 +02:00
Paul B Mahol
ed8d7e7a9b
avfilter: add bitplanenoise filter
2016-08-17 13:24:28 +02:00
Paul B Mahol
b438c2025c
avfilter/window_func: add cauchy, parzen and poisson window function
2016-08-16 18:09:50 +02:00
Paul B Mahol
a2c40931c8
avfilter/vaf_spectrumsynth: check return code
2016-08-16 16:01:35 +02:00
Paul B Mahol
1457786d69
avfilter/avf_showspectrum: do not let multiple threads to write to same part of memory
2016-08-16 15:56:12 +02:00
Paul B Mahol
ea58dd2beb
avfilter/window_func: add dolph window
2016-08-16 15:56:12 +02:00
Paul B Mahol
3282e31baa
avfilter/vf_atadenoise: set default size value to 9
...
This is enough, bigger sizes do not produce better output in 99% cases.
2016-08-15 23:04:08 +02:00
Paul B Mahol
fc3eb173f4
avfilter/vf_atadenoise: add support for more pixel formats
2016-08-15 23:00:28 +02:00
Paul B Mahol
4f226714f5
avfilter/af_astats: add support for other sample formats
2016-08-15 22:01:16 +02:00
Paul B Mahol
ce5ba77079
avfilter/avf_showspectrum: add some multithreading support
2016-08-15 13:17:06 +02:00
Paul B Mahol
ac18114b96
avfilter/vf_zoompan: fix pzoom usage
2016-08-15 09:55:36 +02:00
Paul B Mahol
ec4ed2f69c
avfilter/vf_signalstats: fix saturation calculation for >8 bit
2016-08-14 10:00:35 +02:00
Paul B Mahol
3a81775bde
avfilter/vf_signalstats: measure video bitdepth
2016-08-13 12:57:09 +02:00
Paul B Mahol
ee56d9bc89
avfilter/vf_signalstats: add >8 bit depth support
2016-08-13 12:57:09 +02:00
Paul B Mahol
b5314333de
avfilter/af_adelay: make it possible to delay channels by exact number of samples
2016-08-11 21:46:06 +02:00
Paul B Mahol
eb3137255f
avfilter/avf_avectorscope: fix initialization for prev_y in polar mode
2016-08-11 17:30:32 +02:00
Paul B Mahol
a130165ed9
avfilter/avf_avectorscope: add scale option
2016-08-11 17:21:54 +02:00
Paul B Mahol
7f1b14bc57
avfilter: add acrusher filter
2016-08-11 15:02:16 +02:00
Burt P
16ea0bca14
avfiltergraph.c: restore disabling of auto conversions
...
Restore a check added in 440af105f2
but lost sometime after. avfilter_graph_set_auto_convert() will
have an effect once again.
Signed-off-by: Burt P <pburt0@gmail.com>
2016-08-10 11:37:28 -05:00
Paul B Mahol
80262d8c86
avfilter/avf_showwaves: add sqrt and cbrt amplitude scalers
2016-08-10 11:34:04 +02:00
Paul B Mahol
4506f91185
avfilter/vf_remap: >8 bit support
2016-08-10 10:02:05 +02:00
Michael Niedermayer
369ed11e3c
avfilter/drawutils: Fix single plane with alpha
...
Fixes Ticket5720
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-09 12:42:57 +02:00
Burt P
dbd7a84c81
af_hdcd: Don't warn if converting from AV_SAMPLE_FMT_S16P
...
Also checking AVFilterLink->type is AVMEDIA_TYPE_AUDIO before
calling av_get_sample_fmt_name() on AVFilterLink->format.
Signed-off-by: Burt P <pburt0@gmail.com>
2016-08-08 11:17:27 -05:00
Burt P
b2b659b17d
af_hdcd: Add analyze mode
...
A new mode, selected by filter option, to aid in analysis of HDCD
encoded audio. In this mode the audio is replaced by a solid tone and
the amplitude is adjusted to signal some specified aspect of the process.
The output file can be loaded in an audio editor alongside the original,
where the user can see where different features or states are present.
Signed-off-by: Burt P <pburt0@gmail.com>
2016-08-08 10:49:34 -05:00
Paul B Mahol
22d13e4290
avfilter/af_dynaudnorm: use better check for infinite loop
...
Apparently due to rounding this happens.
2016-08-07 23:47:04 +02:00
Paul B Mahol
571f33de0a
avfilter/avf_showspectrum: improve dB scale description
2016-08-07 20:21:52 +02:00