bb789016d4 
								
							
								 
							
						 
						
							
							
								
								swscale: Undeprecate sws_getContext()  
							
							sws_getCachedContext is not a full replacement for the function. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f84a1b597c 
								
							
								 
							
						 
						
							
							
								
								swscale: support AV_PIX_FMT_YA16 as input  
							
							Based on a long debug session with Kostya. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e96c3b81ca 
								
							
								 
							
						 
						
							
							
								
								avutil: rename AV_PIX_FMT_Y400A to AV_PIX_FMT_YA8  
							
							The rationale is that you have a packed format in form
<greyscale sample> <alpha sample> <greyscale sample> <alpha sample>
and shortening greyscale to 'G' might make one thing about Greenscale instead.
An alias pixel format and color space name are provided for compatibility. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b53bdae11f 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: fix rgb -> fullrange yuv  
							
							Fixes part of Ticket3785
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d84abf35c0 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: remove unused define  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6532a1a828 
								
							
								 
							
						 
						
							
							
								
								sws/x86: split mmxext fast bilinear scaler out  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a4bd4733c0 
								
							
								 
							
						 
						
							
							
								
								swscale: Allow the max filter size to be set at compile time  
							
							This can help "extreme" resizes, e.g with some 4k stuff.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ce4d91ba2a 
								
							
								 
							
						 
						
							
							
								
								sws: document color range >8bit oddity  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3417ed7fd 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: Add check that ensures that the hardcoded struct offsets are valid  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								656fe7ecce 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: use FF_ALLOC(Z)_ARRAY_OR_GOTO() and av_malloc(z)_array()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3a177a9cca 
								
							
								 
							
						 
						
							
							
								
								swscale: Fix an undefined behaviour  
							
							Prevent a division by zero down the codepath.
Sample-Id: 00001721-google
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4959a4fcf7 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: fix changing src/dst range after initializing the context  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fa98885be4 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: move handling of unscaled case to the end of init function  
							
							This way all context fields get initialized and can be used without needing to reinit the context
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1752b1459d 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: scale filter_size in warning so that it can be used as max for the compile time define  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7b2b06eb43 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: dont print message about filter size when the cause is a malloc failure  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								92b099daf4 
								
							
								 
							
						 
						
							
							
								
								swscale: support converting YVYU422 pixel format  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								37f69cd93e 
								
							
								 
							
						 
						
							
							
								
								swscale: add full bgra64 support  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0ca0924c10 
								
							
								 
							
						 
						
							
							
								
								swscale: add endianness conversion for AV_PIX_FMT_BGRA64|RGBA64  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6fe804bdd 
								
							
								 
							
						 
						
							
							
								
								Do not set swscale sizeFactor to -1.  
							
							Fixes ticket #3495 . 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3e6016622e 
								
							
								 
							
						 
						
							
							
								
								swscale: add two spatially stable dithering methods  
							
							Both of these dithering methods are from http://pippin.gimp.org/a_dither/  for
GIF they can be considered better than bayer (provides more gray-levels), and
spatial stability - often more than twice as good compression and less visual
flicker than error diffusion methods (the methods also avoids error-shadow
artifacts of diffusion dithers).
These methods are similar to blue/green noise type dither masks; but are
simple enough to generate their mask on the fly. They are still research work
in progress; though more expensive to generate masks (which can be used in a
LUT) like 'void and cluster' and similar methods will yield superior results 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								37c07d4529 
								
							
								 
							
						 
						
							
							
								
								swscale/utils: Fix color range of gray16  
							
							Improves rgb -> gray16 conversion
Fixes Ticket3422
The pam and png output files look visually similar, in both cases the
dynamics increase to 0x0 -> 0xfffb.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1481d24c3a 
								
							
								 
							
						 
						
							
							
								
								RGBA64 pixel formats  
							
							Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								02b63246cf 
								
							
								 
							
						 
						
							
							
								
								libswscale: bayer to rgb24 & yv12 colorspace converters  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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