Michael Niedermayer
ad6f006081
avfilter: fix regression since addition of extended_data to audio
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
012f04a277
lavfi: autoinsert resample filter when necessary.
13 years ago
Anton Khirnov
d371e7b988
lavfi: add lavr-based audio resampling filter.
13 years ago
Clément Bœsch
4522df52aa
lavfi: remove audio.h include from avfilter.h.
...
avfilter.h is a public header and the unexported audio.h header contains
only internal prototypes.
13 years ago
Michael Niedermayer
44391f706b
lavfutils: ff_load_image: Initialize context
...
should fix ticket1264
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2a793ff2bf
vf_lut: fix pointer type (const) warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
98e409ecaa
vf_idet: remove unused variables
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
648dbae519
vf_idet: fix pointer type (const) warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7610dee87b
avfiltergraph: improve pick_format()
...
without this the recent changes to format/sink handling would cause a regression in fate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
0b45334a58
lavfi: move audio-related functions to a separate file.
...
This is easier to follow than having them randomly scattered in
avfilter.c and defaults.c.
13 years ago
Anton Khirnov
472fb3bbfa
lavfi: remove some audio-related function from public API.
...
Those functions are only useful inside filters. It is better to not
support user filters until the API is more stable.
This breaks audio filtering API and ABI in theory, but since it's
unusable right now this shouldn't be a problem.
13 years ago
Anton Khirnov
f20ab492ac
lavfi: change AVFilterLink.sample_rate from int64_t to int on next bump
...
There is no real reason for it to be 64bit, it's just a plain int in the
rest of Libav.
13 years ago
Anton Khirnov
a6bdfc2a92
lavfi: change AVFilterBufferRefAudioProps.sample_rate from uint32_t to int
...
There's no reason for it to be explicitly 32 bits. It's declared as a
plain int in all other places in Libav.
This breaks audio filtering API and ABI in theory, but since it's
unusable right now this shouldn't be a problem.
13 years ago
Stefano Sabatini
7ef0adcc2e
lavfi: simplify signature for avfilter_get_audio_buffer() and friends
...
The additional parameters are just complicating the function interface.
Assume that a requested samples buffer will *always* have the format
specified in the requested link.
This breaks audio filtering API and ABI in theory, but since it's
unusable right now this shouldn't be a problem.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Stefano Sabatini
6735534f19
lavfi: use avfilter_get_audio_buffer_ref_from_arrays() in avfilter_default_get_audio_buffer
13 years ago
Stefano Sabatini
e727bca392
lavfi: cleanup avfilter_get_audio_buffer() and pals.
...
Remove AVFilterBufferRefAudioProps.size, and use nb_samples in its place
everywhere.
This is required as the size in the audio buffer may be aligned, so it
may not contain a well defined number of samples.
Also remove the useless planar parameter, which can be deduced from the
sample format.
This is technically an API and ABI break, but since the audio part of
lavfi is not usable now, this should not be a problem in practice.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Michael Niedermayer
1ca37e79d0
src_buffer: ifdef->if CONFIG_*
...
Reviewed-by: Stefano
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
1b8c9271bd
lavfi: add avfilter_get_audio_buffer_ref_from_arrays().
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
9453c9e1de
lavfi: add extended_data to AVFilterBuffer.
...
This is similar to what has previously been done in AVFrame to allow
dealing with more than 8 channels.
13 years ago
Anton Khirnov
ac71230902
lavfi: add video buffer sink, and use it in avtools
...
Also add the public interface libavfilter/buffersink.h.
Based on a commit by Stefano Sabatini.
13 years ago
Anton Khirnov
ab165047a6
lavfi: add a function for copying properties from AVFilterBufferRef->AVFrame
...
Based on a commit by Stefano Sabatini <stefano.sabatini-lala@poste.it>
13 years ago
Nicolas George
75e0324eab
src_buffer: move code to avoid forward declarations.
13 years ago
Carl Eugen Hoyos
29fe6b3cbf
Add yuva422p to yadif format list.
13 years ago
Anton Khirnov
8134fafe9b
lavfi: uninline avfilter_copy_buffer_ref_props().
...
A nontrivial public function such as this should most certainly NOT be
inline.
13 years ago
Diego Biurrun
dbe6ba55a3
build: cosmetics: Add missing end-of-line backslashes to item lists.
13 years ago
Diego Biurrun
9eb83a56aa
build: cosmetics: Split HEADERS/OBJS/PROGS lists into one entry per line.
13 years ago
Robert Nagy
a07578f3f2
vf_yadif: fix missing error handling for avfilter_poll_frame()
13 years ago
Anton Khirnov
0bbd874743
lavfi: support audio in avfilter_copy_frame_props().
13 years ago
Mina Nagy Zaki
11b6a82412
lavfi: avfilter_merge_formats: handle case where inputs are same
...
This fixes a double-free crash if lists are the same due to the two
merge_ref() calls at the end of the (useless) merging that happens.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Robert Nagy
4f5c5416ca
yadif: Add yuva444p to format list.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
d4ac703c7f
lavfi/formats: use sizeof(var) instead of sizeof(type).
13 years ago
Stefano Sabatini
f10530b78a
lavfi: remove avfilter_default_config_input_link() declaration
...
The function is not implemented (and possibly useless).
13 years ago
Anton Khirnov
25b3babe11
lavfi: always enable the scale filter and depend on sws.
...
The scale filter is used for internal colorspace conversions, so it must
always be present.
13 years ago
Anton Khirnov
fd18ee0ff6
vf_split: support user-specifiable number of outputs.
13 years ago
Nicolas George
67a316bbda
vsrc_buffer: deprecate the header.
13 years ago
Nicolas George
aaa94f2890
vsrc_buffer: deprecate av_vsrc_buffer_add_video_buffer_ref.
13 years ago
Nicolas George
4d4350f47a
src_buffer: update get_nb_failed_requests name.
...
Implement av_buffersrc_get_nb_failed_requests.
Deprecate av_vsrc_buffer_get_nb_failed_requests.
13 years ago
Nicolas George
fe511b6e32
asrc_abuffer: deprecate the header.
13 years ago
Nicolas George
675e83bb5c
asrc_abuffer: deprecate av_asrc_buffer_* functions.
13 years ago
Nicolas George
6073ce71d0
lavfi: install buffersrc.h.
13 years ago
Nicolas George
317b2b7e92
lavfi: remove av_buffersrc_buffer.
...
It is no longer used anywhere.
Furthermore, the header it was declared in was not installed,
so it can not be considered part of the public API.
13 years ago
Nicolas George
8ad1964ec5
buffersrc: fix av_buffersrc_add_ref doxy.
...
av_buffersrc_add_ref can handle audio too now.
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
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