[FFmpeg-devel] [PATCH] Add af_resample - sample fmt and channel layout conversion filter

S.N. Hemanth Meenakshisundaram smeenaks
Sun Sep 12 23:50:00 CEST 2010

Now modified af_resample to wrap the channel mix functions in
lavc/resample.c the way Stefano wanted - exposing the channel mix
routines as ff_* functions.

With this af_resample has no duplicate code, calls lavc routines for
both sample format conversion and channel mixing.

This patch contains the extra resample_internal.h header and
audioconvert functions required to represent the channel conversion
required as a number.

The patch isn't well split now, but once any changes required to this
are done, I will split it properly. Please review and comment.

af_resample is required for ffmpeg.c integration and many other lavfi
audio filters to work.


 libavcodec/audioconvert.c      |   17 ++
 libavcodec/audioconvert.h      |   10 +
 libavcodec/resample.c          |   21 ++-
 libavcodec/resample_internal.h |   36 ++++
 libavfilter/Makefile           |    1 +
 libavfilter/af_resample.c      |  378 ++++++++++++++++++++++++++++++++++++++++
 libavfilter/allfilters.c       |    1 +
 7 files changed, 454 insertions(+), 10 deletions(-)
 create mode 100644 libavcodec/resample_internal.h
 create mode 100644 libavfilter/af_resample.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-af_resample-sample-fmt-and-channel-layout-conver.patch
Type: text/x-patch
Size: 24508 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100912/5c9679c1/attachment.bin>

More information about the ffmpeg-devel mailing list