Nicolas George
c262ddb8c5
lavfi: set sample_rate in the default allocator.
12 years ago
Nicolas George
b5bea2f960
lavfi/aresample: set buffer properties after copy.
...
The aresample filter changes the format, layout and/or sample rate,
it can not copy them blindly from its input.
Related to trac ticket #1671 .
12 years ago
Stefano Sabatini
3015194448
lavfi/amerge: clarify the error message in case of input overlap
12 years ago
Clément Bœsch
bbae8cdf4d
lavfi/amerge: avoid a forward declaration.
12 years ago
Clément Bœsch
7b56dddd56
lavfi/amerge: fix input pad name behaviour.
...
This fixes two problems:
- the invalid pad.name stack pointer after init() ends
- the duplicated name for all inputs
12 years ago
Stefano Sabatini
206c34e17d
lavfi/setpts: set SAMPLE_RATE to NAN when input is no audio
...
Should be more robust/consistent.
12 years ago
Stefano Sabatini
722762f7e1
lavfi/setpts: add FRAME_RATE constant
...
Useful for dealing with constant frame-rate video.
12 years ago
Luca Barbato
28165fee1b
yadif: cosmetics
12 years ago
Stefano Sabatini
a4cb0af945
lavfi: drop deprecated and pointless avfilter_default_end_frame() function
...
Fix warning when compiling boxblur.
While this is technically a major API break, practically there will be no
one using that function since the filtering API is mostly private, so
that function alone is not usable.
12 years ago
Derek Buitenhuis
3fe303a27d
vf_idet: Remove emms
...
There is no MMX code anyway.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Derek Buitenhuis
a2015b41a0
vf_colormatrix: Drop unused strings.h header
...
It already uses av_strcasecmp.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
91141f2a13
lavfi: add qp_table_size
...
This avoid recalculating it and in case w/h changed avoids crashes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
91a84a5247
af_asyncts: check return value from lavr when flushing.
...
Fixes an infinite loop on flush when avresample_get_delay() still
reports some samples but avresample_convert() doesn't return any data.
12 years ago
Michael Niedermayer
ca7be934d6
lavfi: 10l fix () placement
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a33b4bc79c
lavfi: factor copy_video_props() out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
c9a0f9bf3c
libavfilter: pass QP table through the filter chain
...
Any volunteers to port the pp and spp filters from libmpcodec?
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
fb2e7ac3c4
lavfi/mp: drop rotate wrapper
...
The native filter transpose is perfectly equivalent.
12 years ago
Stefano Sabatini
9a2daef53f
lavfi/tinterlace: declare source buffers in copy_picture_field() as const
...
Increase performance (slightly).
12 years ago
Stefano Sabatini
fd5293d216
lavfi/tinterlace: set inlink->cur to NULL, since it is stored internally
...
If not set to NULL, the reference is freed by ff_end_frame(), and later
accessed in end_frame() by the filter code, causing a crash.
12 years ago
Michael Niedermayer
e60fcdb989
vf_hue: fix AVOption defaults
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
8267f0f7ae
vf_scale: fix incompatible pointer type warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
21bc440384
avopt: Explicitly store rational option defaults in .dbl
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
c7b610aa0b
avopt: Explicitly store float/double option defaults in .dbl
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
e6153f173a
avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
d58dd4b5b5
avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
124134e424
avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
49c230fb56
libavfilter/Makefile: add forgotten entries for the ff-sinks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
172161c8db
sink_buffer: fix #ifs for FF-sinks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
9de7622927
lavfi/transpose: implement landscape passthrough mode
...
Emulate the mp=rotate passthrough mode.
12 years ago
Michael Niedermayer
8cc77646c0
yadif: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
34bf06a35c
lavfi: when configuring a link, set channel layout from previous link if unspecified
...
In avfilter_config_links(), if the current channel layout is not
specified, set the same value of the previous link in the filterchain.
Consistent with the logic used to set the other link parameters.
12 years ago
Piotr Bandurski
9d87cf51d8
lavfi/vf_frei0: add missing new line to some error messages
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
9cdb5969d4
libmpcodecs: remove unused and half existing vo_fs variable
...
It breaks linking with suncc sometimes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
d55252c331
lavfi/mp: remove decimate wrapper
...
It was natively integrated into libavfilter.
12 years ago
Michael Niedermayer
e4e02a7d47
libavfilter: Support the forks ABI for buffer sinks
...
With this change avconv compiled against libav and linked to ffmpegs libs
will run through the whole fate testsuite without any crashes.
857 tests pass, the remaining tests fail one way or another, which is
to be expected as avconv is not a drop in replacement for ffmpeg
The testsuite used was the ffmpeg fate testsuite, not libavs.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
235f74db59
Rename missed cases of FF_OPT_TYPE_* to AV_OPT_TYPE_*
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
7b607eb5e7
avfiltergraph: use avcodec_find_best_pix_fmt_of_2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Jérémy Tran
54ca7e39da
lavfi/hue: add process_command callback
...
This allows dynamic reconfiguration of the filter.
The callback uses some code that was in the init function. Hence this code
has been moved in its own function.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years ago
Stefano Sabatini
9dd3d6c72a
lavfi: port decimate libmpcodecs filter
...
This filter is based on the MPlayer decimate filter by Rich Felker.
12 years ago
Stefano Sabatini
6c0107822d
lavfi/mp=decimate: fix off-by-one logic in diff_C() x loop
...
Set x offset values in the range 0-7, rather than in the range 8-1.
The y loop is changed accordingly, to avoid confusion.
This also fixes output difference with the new pending native decimate
filter.
12 years ago
Stefano Sabatini
e64b941dbc
lavfi/mp: remove smartblur filter
...
It was natively integrated into libavfilter.
12 years ago
Michael Niedermayer
0b7d12e840
vf_mp: fix duplicate return
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
9cb9199970
buffersink: remove stray ;
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
17337f54c0
x86: Split inline and external assembly #ifdefs
12 years ago
Diego Biurrun
cdaec0b240
avfilter: x86: Use more precise compile template names
12 years ago
Michael Niedermayer
d40e2c7a86
avfiltergraph: kill uninitialized variable warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
310fd0d3d4
vsrc_testsrc: fix uninitilaized variable bug
...
Found-by: gcc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
19dceef905
vf_framestep: fix uninitilaized variable bug
...
Found-by: gcc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
a5704659e3
lavfi/af_atempo: use av_malloc for rDFT buffers.
...
Memory obtained from av_realloc is not aligned enough for AVX.
The other similar allocations are changed too because they use
the same macro. The buffers were cleared afterwards anyway.
Fix trac ticket #1692 .
12 years ago
Jérémy Tran
316afee708
lavfi: add smartblur filter
...
This is a port of the MPlayer smartblur filter (libmpcodecs/vf_smartblur.c)
by Michael Niedermayer.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years ago