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
7bac2a78c2
src_buffer: implement av_buffersrc_add_frame.
...
It supersedes av_vsrc_buffer_add_frame and handles
both audio and video.
13 years ago
Nicolas George
a96cd73ff2
src_buffer: implement audio buffer copy.
13 years ago
Nicolas George
d8407bba0e
lavfi/avcodec: implement audio copy_frame_prop.
13 years ago
Nicolas George
32094285ad
lavfi: implement avfilter_get_audio_buffer_ref_from_frame.
13 years ago
Clément Bœsch
3c1d52d30b
Fix a few @file doxy inconsistencies.
13 years ago
Clément Bœsch
af58a77f0a
lavfi/src_buffer: fix indent.
13 years ago
Nicolas George
f8d58c594d
src_buffer: merge av_asrc_buffer_add_audio_buffer_ref.
...
Implement it using av_buffersrc_add_ref.
13 years ago
Nicolas George
be8edff8d1
src_buffer: move audio format change check in a separate function.
13 years ago
Nicolas George
cc14cdec45
src_buffer: move buffer copy in a separate function.
...
This will make merging with the audio part easier.
13 years ago
Nicolas George
f94b150a03
src_buffer: move format change check in a separate function.
...
This will make merging the check with the audio part easier.
13 years ago
Nicolas George
3985ec0ee6
src_buffer: introduce av_buffersrc_add_ref().
...
This function merges the features of
av_vsrc_buffer_add_video_buffer_ref() and
av_buffersrc_buffer().
13 years ago
Stefano Sabatini
126ba1626e
lavfi/drawtext: give a new alias "timecode_rate" to the the r/rate option
...
The option is related to the timecode, the new name clearly specifies the
context. Also it allows to list the option close to the other timecode
options.
13 years ago
Stefano Sabatini
eb07f4ccb5
lavfi/drawtext: rename and document variables d_expr and d_pexpr
...
Use the more expressive names draw_expr and draw_pexpr, also more
consistent.
13 years ago
Stefano Sabatini
65d2b2fbe4
lavfi/drawtext: alphabetically sort the expression parameters
13 years ago
Paul B Mahol
2cda0429aa
lavfi: remove screenshot libmpcodecs wrapper
...
The filter is useless.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
bb39c74b59
lavfi/lut: remove unused variable
...
Fix warning:
libavfilter/vf_lut.c: In function ‘draw_slice’:
libavfilter/vf_lut.c:297:15: warning: unused variable ‘k’ [-Wunused-variable]
13 years ago
Stefano Sabatini
5f161c2357
lavfi/tinterlace: support symbolic names for the parameter
...
Also deprecate the use of numerical values.
13 years ago
Stefano Sabatini
837d034787
lavfi/tinterlace: make video as interlaced in mode 6
...
This is useful for marking progressive video processed by the filter as
interlaced, avoiding the interlaced flag to switch back and forth at each
frame.
13 years ago
Stuart Morris
820c023142
lavfi/tinterlace: add tinterlace mode 6
...
This new mode is useful for generating frames for interlaced video
displays. Typically interlaced video displays have no form of field
synchronisation. This new mode guarantees correct field order without
any requirement for field synchronisation.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Stefano Sabatini
46eba43e0e
lavfi/buffersink: fix header inclusion guard name
13 years ago
Nicolas George
f1b82099cd
src_buffer: add forgotten avfilter_unref_buffer.
13 years ago
Nicolas George
75d5624cb2
avfilter: filter_samples: read pts before filtering.
...
The call to the next filter_sample will likely unref the
current buffer, so it is not possible to read it afterwards.
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
Stefano Sabatini
18c6bd098b
lavfi/tinterlace: remove unnecessary NULL check in start_frame()
13 years ago
Stefano Sabatini
cf9f7e40cc
lavfi/tinterlace: use avfilter_unref_bufferp()
13 years ago
Stefano Sabatini
a853e88af2
lavfi/tinterlace: fix doxy in copy_picture_field()
13 years ago
Matthieu Bouron
73c1e3baad
asrc_abuffer: return EAGAIN if no frame is available
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
6b55aab01a
lavfi: create buffer reference in filters which need to access the ref later
...
Also add internal function ff_null_start_frame_keep_ref().
Fix crash when a following filter (e.g. settb) will unref the reference
passed by start_frame(), and then the reference is accessed in
end_frame() through inlink->cur_buf.
13 years ago
Stefano Sabatini
6f3b1d7f86
lavfi/bbox: add missing space between pts and x1 values in the log
13 years ago
Matthieu Bouron
5473a98e45
af_amerge: return errors from subfilters when requesting a frame
13 years ago
Nicolas George
fd2cd64fc9
avfiltergraph: fix format selection.
...
The old code had two bugs:
For audio filters, the format was not set.
For video filters, if several links reference the same format list,
the same format must be selected in the end. This is done by
setting formats->format_count to 1: the other links sharing
the reference will therefore have only one choice.
If the heuristic does not pick the first format, the selected format
must also be moved to the first position.
13 years ago
Nicolas George
2e8f19d26f
avfiltergraph: free the sink_links heap.
13 years ago
Nicolas George
e11110dee4
buffersink: add AV_BUFFERSINK_FLAG_NO_REQUEST.
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
Nicolas George
2ce7972779
avfiltergraph: add avfilter_graph_request_oldest().
...
Keep a heap of all sink links ordered by timestamps.
13 years ago
Nicolas George
e0761feec4
avfilter: add a pointer from links to graph.
13 years ago
Nicolas George
78ac49c233
avfilter: document request_frame return codes.
13 years ago
Stefano Sabatini
dd3043d1c0
lavfi/setfield: remove stray argument in av_log()
...
Fix warning:
libavfilter/vf_setfield.c: In function ‘init’:
libavfilter/vf_setfield.c:64:20: warning: too many arguments for format [-Wformat-extra-args]
13 years ago
Stefano Sabatini
459414b4d9
lavfi/setfield: rename variable top_field_first to mode
...
The new name better reflects the meaning of the variable, after the
recent change.
13 years ago
Tim Nicholson
c97201dd29
lavfi/setfield: add "progressive" option
...
Add "prog" parameter value, and deprecate numeric values.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Stefano Sabatini
9750254885
lavfi/mp: remove libmpcodecs mirror filter
...
The native libavfilter hflip filter does the same thing.
13 years ago
Robert Nagy
65fa7bc1f8
lavfi: add avfilter_unref_bufferp()
...
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Robert Nagy
e90dfa6881
yadif: Improve pts calculation for is_second.
...
Tested-by: Robert Nagy <ronag89@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Robert Nagy
a80217a5ee
copy pts and format props between lavfi buffer and frame.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5cd460ba63
vsrc_buffer: fix null ptr segfault
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0d115d7799
avfiltergraph: More advanced heuristic to select colorspace.
...
This fixes regressions caused by switching from ffmpegs system to avfilters.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
aff01de641
graphparser: set next to NULL on an entry extracted from inputs list
...
Prevents it from referring to the rest of the list.
13 years ago