summaryrefslogtreecommitdiffstats
path: root/libavresample
Commit message (Collapse)AuthorAgeFilesLines
* lavr: always reset mix function names and pointers in mix_function_init()Justin Ruggles2013-01-171-3/+4
| | | | CC: libav-stable@libav.org
* lavr: call mix_function_init() in ff_audio_mix_set_matrix()Justin Ruggles2013-01-171-5/+1
| | | | | | | | This is needed if a custom matrix is set by the user after opening the AVAudioResampleContext because the matrix channel count can change if different mixing coefficients are used. CC:libav-stable@libav.org
* x86: lavr: add SSE2/AVX dither_int_to_float()Justin Ruggles2013-01-082-0/+86
|
* x86: lavr: add SSE2 quantize() for ditheringJustin Ruggles2013-01-085-0/+102
|
* lavr: log channel conversion description for any-to-any functionsJustin Ruggles2013-01-071-2/+3
|
* lavr: mix: reduce the mixing matrix when possibleJustin Ruggles2013-01-071-30/+186
| | | | | | | | | | | | | | | | | If the matrix results in an output channel not getting a contribution from any input channel and the corresponding input channel does not contribute to any outputs, we can skip the channel during mixing and silence it after mixing. If the matrix results in an input channel not contributing to any output channels and it is not in the output mix, or if the input channel only contributes fully to the same output channel, we can skip the channel during mixing. If the matrix results in an output channel only getting full contribution from the corresponding input channel and that input channel does not contribute to any other output channels, we can skip the channel during mixing.
* lavr: cosmetics: reindentJustin Ruggles2013-01-071-25/+28
|
* lavr: add a public function for setting a custom channel mapJustin Ruggles2013-01-0710-27/+301
| | | | This allows reordering, duplication, and silencing of input channels.
* lavr: typedef internal structs in internal.hJustin Ruggles2013-01-078-14/+16
| | | | | Simplifies header dependencies by not including all other internal headers in internal.h.
* x86: lavr: use the x86inc.asm automatic stack alignment in mixing functionsJustin Ruggles2013-01-051-26/+9
| | | | CC:libav-stable@libav.org
* lavr: fix missing " in header documentationPeter Meerwald2013-01-041-1/+1
| | | | | Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* miscellaneous typo fixesDiego Biurrun2012-12-211-1/+1
|
* lavr: add option for dithering during sample format conversion to s16Justin Ruggles2012-12-1910-12/+583
|
* avresample: use valid log context in mixing functionsHendrik Leppkes2012-12-161-5/+5
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* lavr: remove automatic context close/open for resampling compensationJustin Ruggles2012-12-163-7/+15
| | | | | | | | | It adds unnecessary complication for insignificant usability improvement. The user really should know if they'll need resampling compensation before opening the context. Note that only the documentation has changed. The current functionality will still work until the next major bump.
* lavr: only save/restore the mixing matrix if mixing is being doneJustin Ruggles2012-12-161-6/+12
|
* lavr: move AudioMix struct definition to audio_mix.cJustin Ruggles2012-12-152-22/+24
|
* lavr: fix segfault due to overlooked change needed in 14758e3Justin Ruggles2012-12-121-1/+1
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavr: temporarily store custom matrix in AVAudioResampleContextJustin Ruggles2012-12-116-158/+216
| | | | | | | | | This allows AudioMix to be treated the same way as other conversion contexts and removes the requirement to allocate it at the same time as the AVAudioResampleContext. The current matrix get/set functions are split between the public interface and AudioMix private functions.
* lavr: clarify documentation for avresample_get/set_matrix()Justin Ruggles2012-12-111-1/+5
|
* lavr: do not pass consumed samples as a parameter to ff_audio_resample()Justin Ruggles2012-11-273-10/+6
| | | | | Since the resampler handles buffering of unconsumed samples internally, the caller does not need this information.
* lavr: correct the documentation for the ff_audio_resample() return valueJustin Ruggles2012-11-271-1/+1
|
* lavr: do not pass sample count as a parameter to ff_audio_convert()Justin Ruggles2012-11-273-8/+11
| | | | | It will always be the number of samples in the input buffer, so just use that directly instead of passing it as a separate parameter.
* x86: lavr: fix stack allocation for 7 and 8 channel downmixing on x86-32Ronald S. Bultje2012-11-171-1/+9
| | | | Fixes crashes on Win32 and stack overruns on x86-32 in general.
* lavr: fix the decision for writing directly to the output bufferJustin Ruggles2012-11-171-4/+5
| | | | | | If there are any samples remaining in the output fifo from previous conversion calls, we have to output those samples first instead of doing direct output of the current samples.
* build: Drop AVX assembly ifdefsDiego Biurrun2012-11-112-42/+0
| | | | An assembler able to cope with AVX instructions is now required.
* Include libavutil/channel_layout.h instead of libavutil/audioconvert.hJustin Ruggles2012-11-111-1/+1
| | | | Also reorder some other #include when applicable.
* x86: PALIGNR: port to cpuflagsDiego Biurrun2012-11-091-6/+0
|
* x86: avresample: Add missing colons to assembly labelsDiego Biurrun2012-11-061-2/+2
| | | | YASM accepts labels without colons, but NASM issues warnings.
* x86: yasm: Use complete source path for macro helper %includesDiego Biurrun2012-10-312-2/+2
| | | | | This is more consistent with the way we handle C #includes and it simplifies the build system.
* x86: include x86inc.asm in x86util.asmDiego Biurrun2012-10-312-2/+0
| | | | This is necessary to allow refactoring some x86util macros with cpuflags.
* lavr: document upper bound on number of output samples.Anton Khirnov2012-10-291-0/+4
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavr: add general API usage doxyAnton Khirnov2012-10-291-0/+71
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavr: handle clipping in the float to s32 conversionJustin Ruggles2012-10-131-1/+7
| | | | | | | | | | | We cannot clip to INT_MAX because that value cannot be exactly represented by a float value and ends up overflowing during conversion anyway. We need to use a slightly smaller float value, which ends up with slightly inaccurate results for samples which clip or nearly clip, but it is close enough. Using doubles as intermediates in the conversion would be more accurate, but it takes about twice as much time. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavr: bump major to 1 and declare it stable.Anton Khirnov2012-10-051-2/+2
|
* lavr: change the type of the data buffers to uint8_t**.Anton Khirnov2012-10-055-11/+11
| | | | | | This is more consistent with what the rest of Libav does. This breaks API.
* ARM: libavresample: NEON optimised generic fltp to s16 conversionMans Rullgard2012-09-132-0/+238
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: libavresample: NEON optimised stereo fltp to s16 conversionMans Rullgard2012-09-132-0/+69
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: libavresample: NEON optimised flat float to s16 conversionMans Rullgard2012-09-135-0/+110
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavr/audio_mix_matrix: acknowledge the existence of LFE2.Tim Walker2012-09-121-0/+1
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* x86: Replace checks for CPU extensions and flags by convenience macrosDiego Biurrun2012-09-082-17/+17
| | | | | This separates code relying on inline from that relying on external assembly and fixes instances where the coalesced check was incorrect.
* avopt: Explicitly store float/double option defaults in .dblMartin Storsjö2012-09-041-4/+4
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-041-14/+14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union memberMartin Storsjö2012-09-041-9/+9
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: Split inline and external assembly #ifdefsDiego Biurrun2012-08-312-22/+22
|
* x86: cosmetics: Comment some #endifs for better readabilityDiego Biurrun2012-08-301-1/+1
|
* AVOptions: store defaults for INT64 options in int64 union member.Anton Khirnov2012-08-241-2/+2
| | | | | Double does not have enough precision to represent all int64 numbers exactly.
* lavr: x86: optimized 6-channel flt to fltp conversionJustin Ruggles2012-08-232-0/+72
|
* lavr: x86: optimized 2-channel flt to fltp conversionJustin Ruggles2012-08-232-0/+41
|
* lavr: x86: optimized 6-channel flt to s16p conversionJustin Ruggles2012-08-232-0/+87
|
OpenPOWER on IntegriCloud