aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fate/libswresample.mak
Commit message (Collapse)AuthorAgeFilesLines
* fate/libswresample: add missing aresample filter dependencyJames Almer2024-03-151-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/libswresample: force number of samples for the input of aresample async ↵Marton Balint2024-03-021-6/+6
| | | | | | | | | tests Since PTS is changed randomly for every audio frame, it matters. Also add some forgotten filter dependencies. Signed-off-by: Marton Balint <cus@passwd.hu>
* swresample/resample: fix rounding errors with filter_size=1 and phase_shift=0Marton Balint2024-03-021-2/+2
| | | | | | | | | | | Depending on input chunk size noticable corrpution was hearable, here is an example command line: ffplay -f lavfi -i "sine=440:r=8000:samples_per_frame=32,aresample=24000:filter_size=1:phase_shift=0" Fix this by rounding the fixed point fractions up instead of down. Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/eval: Use even better PRNGMichael Niedermayer2024-01-161-104/+104
| | | | | | | | | | | | | | | | | | This is the 64bit version of Chris Doty-Humphreys SFC64 Compared to the LCGs these produce much better quality numbers. Compared to LFGs this needs less state. (our LFG has 224 byte state for its 32bit version) this has 32byte state Also the initialization for our LFG is slower. This is also much faster than KISS or PCG. This commit replaces the broken LCG used before. (broken as it had only a period ~200M due to being put in a double) This changes the output from random() which is why libswresample.mak is updated, update was done using the command in libswresample.mak Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swr/swresample: avoid reapplication of firstptsGyan Doshi2023-12-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | During a resampling operation where 1) user has specified first_pts 2) SWR_FLAG_RESAMPLE is not set initially (directly or otherwise) 3) first_pts has been fulfilled (always using hard compensation) then upon first encountering a delay where a soft compensation is required, swr_set_compensation will lead to another init of swr which will reset outpts to the specified firstpts thus leading to an output frame having its pts = firstpts. When the next input frame is received, swr will see a large delay and inject silence from firstpts to the current frame's pts. This can lead to severe desync and in worst case, loss of audio playback. Parameter firstpts initialized to AV_NOPTS_VALUE in swr_alloc and then checked in swr_init to avoid resetting outpts, thus avoiding reapplication of firstpts. Fixes #4131.
* fate: disable automatic conversions on many tests.Nicolas George2020-09-081-1/+1
| | | | | | | | | | Explicitly insert the scale or aresample filter where it would have been inserted by the negotiation. Re-enable conversions if it cannot be done easily. If a conversion is needed in a test, we want to know about it. If the negotiation changes and makes new conversion necessary, we want to know about it even more.
* Merge commit '4141a5a240fba44b4b4a1c488c279d7dd8a11ec7'James Almer2017-10-031-9/+9
| | | | | | | * commit '4141a5a240fba44b4b4a1c488c279d7dd8a11ec7': Use modern avconv syntax for codec selection in documentation and tests Merged-by: James Almer <jamrial@gmail.com>
* swresample/options: enable linear_interp and exact_rational by defaultMuhammad Faiz2017-03-171-10/+179
| | | | | | better quality without speedloss Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* swresample/swresample: do not reset tsf on swr_alloc_set_optsMuhammad Faiz2017-03-131-40/+40
| | | | | | | | | | | | so tsf option in aresample will have effect previously tsf/internal_sample_format had no effect fate is updated s32p previously used fltp internally dblp previously used fltp/dblp internally Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* swresample/resample: do not allow odd filter_lengthMuhammad Faiz2017-03-091-38/+38
| | | | | | | | | | | | except filter_length == 1 odd filter_length gives worse frequency response, even when compared with shorter filter_length also makes build_filter simpler Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* fate/swresample: fix FUZZ typoMuhammad Faiz2017-03-081-1/+1
| | | | | | | unintentionally changed to 0.01 at '61926b6c3e560283ef6c015d6d85c32716942833' Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* swresample/resample: use uniform normalizationMuhammad Faiz2017-03-081-138/+138
| | | | | | | | | this gives better frequency response update swresample fate and other fates that depend on resampling Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* fate/swresample: add resample exact_lin and exact_lin_async testMuhammad Faiz2016-11-251-0/+176
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* fate: add swr-convertaudio testMuhammad Faiz2016-10-181-0/+8
| | | | | | | test for flt to s16 should pass on correct rounding to nearest Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* fate: add swr-resample_exact_async testsMuhammad Faiz2016-06-161-0/+87
| | | | Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* fate: add libswresample exact_rational testMuhammad Faiz2016-06-131-0/+256
| | | | Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* swresample/resample: increase precision for compensationMichael Niedermayer2015-11-111-4/+4
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swresample: Choose 16bit internally only if input and output is 16bit or lessMichael Niedermayer2015-06-211-62/+63
| | | | | | | | | | | | | or if no rematrix and no resampling is performed and the input is 16bit note reampling and rematrix itself always use more than 16bit internally the "internal" sampling format is the format between these steps Its unlikely the difference from this commit is audible in any case unless there is some bug either before or after the change. but multiple people prefer this and it slightly improves the precission of computations. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: Fix swr_drop_output so it does not flush the buffersMichael Niedermayer2014-11-041-8/+8
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* tests/swr: move the results out of the functionsTimothy Gu2014-06-051-4/+4
| | | | | | | This prevents all results from being declared whenever the function is called. Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fate: add simple test for asyncMichael Niedermayer2014-06-021-0/+27
| | | | | | | | | This only checks that things havnt changed, the values provide little help in determining if a change is good or bad. Improvements welcome! Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: add swri_resample_double_sse2James Almer2014-04-251-0/+19
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fate/libswresample: use linear interpolation on both aresample filtersMichael Niedermayer2014-04-231-3/+3
| | | | | | | This also tests LINEAR_CORE_FLT_SSE Found-by: jamrial Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample/resample_template: try to consider src_size more exactlyMichael Niedermayer2014-04-151-2/+2
| | | | | | | This should avoid slight differences in the output causes by input size alignment differences between archs Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample/resample: Fix fractional part of index in the filter_size = 1 ↵Michael Niedermayer2014-04-141-2/+2
| | | | | | filters = 1 case Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fate/libswresample: add tests with filter_size=1 phase_shift=0Michael Niedermayer2014-04-141-0/+28
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fate: add tests for linearly interpolated resamplingMichael Niedermayer2014-03-241-0/+51
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fate: add synthetic swresample resampling testsMichael Niedermayer2013-10-211-0/+276
this is based on libavresample.mak These tests do not depend on external samples Signed-off-by: Michael Niedermayer <michaelni@gmx.at>