a0493be10e 
								
							
								 
							
						 
						
							
							
								
								swresample: set the default parameters to "none"  
							
							this way it can easily be detected when parameters have not been set
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								33f7033452 
								
							
								 
							
						 
						
							
							
								
								swr: automatically choose s16/flt/dbl to preserve input precision unless user overrides.  
							
							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  
				
					
						
							
							
								 
						
							
							
							
								
							
								71a1f76d3c 
								
							
								 
							
						 
						
							
							
								
								swr: update double precision checks for our resampler  
							
							It supports double precision since a while
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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								046b5339fc 
								
							
								 
							
						 
						
							
							
								
								swr: disable 1 stage convert when dither is enabled.  
							
							This combination is not possible easily.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								106789dfa0 
								
							
								 
							
						 
						
							
							
								
								swr: add sample format to AudioData  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2d6c29f566 
								
							
								 
							
						 
						
							
							
								
								swr: add set_audiodata_fmt() and use it to simplify code  
							
							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  
				
					
						
							
							
								 
						
							
							
							
								
							
								da9587952a 
								
							
								 
							
						 
						
							
							
								
								swr: pass resample parameters from the user to the resampler.  
							
							doxy and names stolen from avr
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a522e03754 
								
							
								 
							
						 
						
							
							
								
								swr: Add longer more descriptive alternative AVOptions.  
							
							They match avresample where it supports the same fields.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								20fc610439 
								
							
								 
							
						 
						
							
							
								
								swr: Capitalize help texts for AVOptions  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								36a9dd2f4d 
								
							
								 
							
						 
						
							
							
								
								swr: align options a little  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								23282c2222 
								
							
								 
							
						 
						
							
							
								
								swr: set AV_OPT_FLAG_AUDIO_PARAM for the AVOptions  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e9b1d5ae5e 
								
							
								 
							
						 
						
							
							
								
								fix swr_convert buffering of packed audio  
							
							swr_convert is not properly buffering packed input audio when the
output is not large enough, and when resampling is not actually needed
(same samplerate and no SWR_FLAG_RESAMPLE).
buf_set() is only handling the first channel and leaving the others as-is.
Sample program to reproduce the problem is here https://gist.github.com/2431768 
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								44239bd9f2 
								
							
								 
							
						 
						
							
							
								
								swr: add a swr_flags AVOption  
							
							Using swr_flags instead of plain flags will avoid conflicts that
arise with plain flags and multiple libs (which all have AVOption flags)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c1d404b9e4 
								
							
								 
							
						 
						
							
							
								
								swr: add a dither_scale parameter to tune the amplitude of the dither.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a2c92e6063 
								
							
								 
							
						 
						
							
							
								
								swr: pass context to swri_get_dither()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f8a237a307 
								
							
								 
							
						 
						
							
							
								
								swr: add triangular highpass dither  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1fc4ff2205 
								
							
								 
							
						 
						
							
							
								
								swr: generate more dither noise to improve quality.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								22057e8ecb 
								
							
								 
							
						 
						
							
							
								
								swr: add swr_get_class()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b1ef4dc406 
								
							
								 
							
						 
						
							
							
								
								swr: add triangular dither support  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0cff3e130b 
								
							
								 
							
						 
						
							
							
								
								swr: remove unused variable  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0170889372 
								
							
								 
							
						 
						
							
							
								
								swr: add SWR_DITHER_RECTANGULAR to AVOptions array  
							
							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  
				
					
						
							
							
								 
						
							
							
							
								
							
								3d9338b1c2 
								
							
								 
							
						 
						
							
							
								
								swr: support int32 and float as internal sample formats  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7f1ae79d38 
								
							
								 
							
						 
						
							
							
								
								swr: support float & int32 in the resampler  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								87688727e4 
								
							
								 
							
						 
						
							
							
								
								swr: remove unused variable  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dc984da961 
								
							
								 
							
						 
						
							
							
								
								swr: fix pointer type warnings  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								59b038b4a4 
								
							
								 
							
						 
						
							
							
								
								swr: realloc_audio: support packed audio buffers  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1b0fcf33b8 
								
							
								 
							
						 
						
							
							
								
								swr: More flexible and convenient buffering  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e0c7128302 
								
							
								 
							
						 
						
							
							
								
								swr: fix segfault when 0 out size is used.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8b11ae8a9a 
								
							
								 
							
						 
						
							
							
								
								swr: Fix partial flushing.  
							
							Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4f16153d35 
								
							
								 
							
						 
						
							
							
								
								swr: allow flushing in multiple steps if the output is too small.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ae03b2141e 
								
							
								 
							
						 
						
							
							
								
								swr: check that there is enough information to do rematrixing when needed.  
							
							Fixes assertion failure.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2d38081b4f 
								
							
								 
							
						 
						
							
							
								
								cosmetics: fix some typos  
							
							Patch attached.
From 2d4094fc0d 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								560b224f53 
								
							
								 
							
						 
						
							
							
								
								libswr: allow to set custom matrices.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								320b8d6335 
								
							
								 
							
						 
						
							
							
								
								swr: fix swresample_version()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3339f87dbd 
								
							
								 
							
						 
						
							
							
								
								swr: increase LIBSWRESAMPLE_VERSION_MICRO to 100  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4468ad827a 
								
							
								 
							
						 
						
							
							
								
								swr: add swresample_version  swresample_configuration and swresample_license  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								aa1c590b29 
								
							
								 
							
						 
						
							
							
								
								swr: fix assert failure  
							
							Bug found by: Oana Stratulat
GCI-id: 7211207
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0232f788b6 
								
							
								 
							
						 
						
							
							
								
								swr: fix invalid sample format message.  
							
							If the sample format is invalid, av_get_sample_fmt_name() will always
return NULL. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								58205edcc6 
								
							
								 
							
						 
						
							
							
								
								swr: use native planar sample formats.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								afb0470a25 
								
							
								 
							
						 
						
							
							
								
								swr: fix test program.  
							
							The number of used channels need to be reset to zero when
swr_alloc_set_opts() is called successive times.
This is a regression introduced in c8136ebd 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bdd22e3523 
								
							
								 
							
						 
						
							
							
								
								swr: change minimum I/O channel count to zero.  
							
							This will silence the warning of av_set_opt_int() in swr for
input/output channels when the layout is not yet defined (or supported). 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0bfc03df3a 
								
							
								 
							
						 
						
							
							
								
								swr: move code to avoid resample forward declaration.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eafa2b6005 
								
							
								 
							
						 
						
							
							
								
								swr: introduce a public function to customize the channel mapping.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1dbd433f0d 
								
							
								 
							
						 
						
							
							
								
								swr: use av_opt_set_int() instead of manual assignments in swr_alloc_set_opts().  
							
							
								
							
							
						 
						14 years ago