Anton Khirnov
4e48aa8656
buffersrc: add const to the AVFrame* argument of av_buffersrc_write_frame()
12 years ago
Mans Rullgard
1fce361d70
lavfi: replace empty input/output lists with null pointers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
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ö
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
Nicolas George
5bbe4142d1
lavfi/buffersrc: add AV_BUFFERSRC_FLAG_PUSH.
13 years ago
Stefano Sabatini
42d621d131
lavfi: add priv class to filter definitions and flags to filter internal options
...
This allows the iteration callbacks to discover the internal class and
options, and show them when required.
13 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Clément Bœsch
cc650cf029
Remove "Error parsing options string [...]" messages.
...
This reduces from 3 to 2 messages for the same syntax error in ffprobe,
and from 4 to 3 in filters.
13 years ago
Nicolas George
05776119c1
buffersrc: use avfilter_get_buffer_ref_from_frame.
13 years ago
Anton Khirnov
a8a2271fe0
buffersrc: check ff_get_audio_buffer() for errors.
13 years ago
Anton Khirnov
8f3a3ce730
lavfi: check all ff_get_video_buffer() calls for errors.
13 years ago
Anton Khirnov
785fa50f0b
buffersrc: avoid creating unnecessary buffer reference
13 years ago
Anton Khirnov
3825b52688
lavfi: check all ff_start_frame/draw_slice/end_frame calls for errors
13 years ago
Ronald S. Bultje
3db407038e
lavfi: use const for AVFilterPad declarations in all filters.
13 years ago
Nicolas George
97f86680eb
lavfi: make copy_buffer_ref common.
13 years ago
Stefano Sabatini
fda968aa8f
lavfi: decrease logging level of message showing initial parameters
...
Reduce log clutter, consistent with 1a49a169eb
.
13 years ago
Anton Khirnov
cd99146253
lavfi: add error handling to filter_samples().
13 years ago
Stefano Sabatini
b0fdd3489a
lavfi: deprecate av_buffersrc_buffer() function
...
Favor av_buffersrc_add_ref() instead, which is more powerful.
13 years ago
Nicolas George
05d6cc116e
buffersrc: warn when there are too many buffers.
13 years ago
Anton Khirnov
1a49a169eb
lavfi: make filters less verbose.
13 years ago
Anton Khirnov
0b3b958135
lavfi: remove disabled FF_API_VSRC_BUFFER_ADD_FRAME cruft
13 years ago
Anton Khirnov
a5e8c41c28
lavfi: remove 'opaque' parameter from AVFilter.init()
...
It is not used in any filters currently and is inherently evil. If
passing binary data to filters is required in the future, it should be
done with some AVOptions-based system.
13 years ago
Stefano Sabatini
6be8cfa034
lavfi/abuffer: increase logging level of the log showing initial parameters
...
Also show them in a more parsable/consistent fashion.
13 years ago
Stefano Sabatini
c0ca840837
lavfi/buffer: remove unused function av_vsrc_buffer_add_frame_alt()
13 years ago
Stefano Sabatini
1dce2368bb
lavfi/buffer: apply misc consistency nits
13 years ago
Stefano Sabatini
c17808cebd
lavfi: define macro AVFILTER_DEFINE_CLASS
...
The macro can be used to define consistently the internal class of a
filter, save some typing and factorize.
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
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
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
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
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
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
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
6adefeef45
buffersrc: cosmetic: reindent.
13 years ago
Nicolas George
aa1246ea42
lavfi: unify src_buffer and buffersrc.
...
Most of the code is moved to buffersrc.c
to help Git see the similarities.
src_buffer.c still contains the obsolete compatibility functions.
The format change detection code was removed as it has been
implemented directly in ffmpeg.
It can easily be brought back from the history.
13 years ago
Michael Niedermayer
3e2cf79e15
buffersrc: export forgotten function
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
4c66c40718
lavfi: add an audio buffer source.
13 years ago
Anton Khirnov
720c6b78d1
buffersrc: add av_buffersrc_write_frame().
...
It's the same as av_vsrc_buffer_add_frame(), except it doesn't take pts
or pixel_aspect parameters. Those are read from AVFrame.
Deprecate av_vsrc_buffer_add_frame().
13 years ago
Anton Khirnov
8b05e13df3
buffersrc: fix invalid read in uninit if the fifo hasn't been allocated
13 years ago
Anton Khirnov
fad729fa50
lavfi: rename vsrc_buffer.c to buffersrc.c
...
Most of the code will be shared for both audio and video version.
13 years ago
Nicolas George
5cb4f1a127
vsrc_buffer: return EAGAIN if no frame is available.
...
This is not an erroneous condition, do not print a warning.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Nicolas George
2ae5af8094
lavfi: rename vsrc_buffer.c into src_buffer.c.
13 years ago
Nicolas George
7ad0d9864e
lavfi: merge asrc_abuffer into vsrc_buffer.
13 years ago
Nicolas George
2d6522bab0
vsrc_buffer: count the number of failed requests.
13 years ago
Nicolas George
f75ee4031e
vsrc_buffer: return EAGAIN if no frame is available.
...
This is not an erroneous condition, do not print a warning.
13 years ago
Michael Niedermayer
5cd460ba63
vsrc_buffer: fix null ptr segfault
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
7bf9e3391f
vsrc_buffer: fix check from 7ae7c41
.
...
The user submitted variable in this function is frame, not buf.
13 years ago