Paul B Mahol
67771ac4b8
avfilter/avf_showspectrum: add rscroll sliding mode
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-28 18:16:10 +01:00
Paul B Mahol
47aaebd63e
avfilter/af_silenceremove: make size of window user configurable
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-28 12:23:59 +01:00
Paul B Mahol
b841fe002a
avfilter/af_silenceremove: lower number of operations in for loop
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-28 12:23:59 +01:00
Paul B Mahol
1809894b2a
avfilter/af_silenceremove: add peak detector
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-27 20:49:29 +01:00
Ganesh Ajjanagadde
3e2e303e4b
lavfi/avf_showspectrum: replace rint by lrint
...
avoids float to int cast.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-26 20:29:22 -08:00
Ganesh Ajjanagadde
4e7cfefa16
lavfi/vf_hue: replace rint by lrint
...
avoids float to int cast.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-26 20:29:22 -08:00
Ganesh Ajjanagadde
421679dbf7
lavfi/af_compand: replace pow(10,x) by ff_exp10(x)
...
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-25 10:48:18 -08:00
Ganesh Ajjanagadde
6c360ca8a1
lavfi/af_volume: replace pow(10,x) by ff_exp10(x)
...
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-25 10:48:18 -08:00
Ganesh Ajjanagadde
e0024b9e5f
lavfi/f_ebur128: replace pow(10,x) by ff_exp10(x)
...
Reviewed-by: Clément Bœsch <u@pkh.me >
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-25 10:48:18 -08:00
Ganesh Ajjanagadde
86aa2e9f76
lavfi/vsrc_testsrc: replace pow(10,x) by ff_exp10(x)
...
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-25 10:48:18 -08:00
Paul B Mahol
c9b99494be
avfilter/af_anequalizer: make cliping filter type actually useful
...
Previously result was ignored.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-25 15:03:46 +01:00
Paul B Mahol
c6e3b6a819
avfilter/af_anequalizer: use pow instead of exp10
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-25 15:00:06 +01:00
Paul B Mahol
56c7d2b4da
avfilter: add high-order parametric multiband equalizer filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-25 14:22:28 +01:00
Paul B Mahol
8cbb055760
avfilter/af_sofalizer: make virtual speaker positioning supports all channel layouts
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-24 19:00:05 +01:00
James Almer
8dba3fb8fd
x86/vf_blend: add sse2 versions of blend_difference and blend_negation
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-12-24 13:05:27 -03:00
James Almer
02f428051a
x86/vf_blend: make all functions work on x86_32
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-12-24 13:05:24 -03:00
James Almer
0988c68cf9
x86/vf_blend: simplify using macros
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-12-24 13:05:21 -03:00
James Almer
ce4c85de6a
x86/vf_maskedmerge: make ff_maskedmerge8_sse2 work on x86_32
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-12-24 13:05:18 -03:00
Michael Niedermayer
e42e0b11f1
avfilter/x86/vf_maskedmerge: Clear upper part of width
...
Fixes crash
Fixes: Ticket5055
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-23 22:38:15 +01:00
Paul B Mahol
3689b58a5a
avfilter/af_biquads: display clipping warnings once per filtered frame
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-23 19:15:25 +01:00
Ganesh Ajjanagadde
520a5d33f0
lavfi/af_aemphasis: remove unnecessary complex number usage
...
complex is not available on all platforms. Furthermore, it is trivial to
rewrite complex number expressions to real arithmetic, and in fact
sometimes advantageous for performance reasons: by wrapping as a complex,
one forces a particular Cartesian representation that is not necessarily optimal for the purpose.
Configure dependencies also removed, and aemphasis is now available across
all platforms.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-23 09:22:59 -08:00
Nicolas George
1655788712
lavfi: make request_frame() non-recursive.
...
Instead of calling the input filter request_frame() method,
ff_request_frame() now marks the link and returns immediately.
buffersink is changed to activate the marked filters until
a frame is obtained.
2015-12-22 16:04:30 +01:00
Nicolas George
108b4de552
lavfi: replace link.closed by link.status.
...
The status field can carry any error code instead of just EOF.
Also only update it through a wrapper function and provide a timestamp.
Update the few filters that used it directly.
2015-12-22 16:04:30 +01:00
Nicolas George
39a09e995d
lavfi: deprecate avfilter_link_set_closed().
...
Applications are not supposed to mess with links,
they should close the sinks.
Furthermore, this function does not distinguish what end
of the link caused the close and does not have a timestamp.
2015-12-22 16:04:22 +01:00
Nicolas George
b8b7d5ac6c
lavfi: add link.current_pts field.
2015-12-22 15:55:00 +01:00
Nicolas George
d03eab34dd
lavfi: rename link.current_pts to current_pts_us.
...
This field is used for fast comparison between link ages,
it is in AV_TIME_BASE units, in other words microseconds,
µs =~ us.
Renaming it allows a second field in link time base units.
2015-12-22 15:55:00 +01:00
Nicolas George
63f7bee752
lavfi/vf_mpdecimate: remove request_frame().
...
It is no longer needed since looping is not necessary.
2015-12-22 15:55:00 +01:00
Ganesh Ajjanagadde
ea2f04bffe
lavfi/vf_histogram: replace round by lrint
...
lrint is at least as fast, uses a superior rounding mode, and avoids an
implicit cast.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-21 08:23:21 -08:00
Ganesh Ajjanagadde
ad795f6394
lavfi/af_dynaudnorm: replace round by lrint
...
lrint is at least as fast, uses a superior rounding mode, and avoids an
implicit cast.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-21 08:22:23 -08:00
Ganesh Ajjanagadde
2a486869d9
lavfi/vf_crop: replace round by lrint
...
lrint is at least as fast, avoids an implicit cast, and uses a superior
rounding mode.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-21 08:21:20 -08:00
Ganesh Ajjanagadde
ff1442a51d
lavfi/vf_drawtext: replace round by llrint
...
llrint is at least as fast, and avoids an implicit cast.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-21 08:18:12 -08:00
Ganesh Ajjanagadde
7af14b3726
lavfi/vf_colorlevels: replace round by lrint
...
lrint avoids an implicit cast, and is not slower on non-broken libm's. Thus this
represents a Pareto improvement.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-21 08:17:13 -08:00
Ganesh Ajjanagadde
cc37b31ad3
lavfi/vf_colorchannelmixer: replace round by lrint
...
lrint is faster here on -ftree-vectorize with GCC. This is likely simply
an artifact of GCC's rather terrible auto-vectorizer, since as per the
instruction set manuals cvtsd2si and cvttsd2si (or their vector equivalents)
have identical cycle timings.
Anyway, regardless of above, lrint is superior to round accuracy wise.
Safety guaranteed as long int has at least 32 bits.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-21 08:15:31 -08:00
Clément Bœsch
d3dbae1c71
lavfi/drawtext: fix shadow[xy] descriptions
2015-12-21 16:42:14 +01:00
Clément Bœsch
1d6308dbc6
lavfi/drawtext: hide first font load warning when fontconfig is present
2015-12-21 16:07:22 +01:00
Clément Bœsch
4cb26c3c35
lavfi/drawtext: fix crash when no text, file or timecode provided
2015-12-21 15:54:20 +01:00
Paul B Mahol
a142308dcd
avfilter/af_ladspa: fix av_assert0()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-21 13:27:56 +01:00
Clément Bœsch
244766e407
lavfi/scale: add nb_slices debug option
2015-12-21 10:30:52 +01:00
Paul B Mahol
9e569abe99
avfilter/avf_showfreqs: make it possible to split channels
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-20 19:52:51 +01:00
Paul B Mahol
7caf381a95
avfilter/af_dynaudnorm: use av_malloc_array()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-19 22:46:10 +01:00
Paul B Mahol
ebe1ca01d1
avfilter/vf_stereo3d: add interleave columns input support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-19 19:23:47 +01:00
Ganesh Ajjanagadde
5484cbe9f7
lavfi/vsrc_mandelbrot: replace round by lrint
...
lrint is at least as fast, and is more accurate.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-19 09:34:26 -08:00
Ganesh Ajjanagadde
425c0685f2
lavfi/vf_cropdetect: replace round by lrint
...
lrint is at least as fast, and more accurate.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-19 09:34:08 -08:00
Ganesh Ajjanagadde
641cb77f50
lavfi/vf_idet: replace round and cast by lrint
...
lrint is faster and conveys the intent better here. It is safe as long int has
at least 32 bits.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-12-19 09:33:32 -08:00
Jean Delvare
47b2ba9878
avfilter/vf_delogo: change the definition of logo_x2 and logo_y2
...
In the code we keep using logo_x2-1 and logo_y2-1 rather than logo_x2
and logo_y2 themselves. Define them to be what we need instead, to avoid
the repeated subtractions.
Signed-off-by: Jean Delvare <jdelvare@suse.de >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-19 03:12:31 +01:00
Paul B Mahol
8d6b1ffba0
avfilter/vf_stereo3d: fix interleaved columns output
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-18 22:04:19 +01:00
Paul B Mahol
aefcc77b90
avfilter/vf_stereo3d: multiply linesize only once for interleaved row to mono
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-18 19:44:01 +01:00
Paul B Mahol
620b47576d
avfilter/vf_stereo3d: add fast path for interleave rows to mono
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-18 15:15:45 +01:00
Paul B Mahol
ec1b95dda4
avfilter/vf_stereo3d: fix interleave rows output
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-18 10:56:33 +01:00
Paul B Mahol
a2a217b351
avfilter/vf_stereo3d: add fast path for interleave rows to alternating
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-12-18 10:56:16 +01:00