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
Clément Bœsch
13a7bd70c8
lavfi/select: 10l: llabs -> fabs after switching types.
13 years ago
Clément Bœsch
72868144e5
lavfi/select: add scene detection.
...
Based on the shotdetect algorithm (http://shotdetect.nonutc.fr/ by Johan
MATHE johan.mathe tremplin-utc.net).
13 years ago
Anton Khirnov
8eb9bf0933
avfiltergraph: make some functions static.
...
They are not used outside of avfiltergraph.c
13 years ago
Stefano Sabatini
0f0f3bd1e0
lavfi: use av_default_item_name() as filter private context logger
...
avfilter_default_filter_name() is supposed to access an AVFilterContext
struct, if used with a private struct it will cause a crash since it will
access fields which are non defined in the private struct.
13 years ago
Stefano Sabatini
4d6a8a2bdb
lavfi: add avfilter_default_filter_name()
...
The function is modelled after av_default_item_name(), and will print the
name of the instance filter if defined, otherwise the name of the filter.
This allows to show the instance name in the log, which is useful when
debugging complex filter graphs.
13 years ago
Stefano Sabatini
f3fea5bab1
lavfi/lut: fix component -> rgba mapping
13 years ago
Michael Niedermayer
a5c7525bcb
set some categories of some AVClass structs
...
Please help setting the category for all remaining AVClasses
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
7f17f4f1a7
af_amerge: use the buferqueue API.
13 years ago
Nicolas George
2f2d47ab63
af_astreamsync: set samples rate in query_formats.
13 years ago
Nicolas George
06bf6d3bc0
vf_overlay: rewrite request/push logic.
...
The old implementation, upon receiving a frame on the main
input, would request an overlay frame if necessary. This could
generate an infinite recursion, off-by-one frame mismatch and
other harmful effects, especially it the split filter is present
upgraph.
The new implementation uses the linear approach: it uses two
buffer queues for frames received out of turn and forwards
request_frame calls to the input where a frame is necessary.
13 years ago
Nicolas George
6d679c4359
lavfi: add a generic API for buffer queues.
13 years ago
Nicolas George
72f3786d0f
sink_buffer: guard against NULL frames.
...
This only happens if some filter somewhere is bogus,
but it helps debugging.
13 years ago
Justin Ruggles
c7bd556d48
lavfi: amix: check active input count before calling request_samples
...
fixes use of the amix filter with only 1 input
13 years ago
Janne Grunau
12d42cd7a8
avfilter: include required header file avfilter.h in video.h
13 years ago
Paul B Mahol
908c045f3a
avfilter: use designated initializer for class
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
59a78290b6
lavfi: use getter/setter functions for AVFrame.pkt_pos
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Robert Nagy
c2eae4bae7
lavfi: Fill linesize, sample_rate and channel_layout fields in avfilter_fill_frame_from_audio_buffer_ref.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8a45e0c354
lswsutils: fix "ncompatible pointer type" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
6d401effc4
lavfutils: fix incompatible pointer type warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
be97675e6c
af_aresample: fix pts, they where off by a packet in the -async >0 case.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
411689b5e1
af_aresample: fix request_frame()
...
Fixes part of Ticket1341
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago