4a640a6ac8 
								
							
								 
							
						 
						
							
							
								
								lswr: fix assert failure on unknown layouts.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c56d4dab03 
								
							
								 
							
						 
						
							
							
								
								swr/rematrix: Fix handling of AV_CH_LAYOUT_STEREO_DOWNMIX output  
							
							Fixes Ticket2859
Note, testcases related to the downmix channels are welcome.
(id like to make sure this is working correctly now, as obviously it didnt
 work before ...)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6dfffe9200 
								
							
								 
							
						 
						
							
							
								
								swr: clean layouts before checking sanity  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7ac12599fe 
								
							
								 
							
						 
						
							
							
								
								swresample: fix negative rematrix volumns  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e2b718464e 
								
							
								 
							
						 
						
							
							
								
								swresample: Make rematrix maxvalue user settable  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4cfc92081d 
								
							
								 
							
						 
						
							
							
								
								swr: add native_simd_one  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b84de51f54 
								
							
								 
							
						 
						
							
							
								
								swresample/rematrix: add S32 mixing code  
							
							Needed for dithering S32
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6e29f39252 
								
							
								 
							
						 
						
							
							
								
								swr/rematrix: use av_calloc()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5e68bf9b92 
								
							
								 
							
						 
						
							
							
								
								swr/rematrix: move templating parameters to template itself.  
							
							
								
							
							
						 
						13 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  
				
					
						
							
							
								 
						
							
							
							
								
							
								555f352f99 
								
							
								 
							
						 
						
							
							
								
								swr/rematrix: fix C99 left shift overflow  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								31a797eb28 
								
							
								 
							
						 
						
							
							
								
								swr: add av_cold to init/free functions  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0e78e575ed 
								
							
								 
							
						 
						
							
							
								
								swr/auto_matrix: treat a single channel as mono instead of failing  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f8d74cbdc3 
								
							
								 
							
						 
						
							
							
								
								swr/auto_matrix: treat stereo downmix like stereo.  
							
							Based on code by John Stebbins
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c8ffab06f4 
								
							
								 
							
						 
						
							
							
								
								swr/auto_matrix: add clean layout function  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ebc854e4e9 
								
							
								 
							
						 
						
							
							
								
								swr/auto_matrix: move layouts to local variables  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c5278cb84f 
								
							
								 
							
						 
						
							
							
								
								Add Dolby/DPLII downmix support to libswresample  
							
							Based on code by John Stebbins <jstebbins.hb@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2dd2e42951 
								
							
								 
							
						 
						
							
							
								
								swr: update rematrix coeffs to match AC-3  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7309451d73 
								
							
								 
							
						 
						
							
							
								
								swr: fix warning: passing argument 2 of s->mix_any_f from incompatible pointer type  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								04b5eb47a6 
								
							
								 
							
						 
						
							
							
								
								swr: fix mix* related function pointer warnings  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								065851ffac 
								
							
								 
							
						 
						
							
							
								
								lswr/rematrix: specify explicitly the name of the unsupported channel layouts  
							
							Help debugging. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								728f86edfc 
								
							
								 
							
						 
						
							
							
								
								swr: mix_2_1_int16_mmx/sse  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cbeeaf2593 
								
							
								 
							
						 
						
							
							
								
								swr: mix_1_1 int16 MMX  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								beb0cd6acf 
								
							
								 
							
						 
						
							
							
								
								swr: SIMD rematrixing and SSE/AVX mix_1_1 float  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								48a45f819f 
								
							
								 
							
						 
						
							
							
								
								swr: add native matrix for SIMD  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a5c6349358 
								
							
								 
							
						 
						
							
							
								
								swr: skip memset(0) in rematrix when the array is known to be already 0  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b0348158a0 
								
							
								 
							
						 
						
							
							
								
								swr: 5.1->stereo double, float and s16  
							
							2.5 times faster than the generic code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ca30ae12c5 
								
							
								 
							
						 
						
							
							
								
								swr: add all in one rematrixing function ptr  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dfde3d497e 
								
							
								 
							
						 
						
							
							
								
								swr: add inrermediate sample type for rematrixing  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f2e799a3d0 
								
							
								 
							
						 
						
							
							
								
								swr: add double precision support to the rematrix code  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6d5bf67f04 
								
							
								 
							
						 
						
							
							
								
								swr: add lfe_mix_level  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9b42653b22 
								
							
								 
							
						 
						
							
							
								
								swr: update side to back mixing.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								aab5a4521c 
								
							
								 
							
						 
						
							
							
								
								swr: add and use function pointers for rematrix  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								00fea26faf 
								
							
								 
							
						 
						
							
							
								
								swr: add native matrix for rematrixing  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								edbde52226 
								
							
								 
							
						 
						
							
							
								
								swr: change sample format representation so as to maintain the planer/packed distinction.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f9a2c5bc07 
								
							
								 
							
						 
						
							
							
								
								swr: simplify code by using av_get_bytes_per_sample()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7c673d73ec 
								
							
								 
							
						 
						
							
							
								
								swr: use assert in swri_sum2 to check that only supported formats are used.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								db2eadb2f5 
								
							
								 
							
						 
						
							
							
								
								swr: add dither support.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5c1f312888 
								
							
								 
							
						 
						
							
							
								
								swr: update copyright year for rematrix  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a8cdb7b95a 
								
							
								 
							
						 
						
							
							
								
								swr: special case for empty channels in rematrix.  
							
							Speed += 10% overall for pan=stereo:FL=FL+FR from wav to null. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								560b224f53 
								
							
								 
							
						 
						
							
							
								
								libswr: allow to set custom matrices.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c4deb90cfa 
								
							
								 
							
						 
						
							
							
								
								swr: use "swri_" prefix instead of "swr_" for the private API.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2f86566a31 
								
							
								 
							
						 
						
							
							
								
								rematrix: add parameter to tune volume  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b1470d7a60 
								
							
								 
							
						 
						
							
							
								
								rematrix: change type of integers from 16 to 32bit to allow increasing volume with it.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1e40b2c22b 
								
							
								 
							
						 
						
							
							
								
								rematrix: add type for coefficients  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								76dbb0905a 
								
							
								 
							
						 
						
							
							
								
								rematrix: Fix several passing argument from incompatible pointer type warnings.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9719f25e7b 
								
							
								 
							
						 
						
							
							
								
								swresample: fix broken indent.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								355cc1a052 
								
							
								 
							
						 
						
							
							
								
								swresample/rematrix: show matrix with debug log level  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a34869ed7d 
								
							
								 
							
						 
						
							
							
								
								libswr/rematrix: remove unused variable.  
							
							Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								80287854c2 
								
							
								 
							
						 
						
							
							
								
								libswr/rematrix: add braces to silence a warning.  
							
							Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago