8bee8f778a 
								
							
								 
							
						 
						
							
							
								
								lswr/swresample: use AV_OPT_TYPE_SAMPLE_FMT for sample format options  
							
							Improve usability and robustness. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c02ae48271 
								
							
								 
							
						 
						
							
							
								
								swr: set default channel count options to 0.  
							
							If not set, they will be defined using the channel layout setting, which
is much more convenient when using swr_alloc() instead of
swr_alloc_set_opts(). 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								6450c05ba5 
								
							
								 
							
						 
						
							
							
								
								lswr/swresample: adopt globally consistent rules for options help message  
							
							The help text tells what the option does, not what the accepted parameter
is. Thus convert strings of the kind:
Bikeshed Color
to
set bikeshed color 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								97599f8c6d 
								
							
								 
							
						 
						
							
							
								
								swr: make sure the last data element is NULL so we can use it to detect the number of channels  
							
							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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								b9df3f4f6c 
								
							
								 
							
						 
						
							
							
								
								swr: fix 10l typo mixing in and out config.  
							
							Fixes ticket1458
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7e15df7551 
								
							
								 
							
						 
						
							
							
								
								swr: resampling: add filter type and Kaiser window beta to AVOptions  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1d903a5ee4 
								
							
								 
							
						 
						
							
							
								
								lswr: channel_map requires input conversion.  
							
							channel_map is applied between in and postin.
Without this test, if the input format is an acceptable internal format,
the in->postin conversion is skipped. In the best case,
it ignores channel_map, in the worst case it causes an assert failure
if the number of channels is changed by the map. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1842b27564 
								
							
								 
							
						 
						
							
							
								
								lavu: 256 color support  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								10d2a4028c 
								
							
								 
							
						 
						
							
							
								
								swresample: make .class_name more descriptive  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								634d539c12 
								
							
								 
							
						 
						
							
							
								
								swresample.c: update copyleft year  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								75d900d52e 
								
							
								 
							
						 
						
							
							
								
								swr: zero buffers on allocation  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								64df092b25 
								
							
								 
							
						 
						
							
							
								
								swr: fix a few typo.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								72261fa867 
								
							
								 
							
						 
						
							
							
								
								swr: fix swr_drop_output()  
							
							Fixes part of Ticket1341
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								841c1be57e 
								
							
								 
							
						 
						
							
							
								
								swr: check return value of swr_inject_silence/drop_output.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a645049bd8 
								
							
								 
							
						 
						
							
							
								
								swr: check count argument of realloc_audio()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d1384c00d4 
								
							
								 
							
						 
						
							
							
								
								swr: skip soft compensation when its disabled.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								72a242c998 
								
							
								 
							
						 
						
							
							
								
								swr: add swr_next_pts()  
							
							parameter descriptions partly reuse text from af_asyncts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f88f705abc 
								
							
								 
							
						 
						
							
							
								
								swr: add swr_drop_output()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7a59964ba9 
								
							
								 
							
						 
						
							
							
								
								swr: add swr_inject_silence()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								72872d0201 
								
							
								 
							
						 
						
							
							
								
								swr: Fix issue with injecting more data than can be used up in the next call.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c5c355546d 
								
							
								 
							
						 
						
							
							
								
								swr: add some asserts to resample()  
							
							These check that the internal and input buffers match in format
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								75e25f8540 
								
							
								 
							
						 
						
							
							
								
								swr: add reversefill_audiodata()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5027e3daf7 
								
							
								 
							
						 
						
							
							
								
								swr: fix buf_set() so it works with input == output  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bdbfd4569d 
								
							
								 
							
						 
						
							
							
								
								swr: make literal 32 a named constant in realloc_audio()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								186be49fd5 
								
							
								 
							
						 
						
							
							
								
								swr: fill_audio_data() support NULL  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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