Paul B Mahol
c9e183b490
lavfi: update some deprecated functions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
fd8def9248
lavfi/super2xsai: fix fate test on bigendian
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
46c50b1726
vf_pad: check that we have write permission before writing in the buffer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
2b1fc5621d
lavfi: add asetnsamples audio filter
This filter changes the number of samples on single output operation.
Based on a patch by Andrey Utkin <andrey.krieger.utkin@gmail.com>.
13 years ago
Stefano Sabatini
e20530add7
lavfi/split: give a more accurate description to split
The filter now supports a configurable number of outputs.
13 years ago
Stefano Sabatini
b2bcbcd999
lavfi/super2xsai: simplify code updating the color matrix at each y iteration
Remove duplicated out-of-loop init code, and do color matrix
initialization at the beginning of each y iteration.
Allow factorization and avoid an useless matrix update in the last
iteration.
13 years ago
Stefano Sabatini
4ebb46eb14
lavfi/super2xsai: fix table used to update color matrix at the end of each y loop
The previous table appears to be wrong (it was copied from the original
MPlayer super2xsai filter in order to keep binary compatibility).
The new table is consistent with the init code and apparently fixes a
combing artifact on the left edge of the generated image.
13 years ago
Stefano Sabatini
635a25954e
lavfi/video: set output frame w/h properties in default_start_frame()
Use the same values of the video output link.
Avoid the need to override the default_start_frame() with an ad-hoc
start_frame() callback.
In particular, fix the super2xsai filter which was setting the
input w/h values in the output.
13 years ago
Stefano Sabatini
f0394f28c3
lavfi/avcodec: add consistency checks in avfilter_copy_buf_props()
The function will abort through an assert if the source is not defined,
or if the internal state of the source is inconsistent (e.g. type = AUDIO
&& !src->audio).
13 years ago
Janne Grunau
fbc5740566
af_resample: fix format modifier in debug string for FF_API_SAMPLERATE64
13 years ago
William Yu
f77a695d2e
lavfi: af_amerge options array was not ended with NULL
Add a NULL to prevent undefined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
9cdf74f904
lavfi/audio: use av_samples_copy() instead of custom code.
Fixes a possible invalid write, found by Nicolas George.
13 years ago
Anton Khirnov
24b2f4ed21
avfiltergraph: remove a redundant call to avfilter_get_by_name().
13 years ago
Anton Khirnov
2f296e39a1
lavfi: allow building without swscale.
13 years ago
Anton Khirnov
9baeff9506
lavfi: replace AVFilterContext.input/output_count with nb_inputs/outputs
This is more consistent with naming in the rest of Libav.
13 years ago
Anton Khirnov
9d0bfc5052
lavfi: make AVFilterPad opaque after two major bumps.
It will allow adding new fields to it without ABI breaks.
13 years ago
Anton Khirnov
84b9fbe055
lavfi: add avfilter_pad_get_type() and avfilter_pad_get_name().
This will allow making AVFilterPad opaque for the calling apps, since
those are the only two fields that can be useful to the users.
13 years ago
Anton Khirnov
6d58358a3a
lavfi: make avfilter_get_video_buffer() private on next bump.
They are only useful inside filters and we don't allow user filters for
now.
13 years ago
Stefano Sabatini
465a72b4b4
lavfi: move definition of avfilter_copy_buf_props() from buffer.c to avcodec.c
avcodec.c is where it is defined the lavc/lavfi interface code, so seems
a more adequate location (and doesn't force the inclusion of
libavcodec/avcodec.h where it is not required).
13 years ago
Stefano Sabatini
134815a030
lavfi: change name of tracing functions and of the macro which enables them
The enabling symbol is renamed FF_AVFILTER_TRACE. Avoid conflicts with
the DEBUG macro, which may be defined for different purposes.
13 years ago
Anton Khirnov
d625136877
lavfi: add channelsplit audio filter.
13 years ago
Alex Converse
65a80ee1ec
avfilter: Log an error if avfilter fails to configure a link.
13 years ago
Stefano Sabatini
ee1748ab53
lavfi: fix signature for default_filter_name()
Return a const char *, fix warnings:
libavfilter/avfilter.c: In function ‘default_filter_name’:
libavfilter/avfilter.c:414:5: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]
libavfilter/avfilter.c: At top level:
libavfilter/avfilter.c:419:5: warning: initialization from incompatible pointer type [enabled by default]
libavfilter/avfilter.c:419:5: warning: (near initialization for ‘avfilter_class.item_name’) [enabled by default]
13 years ago
Nicolas George
0d24931604
vf_fps: set frame_rate.
13 years ago
Nicolas George
c8428a0d06
vf_tile: update deprecated functions.
13 years ago
Nicolas George
7b993c4a51
vf_tile: set frame_rate.
13 years ago
Anton Khirnov
d7d071a673
vf_libopencv: add missing headers.
Fix build after b74a1da4 .
13 years ago
Michael Niedermayer
d35c27db63
sink_buffer: dont return void from void functions.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7b0d362567
libavfilter: make ff_null_start_frame_keep_ref() a non static inline function.
Its only used through the start_frame pointer and thus cannot be inlined easily.
It also appears to break compilation with some unidentified compiler on darwin.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
0f62125643
buffersrc: deprecate flat options syntax.
13 years ago
Nicolas George
9ca440679d
buffersrc: accept the frame rate as argument.
13 years ago
Nicolas George
dcaa4efcee
buffersrc: accept key=value arguments.
The current flat arguments syntax is not easily extensible
due to sws_param possibly containing commas.
This is also consistent with abuffersrc.
13 years ago
Nicolas George
283cc05938
buffersink: add av_buffersink_get_frame_rate().
13 years ago
Nicolas George
7b42036b3b
lavfi: add a frame_rate field to AVFilterLink.
13 years ago
J. Bohl
023c073076
add bracket around the argument (fixes compilation error with ICL)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
e0545262a2
amerge: accept multiple inputs.
13 years ago
Nicolas George
e8e492b302
af_amerge: move nb_in_ch into the in structure.
With that change, there is only one array for the inputs,
it will make easier to implement a variable number of inputs.
13 years ago
Nicolas George
9915a33fc2
lavfi/audio: fix size of copied samples.
Fixes sporadic segfaults with some filters.
13 years ago
Stefano Sabatini
ad347bf459
lavfi: remove avfilter_default_item_name() from public API
The function was introduced in 4d6a8a2bdb and is not used anymore
outside avfilter.c.
This avoids to pollute the public API with an apparently unnecessary
function. The function was introduced a few days ago, so removing it from
the public API should do no much harm.
13 years ago
Stefano Sabatini
fe16ca1b91
lavfi/ocv: fix compilation after internalization of public functions
Include missing required internal headers.
13 years ago
Stefano Sabatini
647e2e070f
lavfi: remove more instances of avfilter_default_filter_name()
They were discarded in 0f0f3bd1e0 .
13 years ago
Stefano Sabatini
0da9bce5a3
lavfi: move avfilter_copy_frame_props() definition from buffer.c to avcodec.c
The new location is more suited, as it is where the lavfi/lavc glue is
defined.
13 years ago
Andrew Wason
c527027c27
aconvert filter needs to configure samplerates
I changed the *_set_common_* functions to only set unset formats, then
added a wrapper that calls them after the filters query_formats.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
aba8065adb
avfiltergraph: call query_formats on inputs first.
This is a temporary workaround for amerge,
until format renegociation is implemented.
Should fix trac ticket #1400 .
13 years ago
Nicolas George
6a4c5c730e
avfiltergraph: check query_formats return value.
13 years ago
Stefano Sabatini
1488c4dc0b
lavfi: move tracing utilities definition from video.c to avfilter.c
These utilities are meant to be defined in avfilter.c, since they are
generic and thus contain both audio and video code.
13 years ago
Anton Khirnov
803391f719
lavfi: remove request/poll and drawing functions from public API on next bump
They are only useful inside filters and we don't allow user filters for
now.
13 years ago
Anton Khirnov
fa417fcd27
lavfi: make avfilter_insert_pad and pals private on next bump.
They are only useful inside filters and we don't allow user filters for
now.
13 years ago
Anton Khirnov
b74a1da49d
lavfi: make formats API private on next bump.
It is only useful inside filters and we don't allow user filters for
now.
13 years ago
Clément Bœsch
44be67595d
lavfi/select: use exported dsputil_init function.
This is the deprecated version of the function but it is exported, so it
should fix the shared FATE box.
13 years ago