Nicolas George
6c27aea811
lavfi/pan: use extended_data instead of data.
Fix trac ticket #3380 .
11 years ago
Nicolas George
7b0a587393
lavfi/af_pan: support unknown layouts on input.
Fix trac ticket #2899 .
11 years ago
Nicolas George
4e9adc9b73
lavfi/af_pan: support unknown layouts on output.
11 years ago
Nicolas George
6e2473edfd
lavfi: parsing helper for unknown channel layouts.
Make ff_parse_channel_layout() accept unknown layouts too.
11 years ago
Paul B Mahol
b211607b5c
avfilter: various cosmetics
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Clément Bœsch
493ebbd7eb
Update copyrights where my email appears with the new one.
11 years ago
Michael Niedermayer
fd6228e657
lavfi: remove now unused args parameter from AVFilter.init and init_opaque
This is mostly automated global search and replace
The deprecated aconvert filter is disabled, if it still has users
it should be updated
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
80116b6e67
af_pan: avoid spaces before % to avoid possible issues with MSVC
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
3c821e7550
af_pan: switch to an AVOptions-based shorthand system.
TODO: The first argument can be seperated into its own AVOption
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Серж Нискородов
9470b541e5
af_pan: fix parsing arguments from the example in the documentation
pan=stereo: FL < FL + 0.5*FC + 0.6*BL + 0.6*SL : FR < FR + 0.5*FC +
0.6*BR + 0.6*SR
didn't actually work ('Expected out channel name, got " FL < FL"')
12 years ago
Paul B Mahol
ed8373e7db
lavfi: always check return value of ff_get_{audio,video}_buffer()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
cd5f50a255
avfilter: avoid direct access to AVFrame.channels
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
238edd2fe3
lavfi: add a channels field to AVFilterLink.
Also: fix af_pan and af_aresample, that forgot to update
audio->channels.
12 years ago
Clément Bœsch
2d9d444051
lavfi: convert remaining input/output list compound literals to named objects.
This is following 568c70e79e
.
12 years ago
Michael Niedermayer
cd7febd33f
lavfi: replace filter_samples by filter_frame
Based on patch by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
1acd2f6ba7
Replace rest of libavutil/audioconvert.h with libavutil/channel_layout.h
Also remove it in once case when it is not needed.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
d2a618ab22
af_pan: fix memleak of arg
Fixes CID718988
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Hendrik Leppkes
e3a1eb9edf
af_pan: Fix sscanf formats to work with buggy sscanf implementations
Some implementations of sscanf do not handle a space before a trailing %n
properly.
As an example, MSVC's does this for the second insatnce in this patch, for
an input of "0x3:c0=c1:c1=c0":
1) Match the final "c0" or "c1".
2) Realize it's at the end of the string.
3) Check for %n.
4) There is no %n, but a space instead.
5) Leave 'len' unitilialized.
So, move it out of the sscanf format strings, and call skip_spaces instead.
This bug does not affect skip_spaces since %n is the first and only formatting
string.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
12 years ago
Nicolas George
752344dada
amerge/astreamsync/pan: fix license boilerplate.
The boilerplate states that the files are under LGPL,
but refer the user to the GPL at one place.
These files were (re)implemented specifically for FFmpeg.
12 years ago
Stefano Sabatini
fda968aa8f
lavfi: decrease logging level of message showing initial parameters
Reduce log clutter, consistent with 1a49a169eb
.
13 years ago
Stefano Sabatini
972cad77fa
lavfi: remove unnecessary inclusion of libavcodec/avcodec.h in avfilter.h
libavfilter API was designed in order to be clarly distinguished from the
libavcodec API, including avcodec.h in avfilter.h is not going to help to
stick to this principle.
The inclusion of libavutil/audioconvert.h in many files was required
because avcodec.h includes audioconvert.h.
libavfilter/avcodec.h is where the lavc/lavfi interface should be
entirely placed.
13 years ago
Paul B Mahol
c9e183b490
lavfi: update some deprecated functions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Clément Bœsch
48f30595f5
pan: use ff_parse_channel_layout() instead of av_get_channel_layout().
This allow specifying hexadecimal channel layout, and also handle the
error printing internally.
13 years ago
Clément Bœsch
5dbd66395a
lavfi/pan: add supported sample rates to avoid a crash.
13 years ago
Stefano Sabatini
4d4098da00
lavfi: drop planar/packed negotiation support
The planar/packed switch and the packing_formats list is no longer
required, since the planar/packed information is now stored in the sample
format enum.
This is technically a major API break, possibly it should be not too
painful as we marked the audio filtering API as unstable.
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
Nicolas George
4217dfe87b
af_pan: remove dual double/int storage of gain.
libswresample takes care of that now.
13 years ago
Nicolas George
a923b6b8f4
af_pan: move query_format before config_props.
That is the logical order in which the functions are called,
and there is no longer any need of forward declarations.
13 years ago
Nicolas George
eb9ba527e7
af_pan: remove the indirect function call.
libswresample is used in all cases.
13 years ago
Nicolas George
a297856b8c
af_pan: reindent after last commit.
13 years ago
Nicolas George
a44b510d56
af_pan: use libswr for rematrixing.
13 years ago
Nicolas George
bd5080b1b0
af_pan: comment a tricky piece of code.
13 years ago
Clément Bœsch
cba4e2cbbc
pan: fix uninitialized channel_id variable.
Fix broken parsing with pan=2:FL=FR:FR=FL and similar.
13 years ago
Clément Bœsch
85c66793d7
lavfi/pan: copy ref props after filtering samples.
At least PTS needs to be copied to avoid breaking options such as -t in
ffmpeg.
13 years ago
Clément Bœsch
9bd44b42a8
pan: drop unecessary includes.
13 years ago
Clément Bœsch
66b1b7e5fa
pan: move query_formats() to avoid forward declarations.
13 years ago
Clément Bœsch
94dc4a5046
pan: reindent after remap commit.
13 years ago
Clément Bœsch
6728dd37ac
pan: add channel mapping capability.
13 years ago
Clément Bœsch
66fdbcbbc9
pan: raise correct error when there is no param specified.
13 years ago
Clément Bœsch
9d35fa43ee
lavfi: add missing periods in descriptions.
13 years ago
Clément Bœsch
1fbf7165d5
lavfi: reimplement MPlayer's af_pan filter for libavfilter.
Original code by Clément Bœsch.
Parameters parsing and misc enhancements by Nicolas George.
13 years ago