Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | avresample: Add avresample_get_out_samples | Luca Barbato | 2014-05-28 | 3 | -8/+39 |
| | | | | | Utility function to get the upper bound on the number of samples the resampler would output. | ||||
* | build: handle library dependencies in configure | Janne Grunau | 2014-05-13 | 1 | -1/+0 |
| | | | | | Instead of setting FFLIBS in each library Makefile configure exports FFLIBS-$library in config.mak. | ||||
* | aarch64: NEON optimized FIR audio resampling | Janne Grunau | 2014-04-24 | 6 | -2/+342 |
| | | | | | | Optimized for the default filter length 16. 30% faster opus silk decoding. | ||||
* | lavr: define ResampleContext in resample.h | Janne Grunau | 2014-04-24 | 2 | -29/+29 |
| | | | | Required for arch optimized resampling. | ||||
* | aarch64: NEON float to s16 audio conversion | Janne Grunau | 2014-04-22 | 5 | -0/+419 |
| | |||||
* | resample: remove an unneeded context variable | Anton Khirnov | 2014-04-17 | 1 | -8/+3 |
| | |||||
* | lavr: allocate the resampling buffer with a positive size | Anton Khirnov | 2014-04-13 | 1 | -1/+1 |
| | | | | | | This fixes cases where very few input samples (fewer than needed for one output sample) are passed to lavr at the beginning. CC:libav-stable@libav.org | ||||
* | resample: implement flushing | Anton Khirnov | 2014-04-13 | 1 | -7/+39 |
| | |||||
* | resample: split linear into its own function | Anton Khirnov | 2014-04-11 | 2 | -15/+27 |
| | |||||
* | resample: add initial padding explicitly | Anton Khirnov | 2014-04-11 | 2 | -22/+36 |
| | | | | | This simplifies the code, since we do not have to deal with a possibly negative source index anymore. | ||||
* | resample: drop useless abs() | Anton Khirnov | 2014-04-11 | 1 | -2/+2 |
| | | | | negative sample_index is handled in the block above. | ||||
* | resample: reindent | Anton Khirnov | 2014-04-11 | 1 | -21/+20 |
| | |||||
* | resample: split the nearest neighbour path into a separate function pointer | Anton Khirnov | 2014-04-11 | 2 | -13/+25 |
| | |||||
* | resample: fix avresample_get_delay() return value | Anton Khirnov | 2014-04-11 | 1 | -1/+5 |
| | | | | | | | | The correct "next" input sample is not the first sample of the resampling buffer, but the center sample of the filter_length-sized block at the beginning. CC:libav-stable@libav.org | ||||
* | x86: Drop some unnecessary YASM ifdefs | Diego Biurrun | 2014-04-04 | 1 | -2/+0 |
| | | | | Dead code elimination is enough to avoid undefined references in these cases. | ||||
* | Add missing headers to make template files compile (more) standalone | Diego Biurrun | 2014-03-26 | 1 | -0/+6 |
| | |||||
* | lavr: return an error if a avresample_open() is called on an open context | Anton Khirnov | 2014-02-22 | 1 | -0/+5 |
| | |||||
* | lavr: add a function for checking whether AVAudioResampleContext is open | Anton Khirnov | 2014-02-22 | 3 | -1/+14 |
| | |||||
* | lavr: mix front center channel as indicated in the ATSC A/52 specification. | Tim Walker | 2014-02-08 | 1 | -2/+7 |
| | | | | When mixing 3 front channels into 2, the center channel is mixed into left and right with the center mix level, not -3dB. | ||||
* | arm: Add X() around all references to extern symbols | Martin Storsjö | 2014-02-07 | 1 | -2/+2 |
| | | | | | | Don't rely on the fact that an unprefixed label currently exists. Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | aarch64: port neon clobber test from arm | Janne Grunau | 2014-01-15 | 2 | -0/+32 |
| | |||||
* | x86/arm: Add clobber tests to libavresample | Martin Storsjö | 2014-01-13 | 4 | -0/+67 |
| | | | | Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | audio_mix: print (SKIP) instead of 0.0 for matrix columns removed along with ↵ | Anton Khirnov | 2014-01-03 | 1 | -1/+1 |
| | | | | output zeroing | ||||
* | audio_mix: fix zeroing output channels in certain cases | Anton Khirnov | 2014-01-03 | 1 | -2/+5 |
| | | | | | | | | | | | Specifically, when the corresponding input channel exists and its matrix column is all-zero (which is necessary for zeroing the output), the matrix column must be removed from the matrix. This is not done currently, so the mixing code would end up using uninitialized pointers from stack. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind | ||||
* | audio_mix: initialize the data pointers to NULL | Anton Khirnov | 2014-01-03 | 1 | -1/+1 |
| | | | | | | | This should make it easier to catch problems where some of those pointers are used uninitialized, since reading from NULL should always crash, while random numbers from stack can turn out to be valid pointers, so random memory may be silently overwritten. | ||||
* | avutil: Move library version related macros to version.h | Diego Biurrun | 2013-12-26 | 1 | -0/+2 |
| | | | | This is a more sensible place for these macros. | ||||
* | Add missing #includes for *INT64_MAX and *INT64_C | Diego Biurrun | 2013-11-23 | 1 | -0/+2 |
| | |||||
* | lavr: check that current_buffer is not NULL before using it | Justin Ruggles | 2013-10-27 | 1 | -1/+2 |
| | | | | | | | Fixes a segfault during resampling when compiled with -DDEBUG. Fixes all fate-lavr-resample tests with -DDEBUG. CC:libav-stable@libav.org | ||||
* | x86inc: Remove our FMA4 support | Derek Buitenhuis | 2013-10-14 | 1 | -9/+9 |
| | | | | | | | | This is so we can sync to x264's version of FMA4 support. This partialy reverts commit 79687079a97a039c325ab79d7a95920d800b791f. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> | ||||
* | avresample/x86: Switch operand order for mulps | Derek Buitenhuis | 2013-10-14 | 1 | -1/+1 |
| | | | | | | | | With the forthcoming VEX instruction emulation, mulps must have only the third operand point to memory, as this is what vmulps expects. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> | ||||
* | audio_mix: fix channel order in mix_1_to_2_fltp_flt_c | Anton Khirnov | 2013-10-12 | 1 | -10/+10 |
| | | | | CC:libav-stable@libav.org | ||||
* | Give less generic names to global library option arrays | Diego Biurrun | 2013-08-02 | 1 | -2/+2 |
| | |||||
* | miscellaneous typo fixes | Diego Biurrun | 2013-07-25 | 1 | -1/+1 |
| | |||||
* | Consistently use "cpu_flags" as variable/parameter name for CPU flags | Diego Biurrun | 2013-07-18 | 3 | -24/+24 |
| | |||||
* | lavr doxy: add version.h to the lavr group | Anton Khirnov | 2013-05-17 | 1 | -0/+6 |
| | |||||
* | avresample: Add av_cold attributes to init functions missing them | Diego Biurrun | 2013-05-04 | 2 | -3/+4 |
| | |||||
* | cosmetics: Remove unnecessary extern keywords from function declarations | Diego Biurrun | 2013-03-27 | 3 | -167/+166 |
| | |||||
* | lavr: allow setting internal_sample_fmt option by string | Justin Ruggles | 2013-02-23 | 1 | -1/+11 |
| | |||||
* | lavr: Add "resample_cutoff" option as a duplicate of "cutoff" | Justin Ruggles | 2013-02-23 | 1 | -0/+2 |
| | | | | | Avoids an option name conflict with libavcodec, which is needed in order to work properly with avconv. | ||||
* | lavr: fix mixing matrix reduction when normalization is disabled | Justin Ruggles | 2013-02-12 | 1 | -0/+11 |
| | | | | | | | In some cases when an input contributes fully to the corresponding output, other inputs may also contribute to the same output. This is the case, for example, for the default 5.1 to stereo downmix matrix without normalization. | ||||
* | lavr: fix matrix reduction for upmixing in certain cases | Justin Ruggles | 2013-02-12 | 1 | -0/+10 |
| | | | | | Do not skip an output if the corresponding input contributes to other output channels. | ||||
* | lavr: cosmetics: reindent | Justin Ruggles | 2013-02-12 | 1 | -14/+14 |
| | |||||
* | lavr: make sure that the mix function is reset even if no mixing will be done | Justin Ruggles | 2013-02-12 | 1 | -21/+31 |
| | | | | | If the matrix reduction ends up with no mixing matrix needed, we need to still reset the mix function accordingly and log the info to the user. | ||||
* | lavr: print out the mix matrix in ff_audio_mix_set_matrix() | Justin Ruggles | 2013-02-12 | 1 | -26/+29 |
| | | | | This will print the new matrix if it is set after initialization. | ||||
* | lavr: always reset mix function names and pointers in mix_function_init() | Justin Ruggles | 2013-01-17 | 1 | -3/+4 |
| | | | | CC: libav-stable@libav.org | ||||
* | lavr: call mix_function_init() in ff_audio_mix_set_matrix() | Justin Ruggles | 2013-01-17 | 1 | -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 Ruggles | 2013-01-08 | 2 | -0/+86 |
| | |||||
* | x86: lavr: add SSE2 quantize() for dithering | Justin Ruggles | 2013-01-08 | 5 | -0/+102 |
| | |||||
* | lavr: log channel conversion description for any-to-any functions | Justin Ruggles | 2013-01-07 | 1 | -2/+3 |
| | |||||
* | lavr: mix: reduce the mixing matrix when possible | Justin Ruggles | 2013-01-07 | 1 | -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. |