51fed95dde 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: fix wrong deprecated message with rgb0  
							
							Fixes Ticket3242
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								037fc3b054 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: check chroma width for fast bilinear scaler  
							
							Fixes artifacts where fast bilinear was used for downscaling chroma
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								554e913fd7 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: remove useless ()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dc54bd4e8d 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: factor (d + 1 < 4) out  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4d18060e56 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: fill xyz tables only when they will be used  
							
							makes the first call to sws_getContext() 1ms faster
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2a6c95d85f 
								
							
								 
							
						 
						
							
							
								
								lsws/utils: introduce scale_algorithms array  
							
							Allow some dumb factorizations, slightly decrease spaghetti factor. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								246e323de8 
								
							
								 
							
						 
						
							
							
								
								lsws/utils: fix typo  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ff9d11f95d 
								
							
								 
							
						 
						
							
							
								
								lsws: use av_pix_fmt_get_chroma_sub_sample()  
							
							Remove duplicated getSubSampleFactors() function. Simplify. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eb4205cc89 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: check mprotect() return code  
							
							Found-by: wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2db6547237 
								
							
								 
							
						 
						
							
							
								
								swscale/utils/sws_setColorspaceDetails(): fix indention  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a830915b78 
								
							
								 
							
						 
						
							
							
								
								swscale: Use full resolution chroma for yuv2rgb when the input has full chroma  
							
							See Ticket3028
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6b3ff6f91a 
								
							
								 
							
						 
						
							
							
								
								swscale: provide a default scaler if none is set  
							
							Lanczos for general case, sinc for upscaling, Gaussian for
downscaling. According to current literature these scalers
should be the best quality-wise algorithms for each case.
Inspired from a patch by wm4 <nfxjfg@googlemail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2e2a2d8801 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: dont divide by zero with zero vectors  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2d28950da9 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: remove redundant NULL checks before sws_freeVec()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a446657d8c 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: simplify cpu caps printing code  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9d052adbeb 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: Simplify scaler name printing code  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								aec91de549 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: Allow sws_setColorspaceDetails() to use the tables from sws_getColorspaceDetails()  
							
							Previously this would have lead to a memcpy(a,a) which violates the
requirement of non overlapping src and dst.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c914c99d4b 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: use memcpy instead of loop in sws_cloneVec()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								79aec43ce8 
								
							
								 
							
						 
						
							
							
								
								x86: Add and use more convenience macros to check CPU extension availability  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1909f6b1b6 
								
							
								 
							
						 
						
							
							
								
								swscale: cosmetics: Drop silly camelCase from swScale function pointer name  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c2503d9c8a 
								
							
								 
							
						 
						
							
							
								
								swscale: ppc: Hide arch-specific initialization details  
							
							Also give consistent names to init functions. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f61bece684 
								
							
								 
							
						 
						
							
							
								
								ppc: Add and use convenience macro to check for AltiVec availability  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								23b3141261 
								
							
								 
							
						 
						
							
							
								
								swscale: improve dither checks  
							
							Bssed on patch by Øyvind Kolås <pippin@gimp.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c50ea2251 
								
							
								 
							
						 
						
							
							
								
								swscale: set dither to a specific value for rgb/bgr8 output  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1e0e193240 
								
							
								 
							
						 
						
							
							
								
								sws: add dither enum  
							
							This allows specifying more dither algorithms without using up flags and
without ambiguities.
Also initialize the new field based on the flags and use it.
Note, improving the logic of the checks is left to subsequent
commits, this here only switches from flags to enum.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								aa2ba8c99e 
								
							
								 
							
						 
						
							
							
								
								swscale: Move extern declarations for tables to swscale_internal.h  
							
							Also add missing ff_ prefixes where necessary. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8d745281a4 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: Fix potential overflow of srcPos*C  before converting to 64bit  
							
							Fixes CID1061054
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bc721ac9f7 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: Fix potential overflow of dstPos*xInc before converting to 64bit  
							
							Fixes CID1061053
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8efe96ee6f 
								
							
								 
							
						 
						
							
							
								
								swscale/fill_rgb2yuv_table: fix default detection  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a7e45cfa11 
								
							
								 
							
						 
						
							
							
								
								swscale/sws_getColorspaceDetails: dont fail for non yuv  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								436616fd42 
								
							
								 
							
						 
						
							
							
								
								swscale: exchange src & dst chroma pos  
							
							Found-by: wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b9b1a2c3e4 
								
							
								 
							
						 
						
							
							
								
								libswscale: Adding RGB => XYZ support  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b405f4e916 
								
							
								 
							
						 
						
							
							
								
								swscale: Add support to specify chroma position  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								37f4aa133d 
								
							
								 
							
						 
						
							
							
								
								swscale: move default colorspace setup to sws_init_filter()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c75dde6074 
								
							
								 
							
						 
						
							
							
								
								swscale: call handle_format() from the functions that need it  
							
							This should fix some hypothetical issues with alloc/init_context() usage
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0fc11e7bad 
								
							
								 
							
						 
						
							
							
								
								swscale: make handle_formats() safe to be called multiple times  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d5f5e51662 
								
							
								 
							
						 
						
							
							
								
								swscale: move format handling to its own function  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1ba01d3d46 
								
							
								 
							
						 
						
							
							
								
								swscale: treat gray as a fullrage (0-255) format  
							
							Fixes Ticket2684
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7cdf574c22 
								
							
								 
							
						 
						
							
							
								
								swscale: fix filter alignment reduction without inline asm  
							
							Fixes scaling in MSVC/ICL, where inline asm is not present, but the
YASM scaling code is.
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a90baa63c3 
								
							
								 
							
						 
						
							
							
								
								add YUVJ411P  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e1746d057b 
								
							
								 
							
						 
						
							
							
								
								swscale: RGBA64 output  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								63725d158d 
								
							
								 
							
						 
						
							
							
								
								Revert "sws: support endianness conversion for AV_PIX_FMT_RGBA64"  
							
							This reverts commit 23f7b14f28 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								23f7b14f28 
								
							
								 
							
						 
						
							
							
								
								sws: support endianness conversion for AV_PIX_FMT_RGBA64  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								570d63eef3 
								
							
								 
							
						 
						
							
							
								
								lavu: add FF_CEIL_RSHIFT and use it in various places.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5c057433cc 
								
							
								 
							
						 
						
							
							
								
								libswscale: GBRAP input & output and GBRAP16 input support  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9cfa21c8c2 
								
							
								 
							
						 
						
							
							
								
								swscale: support endianness conversion for AV_PIX_FMT_XYZ12  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c1eb3e7fec 
								
							
								 
							
						 
						
							
							
								
								swscale: add support for endianness only conversion  
							
							Use bitfields in FormatEntry array to avoid wasting an int for each flag. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3bb1c58e95 
								
							
								 
							
						 
						
							
							
								
								Avoid incorrect deprecated pixel format warning.  
							
							Should only be printed if a "JPEG" format was used,
not for e.g. XYZ.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2b677ffca5 
								
							
								 
							
						 
						
							
							
								
								swscale: Add av_cold attributes to init functions missing them  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6d4e68755 
								
							
								 
							
						 
						
							
							
								
								lavu: add planar 16 bit and 8 bit rgb with alpha  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						12 years ago