c7131762c0 
								
							
								 
							
						 
						
							
							
								
								all: add const-correctness to qsort comparators  
							
							This adds const-correctness when needed for the comparators.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8507b98c10 
								
							
								 
							
						 
						
							
							
								
								avfilter,swresample,swscale: use fabs, fabsf instead of FFABS  
							
							It is well known that fabs and fabsf are at least as fast and sometimes
faster than the FFABS macro, at least on the gcc+glibc combination.
For instance, see the reference:
http://patchwork.sourceware.org/patch/6735/ .
This was a patch to glibc in order to remove their usages of a macro.
The reason essentially boils down to fabs using the __builtin_fabs of
the compiler, while FFABS needs to infer to not use a branch and to
simply change the sign bit. Usually the inference works, but sometimes
it does not. This may be easily checked by looking at the asm.
This also has the added benefit of reducing macro usage, which has
problems with side-effects.
Note that avcodec is not handled here, as it is huge and
most things there are integer arithmetic anyway.
Tested with FATE.
Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fb42e77516 
								
							
								 
							
						 
						
							
							
								
								swresample/swresample-test: Make layouts static const  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ff50b1b13b 
								
							
								 
							
						 
						
							
							
								
								swresample/swresample-test: Randomly wipe out channel counts  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								37013fd018 
								
							
								 
							
						 
						
							
							
								
								swresample/swresample-test: Add () to protect uint_rand() argument  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								74be0f82a7 
								
							
								 
							
						 
						
							
							
								
								swresample-test: make it independant of the internal SWR_CH_MAX  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								88f2586adb 
								
							
								 
							
						 
						
							
							
								
								fix various typos  
							
							Signed-off-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								24244cec2f 
								
							
								 
							
						 
						
							
							
								
								swr-test: Fix clip to 32bit  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1acd2f6ba7 
								
							
								 
							
						 
						
							
							
								
								Replace rest of libavutil/audioconvert.h with libavutil/channel_layout.h  
							
							Also remove it in once case when it is not needed.
Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9de5b11d58 
								
							
								 
							
						 
						
							
							
								
								swr-test: fix division by 0  
							
							Fixes CID733739
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dd3e5baa59 
								
							
								 
							
						 
						
							
							
								
								swr-test: check pointers before use  
							
							Fixes: CID733807, CID733806
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								13a215236b 
								
							
								 
							
						 
						
							
							
								
								swr-test: avoid VLA  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								323d912010 
								
							
								 
							
						 
						
							
							
								
								swr: update copyright years  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								787c395a30 
								
							
								 
							
						 
						
							
							
								
								swr-test: support "--help"  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								63b1c08073 
								
							
								 
							
						 
						
							
							
								
								buildsys: fix rules for swresample-test  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3db6093244 
								
							
								 
							
						 
						
							
							
								
								swr-test: allow testing a specific subset of cases  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								29ed1900cc 
								
							
								 
							
						 
						
							
							
								
								swr-test: fix rounding error leading to NAN  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								30aa004f0c 
								
							
								 
							
						 
						
							
							
								
								swr-test: allow randomizing mode differently each run.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bea3d19fbb 
								
							
								 
							
						 
						
							
							
								
								swr-test: use uint_rand() for mode too  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0334464336 
								
							
								 
							
						 
						
							
							
								
								swr-test: simplify by using uint_rand()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dcfc12e86a 
								
							
								 
							
						 
						
							
							
								
								swr-test: simplify prng code  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								76d376d99b 
								
							
								 
							
						 
						
							
							
								
								swr-test: fix declaration statement ordering.  
							
							swr-test is now warning free.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f75169b251 
								
							
								 
							
						 
						
							
							
								
								swr-test: fix pointer type warnings  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7b2ce50701 
								
							
								 
							
						 
						
							
							
								
								swr-test: fix unused var warnings  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a0dd81dd95 
								
							
								 
							
						 
						
							
							
								
								swr-test:indent  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f1f5b39866 
								
							
								 
							
						 
						
							
							
								
								swr-test: support fabrices audiogen like avr  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								73be22f526 
								
							
								 
							
						 
						
							
							
								
								swr-test: fix u8 zero point.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								56f89bae52 
								
							
								 
							
						 
						
							
							
								
								swr-test: improve rounding in set()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								27de7a8eb3 
								
							
								 
							
						 
						
							
							
								
								swr-test: remove unneeded hack to test planar formats.  
							
							planar formats are now chosen like any other parameter.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								08809e3085 
								
							
								 
							
						 
						
							
							
								
								swr-test: improve output  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5347b9da98 
								
							
								 
							
						 
						
							
							
								
								swr-test: print channel layout, instead of just channel counts  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6c460e3ea 
								
							
								 
							
						 
						
							
							
								
								swr-test: Use randomized collision free hypercube corner enumeration to select tests.  
							
							This way the user can specify how many or few tests should run while
still providing good coverage over the whole parameter set.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7461e9ae45 
								
							
								 
							
						 
						
							
							
								
								swr-test: use formats array  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								69f3af9590 
								
							
								 
							
						 
						
							
							
								
								swr-test: remove 0 terminator in layouts for consistency  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b1519102f1 
								
							
								 
							
						 
						
							
							
								
								swr-test: add rates tables containing a new set of sample rates.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								030d6b65ae 
								
							
								 
							
						 
						
							
							
								
								swr-test: indent  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dd63e27574 
								
							
								 
							
						 
						
							
							
								
								swr-test: add sorted formats table from avr  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5b2be9bcc0 
								
							
								 
							
						 
						
							
							
								
								swr-test: include opt.h, this is needed for changing options for testing.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								605bcf6101 
								
							
								 
							
						 
						
							
							
								
								swr-test: Add newline to test output  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5ef5c02354 
								
							
								 
							
						 
						
							
							
								
								swr-test: remove unused variable  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8d7f2db60a 
								
							
								 
							
						 
						
							
							
								
								swr-test: test the new flexible buffering  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								691b92474a 
								
							
								 
							
						 
						
							
							
								
								swr: revert stray hunk  
							
							Found-by:ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								19342bc725 
								
							
								 
							
						 
						
							
							
								
								swr: test partial flushing  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								12804348f5 
								
							
								 
							
						 
						
							
							
								
								swr-test: drop one const, silence most const qualifer warnings.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ebe4d5adc5 
								
							
								 
							
						 
						
							
							
								
								swr-test_: Fix mixed declaration and statements:  
							
							swresample_test.c:123:21: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
swresample_test.c:127:25: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								58205edcc6 
								
							
								 
							
						 
						
							
							
								
								swr: use native planar sample formats.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eafa2b6005 
								
							
								 
							
						 
						
							
							
								
								swr: introduce a public function to customize the channel mapping.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7cdfce4f63 
								
							
								 
							
						 
						
							
							
								
								swr: fix "control reaches end of non-void function" compiler warning.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								645c61fb2b 
								
							
								 
							
						 
						
							
							
								
								swr: rename swr_alloc2() to swr_alloc_set_opts().  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f5cd136f2b 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: add -map_channel option.  
							
							Based on an initial work by Baptiste Coudurier. 
							
						 
						14 years ago