66bb5cd592 
								
							
								 
							
						 
						
							
							
								
								sws: remove hScale16N() and use ronalds reformated version of it.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								28c1115a91 
								
							
								 
							
						 
						
							
							
								
								swscale: use 15-bit intermediates for 9/10-bit scaling.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6a92551234 
								
							
								 
							
						 
						
							
							
								
								lsws: remove optimization debug logs in sws_init_context()  
							
							The logged information is possibly false, and it tends to be outdated
after each change since the logging code needs to be manually updated.
Simplify and prevent confusing wrong debug messages.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								347167ecf5 
								
							
								 
							
						 
						
							
							
								
								lsws: use array for storing the supported in/out information  
							
							Also remove the unnecessary isSupportedIn/Out macros.
Make the code more compact/readable, and simplify the access to
lsws-specific pixel format information.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4ce0a94656 
								
							
								 
							
						 
						
							
							
								
								lsws: remove deprecated and unused stuff after the 0->1 major bump  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								62ee0e6a97 
								
							
								 
							
						 
						
							
							
								
								Revert "swscale: use 15-bit intermediates for 9/10-bit scaling."  
							
							This reverts commit ac0fb59348 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ac0fb59348 
								
							
								 
							
						 
						
							
							
								
								swscale: use 15-bit intermediates for 9/10-bit scaling.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								25a53c54d1 
								
							
								 
							
						 
						
							
							
								
								lsws: apply logging factorization in sws_scale_init()  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								07f49ca1d1 
								
							
								 
							
						 
						
							
							
								
								lsws: remove redundant macros isSupportedIn/Out  
							
							Directly call sws_isSupportedInput/Output. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								64bb656326 
								
							
								 
							
						 
						
							
							
								
								lsws: factorize some logging code in sws_init_context()  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e8794f1d5e 
								
							
								 
							
						 
						
							
							
								
								lsws: fix weird indent  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c899bedbca 
								
							
								 
							
						 
						
							
							
								
								lsws: use array for storing the supported in/out information  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eedb1f2034 
								
							
								 
							
						 
						
							
							
								
								swscale: mark YUV422P10(LE,BE) as supported for output  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								baba2eedac 
								
							
								 
							
						 
						
							
							
								
								swscale: extend mmx padding.  
							
							Fixes a crash when forcing libc to strictly adhere to malloc sizes. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								96c1e6d40d 
								
							
								 
							
						 
						
							
							
								
								doxygen: Make sure parameter names match between .c and .h files.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e1d9cee13d 
								
							
								 
							
						 
						
							
							
								
								sws: dont mess with XInc when the code needing it isnt used  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								29fb1b5a06 
								
							
								 
							
						 
						
							
							
								
								sws: Fix chroma init for 32bit buffers.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ac9ac45aca 
								
							
								 
							
						 
						
							
							
								
								swscale: fix 16-bit scaling when output is 8-bits.  
							
							We would use the second half of the U plane buffer, rather than the
V plane buffer, to output the V plane pixels. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b5ff61695f 
								
							
								 
							
						 
						
							
							
								
								sws: fix uv overwrite in 32bt  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								948ccdadf4 
								
							
								 
							
						 
						
							
							
								
								swscale: for >8bit scaling, read in native bit-depth.  
							
							For 9/10bit, it means we don't have to upscale to 16bit before
actual scaling or pixel format conversion, and thus a performance
gain. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5c391a161a 
								
							
								 
							
						 
						
							
							
								
								swscale: rename uv_off/uv_off2 to uv_off_px/byte.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								42d622fab3 
								
							
								 
							
						 
						
							
							
								
								swscale: fix 16-bit scaling when output is 8-bits.  
							
							We would use the second half of the U plane buffer, rather than the
V plane buffer, to output the V plane pixels. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8f440223f6 
								
							
								 
							
						 
						
							
							
								
								swscale: disable full_chroma_int when converting to non-24/32bpp RGB.  
							
							This functionality is only implemented for RGB24/32 and causes crashes
otherwise. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8a8d0ce208 
								
							
								 
							
						 
						
							
							
								
								swscale: for >8bit scaling, read in native bit-depth.  
							
							For 9/10bit, it means we don't have to upscale to 16bit before
actual scaling or pixel format conversion, and thus a performance
gain. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								45f6ffe5e9 
								
							
								 
							
						 
						
							
							
								
								swscale: implement >8bit scaling support.  
							
							This means that precision is retained when scaling between sample
formats with >8 bits per component (48bit RGB, 16bit grayscale,
9/10/16bit YUV). 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ef1ee362b3 
								
							
								 
							
						 
						
							
							
								
								swscale: implement >8bit scaling support.  
							
							This means that precision is retained when scaling between sample
formats with >8 bits per component (48bit RGB, 16bit grayscale,
9/10/16bit YUV). 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9e17d051ac 
								
							
								 
							
						 
						
							
							
								
								swscale: Fix yuv422p10  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dff5a83532 
								
							
								 
							
						 
						
							
							
								
								swscale: re-add support for non-native endianness.  
							
							This works through some non-obvious hacks in utils.c. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3636e791ec 
								
							
								 
							
						 
						
							
							
								
								swscale: use SwsContext for av_log when available  
							
							Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								103278f7b0 
								
							
								 
							
						 
						
							
							
								
								libavutil/swscale: YUV444P10/YUV444P9 support.  
							
							Also add missing glue code for recently added YUV422P10 formats
to swscale.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6d4d483eee 
								
							
								 
							
						 
						
							
							
								
								swscale: de-macro'ify RGB15/16/32 input functions.  
							
							Inline functions are easier to read, maintain, modify and test,
which justifies the slightly increased source size. This patch
also adds support for non-native endianness RGB15/16 and fixes
isSupportedOutput() to no longer claim that we support writing
non-native RGB565/555/444. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b932eb1be6 
								
							
								 
							
						 
						
							
							
								
								swscale: reintroduce sws_format_name() symbol  
							
							Reintroduce the internal symbol which was removed in:
commit e1197b9e17 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								808d8ff6bb 
								
							
								 
							
						 
						
							
							
								
								swscale: allocate larger buffer to handle altivec overreads.  
							
							Altivec sws code intentionally overreads buffers for better performance,
so we need to allocate larger buffers to handle that. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e1197b9e17 
								
							
								 
							
						 
						
							
							
								
								swscale: remove sws_format_name()  
							
							Use av_get_pix_fmt_name() instead. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								39d607e5bb 
								
							
								 
							
						 
						
							
							
								
								swscale: Commits that could not be pulled earlier due to bugs  #2  
							
							commit 5a5a0f1613389e2000ebf327bfa6dc9f5d45025e 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								986f0d86cb 
								
							
								 
							
						 
						
							
							
								
								Commits that could not be pulled earlier due to bugs.  
							
							commit 93681fbd50e758573a880f4eb8b043b4a224c5e4 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								485d73ef21 
								
							
								 
							
						 
						
							
							
								
								swscale: replace formatConvBuffer[VOF] by allocated array.  
							
							This allows to convert between formats of arbitrary width,
regardless of the value of VOF/VOFW. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								009f829dde 
								
							
								 
							
						 
						
							
							
								
								swscale: fix crash in bilinear scaling.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								11f2eae2ae 
								
							
								 
							
						 
						
							
							
								
								swscale: Remove commented-out printf cruft.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								389e2000eb 
								
							
								 
							
						 
						
							
							
								
								swscale: delay allocation of formatConvBuffer().  
							
							That means it won't be allocated when not needed. Alongside
this, it fixes valgrind/fate-detected memory leaks. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2b6bfff2b2 
								
							
								 
							
						 
						
							
							
								
								swscale: Do not loose precission on yuv values after rgb->yuv.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0f4eb8b043 
								
							
								 
							
						 
						
							
							
								
								swscale: remove VOF/VOFW.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b4a224c5e4 
								
							
								 
							
						 
						
							
							
								
								swscale: split chroma buffers into separate U/V planes.  
							
							Preparatory step to implement support for sizes > VOFW. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								69645c021a 
								
							
								 
							
						 
						
							
							
								
								swscale: replace formatConvBuffer[VOF] by allocated array.  
							
							This allows to convert between formats of arbitrary width,
regardless of the value of VOF/VOFW. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0093199184 
								
							
								 
							
						 
						
							
							
								
								swscale: Remove commented-out printf cruft.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								364889cf9c 
								
							
								 
							
						 
						
							
							
								
								Return -1 on invalid input instead of crashing.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								895b616146 
								
							
								 
							
						 
						
							
							
								
								swscale: dont loose bits on planar >8bit yuv ind gray nput.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c4fd283a46 
								
							
								 
							
						 
						
							
							
								
								swscale: use emms_c().  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e66149e714 
								
							
								 
							
						 
						
							
							
								
								swscale: force --enable-runtime-cpudetect and remove SWS_CPU_CAPS_*.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								046f081b46 
								
							
								 
							
						 
						
							
							
								
								configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.  
							
							Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems
since it causes certain system functions to be hidden on some (BSD) systems.
The solution is to only add the flag on systems that really require it, i.e.
glibc-based ones.
This change makes BSD systems compile out-of-the-box without the need for
adding specific flags manually.  It also allows dropping a number of flags
set manually on a file-per-file basis, but were only present to work around
breakage introduced by the presence of _POSIX_C_SOURCE.
Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems.  We use XSI extensions
in several places already, so it is preferable to define it globally instead
of littering source files with individual #defines only needed for glibc. 
							
						 
						14 years ago