aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample/swresample.c
Commit message (Collapse)AuthorAgeFilesLines
...
* swr: set AV_OPT_FLAG_AUDIO_PARAM for the AVOptionsMichael Niedermayer2012-04-261-23/+25
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fix swr_convert buffering of packed audioAndrew Wason2012-04-211-3/+5
| | | | | | | | | | | | swr_convert is not properly buffering packed input audio when the output is not large enough, and when resampling is not actually needed (same samplerate and no SWR_FLAG_RESAMPLE). buf_set() is only handling the first channel and leaving the others as-is. Sample program to reproduce the problem is here https://gist.github.com/2431768 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add a swr_flags AVOptionMichael Niedermayer2012-04-111-0/+1
| | | | | | | Using swr_flags instead of plain flags will avoid conflicts that arise with plain flags and multiple libs (which all have AVOption flags) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add a dither_scale parameter to tune the amplitude of the dither.Michael Niedermayer2012-04-111-1/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: pass context to swri_get_dither()Michael Niedermayer2012-04-111-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add triangular highpass ditherMichael Niedermayer2012-04-111-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: generate more dither noise to improve quality.Michael Niedermayer2012-04-111-4/+8
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add swr_get_class()Michael Niedermayer2012-04-111-0/+5
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add triangular dither supportMichael Niedermayer2012-04-101-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: remove unused variableMichael Niedermayer2012-04-101-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add SWR_DITHER_RECTANGULAR to AVOptions arrayMichael Niedermayer2012-04-101-1/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add dither support.Michael Niedermayer2012-04-101-0/+20
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: support int32 and float as internal sample formatsMichael Niedermayer2012-04-101-9/+12
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: support float & int32 in the resamplerMichael Niedermayer2012-04-101-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: remove unused variableMichael Niedermayer2012-04-011-1/+0
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: fix pointer type warningsMichael Niedermayer2012-04-011-2/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: realloc_audio: support packed audio buffersMichael Niedermayer2012-03-251-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: More flexible and convenient bufferingMichael Niedermayer2012-03-251-41/+101
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: fix segfault when 0 out size is used.Michael Niedermayer2012-03-251-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: Fix partial flushing.Michael Niedermayer2012-03-251-2/+2
| | | | | Found-by: durandal_1707 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: allow flushing in multiple steps if the output is too small.Michael Niedermayer2012-03-251-11/+14
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: check that there is enough information to do rematrixing when needed.Michael Niedermayer2012-03-231-0/+5
| | | | | | | Fixes assertion failure. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* cosmetics: fix some typosLou Logan2012-03-131-1/+1
| | | | | | | | | | Patch attached. From 2d4094fc0dcb4ccd0735eb7e1719e228ebb56bb9 Mon Sep 17 00:00:00 2001 From: Lou Logan <lou@lrcd.com> Date: Mon, 12 Mar 2012 14:13:44 -0800 Subject: [PATCH] cosmetics: fix some typos Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libswr: allow to set custom matrices.Nicolas George2012-02-201-1/+2
|
* swr: fix swresample_version()Michael Niedermayer2011-12-231-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: increase LIBSWRESAMPLE_VERSION_MICRO to 100Michael Niedermayer2011-12-221-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add swresample_version swresample_configuration and swresample_licenseMichael Niedermayer2011-12-221-0/+16
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: fix assert failureMichael Niedermayer2011-12-201-1/+6
| | | | | | | Bug found by: Oana Stratulat GCI-id: 7211207 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: fix invalid sample format message.Clément Bœsch2011-11-241-2/+2
| | | | | If the sample format is invalid, av_get_sample_fmt_name() will always return NULL.
* swr: use native planar sample formats.Clément Bœsch2011-11-241-4/+4
|
* swr: fix test program.Clément Bœsch2011-11-241-0/+1
| | | | | | | The number of used channels need to be reset to zero when swr_alloc_set_opts() is called successive times. This is a regression introduced in c8136ebd.
* swr: change minimum I/O channel count to zero.Clément Bœsch2011-11-201-2/+2
| | | | | This will silence the warning of av_set_opt_int() in swr for input/output channels when the layout is not yet defined (or supported).
* swr: move code to avoid resample forward declaration.Clément Bœsch2011-11-171-93/+91
|
* swr: introduce a public function to customize the channel mapping.Clément Bœsch2011-11-171-3/+8
|
* swr: use av_opt_set_int() instead of manual assignments in swr_alloc_set_opts().Clément Bœsch2011-11-171-4/+3
|
* swr: correctly raise rematrix AVERROR.Clément Bœsch2011-11-171-2/+2
|
* swr: make swr_* functions match the prototypes.Clément Bœsch2011-11-171-6/+6
|
* swr: rename swr_alloc2() to swr_alloc_set_opts().Clément Bœsch2011-11-171-3/+4
|
* swr: use "swri_" prefix instead of "swr_" for the private API.Clément Bœsch2011-11-171-8/+8
|
* swr: make audio convert code explicitely private.Clément Bœsch2011-11-171-15/+15
| | | | Only what's declared in libswresample/swresample.h is public.
* swr: replace deprecated av_set_int() with av_opt_set_int().Clément Bœsch2011-11-161-6/+6
|
* swr: replace deprecated av_opt_set_defaults2() with av_opt_set_defaults().Clément Bœsch2011-11-161-1/+1
|
* swr: replace deprecated av_get_bits_per_sample_fmt() with ↵Clément Bœsch2011-11-161-3/+3
| | | | av_get_bytes_per_sample().
* swr: use designated initializers for the class.Clément Bœsch2011-11-161-1/+8
|
* swr: set the default used_ch_count value to zero.Clément Bœsch2011-11-141-2/+1
| | | | | | | This allows an appropriate behaviour when it is not specified (fallback to the number of input channels). Fixes Ticket523
* ffmpeg: add -map_channel option.Clément Bœsch2011-11-041-9/+23
| | | | Based on an initial work by Baptiste Coudurier.
* swr: Support flushing last samples out.Michael Niedermayer2011-11-041-1/+22
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* rematrix: add parameter to tune volumeMichael Niedermayer2011-10-261-1/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: Fix swresample.c:293:5: warning: passing argument 2 of ↵Michael Niedermayer2011-10-211-1/+1
| | | | | | ‘fill_audiodata’ from incompatible pointer type Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: remove unused variable.Michael Niedermayer2011-10-211-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>