c43a7ecad9 
								
							
								 
							
						 
						
							
							
								
								lavfi: remove now unused args parameter from AVFilter.init  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b83e9efc53 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: switch to an AVOptions-based system.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8d4d11cd89 
								
							
								 
							
						 
						
							
							
								
								lavfi/vf_unsharp: use standard options parsing.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								606efe18be 
								
							
								 
							
						 
						
							
							
								
								lavfi/unsharp: add missing option flags  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7e350379f8 
								
							
								 
							
						 
						
							
							
								
								lavfi: switch to AVFrame.  
							
							Deprecate AVFilterBuffer/AVFilterBufferRef and everything related to it
and use AVFrame instead. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								89505f2c3f 
								
							
								 
							
						 
						
							
							
								
								lavfi/unsharp: add missing NULL check  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								64e592eef2 
								
							
								 
							
						 
						
							
							
								
								lavfi/unsharp: merge definition and declaration in init_filter_param()  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d2cadea3f0 
								
							
								 
							
						 
						
							
							
								
								lavfi/unsharp: directly access in-loop variables in apply_unsharp()  
							
							Increase performance, to match mp=unsharp. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ef4c71e8f8 
								
							
								 
							
						 
						
							
							
								
								lavfi/unsharp: add check on matrix x/y size values oddity  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2042cd3769 
								
							
								 
							
						 
						
							
							
								
								lavfi/unsharp: extend range for amount values, to reflect the behavior of mp=unsharp  
							
							Also update the documentation accordingly, and suggest a meaningful range. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fbcc584d3a 
								
							
								 
							
						 
						
							
							
								
								lavfi/unsharp: use named options, and add missing checks on matrix size values  
							
							In particular, avoid out-of-buffer access and crashes with too big
values, and rework documentation accordingly. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7ac3ccc5f2 
								
							
								 
							
						 
						
							
							
								
								lavfi/unsharp: use the same macros used in the original MP filter  
							
							Remove possibly pointless inconsistency with the ported code.
Also specify parameter value ranges consistent with those of the ported
filter. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								185d1f3bfc 
								
							
								 
							
						 
						
							
							
								
								lavfi: declare arrays that never change as static const  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								45eed9b197 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: switch to filter_frame, this filter did not support slices  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								565e4993c6 
								
							
								 
							
						 
						
							
							
								
								lavfi: merge start_frame/draw_slice/end_frame  
							
							Any alleged performance benefits gained from the split are purely
mythological and do not justify added code complexity. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								59ee9f78b0 
								
							
								 
							
						 
						
							
							
								
								lavfi: do not use av_pix_fmt_descriptors directly.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								568c70e79e 
								
							
								 
							
						 
						
							
							
								
								lavfi: convert input/ouput list compound literals to named objects  
							
							A number of compilers, for example those from TI and IBM, choke on
these initialisers.  The current style is also quite ugly.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								716d413c13 
								
							
								 
							
						 
						
							
							
								
								Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d4f89906e3 
								
							
								 
							
						 
						
							
							
								
								lavfi: add error handling to end_frame().  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e9b992d035 
								
							
								 
							
						 
						
							
							
								
								lavfi: add error handling to draw_slice().  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3db407038e 
								
							
								 
							
						 
						
							
							
								
								lavfi: use const for AVFilterPad declarations in all filters.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4c9080a7ef 
								
							
								 
							
						 
						
							
							
								
								lavfi: unref AVFilterLink.out_buf in ff_end_frame().  
							
							This reduces code duplication and prevents stale pointers from remaining
on the link. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								07bad27810 
								
							
								 
							
						 
						
							
							
								
								lavfi: unref AVFilterLink.cur_buf in ff_end_frame().  
							
							This reduces code duplication and prevents stale pointers from remaining
on the link. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1a49a169eb 
								
							
								 
							
						 
						
							
							
								
								lavfi: make filters less verbose.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a5e8c41c28 
								
							
								 
							
						 
						
							
							
								
								lavfi: remove 'opaque' parameter from AVFilter.init()  
							
							It is not used in any filters currently and is inherently evil. If
passing binary data to filters is required in the future, it should be
done with some AVOptions-based system. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9d0bfc5052 
								
							
								 
							
						 
						
							
							
								
								lavfi: make AVFilterPad opaque after two major bumps.  
							
							It will allow adding new fields to it without ABI breaks. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								803391f719 
								
							
								 
							
						 
						
							
							
								
								lavfi: remove request/poll and drawing functions from public API on next bump  
							
							They are only useful inside filters and we don't allow user filters for
now. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b74a1da49d 
								
							
								 
							
						 
						
							
							
								
								lavfi: make formats API private on next bump.  
							
							It is only useful inside filters and we don't allow user filters for
now. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1f068e4450 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: Mark readonly variable as const.  
							
							This fixes the following warning:
libavfilter/vf_unsharp.c:106: warning: initialization discards qualifiers from pointer target type 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5af7daabc4 
								
							
								 
							
						 
						
							
							
								
								Mark AVFilterPad[] compound literals as const.  
							
							GCC 4.6.2 at least still seems to fail to put them in .rodata though,
see also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37303 
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cb3034e0d1 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: Fix false ‘src2’ may be used uninitialized in this function warning.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1ee2014190 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: set default chroma size value to 5x5  
							
							The previous default value 0x0 was not good, since it is not even
valid.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								998e8519ef 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: fix out-of-buffer read  
							
							In apply_unsharp(), when y is >= height, prevent out-of-buffer reading
from src, read from the last buffer line in src2 instead.
The check was implemented in the original unsharp libmpcodecs code and
lost in the port.
This also fixes output discrepancy between the two filters.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1c257dc32d 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: store hsub/vsub in the filter context  
							
							Also drop obfuscating CHROMA_WIDTH/HEIGHT macros.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6d17ba426 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: adopt a more natural order of params in apply_unsharp()  
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								de7b58da3e 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: rename method "unsharpen" to "apply_unsharp"  
							
							More consistent with the original libmpcodecs code, and the name
"unsharpen" was confusing.
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b854c2a709 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: set default chroma size value to 5x5  
							
							The previous default value 0x0 was not good, since it is not even
valid. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								63b61d55f9 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: fix out-of-buffer read  
							
							In apply_unsharp(), when y is >= height, prevent out-of-buffer reading
from src, read from the last buffer line in src2 instead.
The check was implemented in the original unsharp libmpcodecs code and
lost in the port.
This also fixes output discrepancy between the two filters. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ccd85b869d 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: vertically align lines, for better readability  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								09603dcff8 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: store hsub/vsub in the filter context  
							
							Also drop obfuscating CHROMA_WIDTH/HEIGHT macros. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								53e8638205 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: adopt a more natural order of params in apply_unsharp()  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								540181f8e2 
								
							
								 
							
						 
						
							
							
								
								vf_unsharp: rename method "unsharpen" to "apply_unsharp"  
							
							More consistent with the original libmpcodecs code, and the name
"unsharpen" was confusing. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fd2c0a5db2 
								
							
								 
							
						 
						
							
							
								
								lavfi: add layout negotiation fields and helper functions.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e6e7ba0ce3 
								
							
								 
							
						 
						
							
							
								
								Add some forgotten const to function arguments in libavfilter & libavformat.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3fa77bde1b 
								
							
								 
							
						 
						
							
							
								
								In libavfilter, use consistently "Copyright (c)" in the license  
							
							headers.
Originally committed as revision 25838 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6fae8c5443 
								
							
								 
							
						 
						
							
							
								
								Make the validity checks fail only if the corresponding luma or chroma  
							
							values are not zero.
Prevent aborting with the default values.
Originally committed as revision 25471 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								74d127b537 
								
							
								 
							
						 
						
							
							
								
								Add validity checks for the unsharp filter.  
							
							Prevent crash.
Originally committed as revision 25419 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5d4890d73d 
								
							
								 
							
						 
						
							
							
								
								Rename fields:  
							
							AVFilterLink.srcpic    ->  AVFilterLink.src_buf
AVFilterLink.cur_pic   ->  AVFilterLink.cur_buf
AVFilterLink.outpic    ->  AVFilterLink.out_buf
The new names are more generic and more consistent, since the struct
they contain, which was named AVFilterPicRef, has been renamed to
AVFilterBufferRef.
Patch by S.N. Hemanth Meenakshisundaram %smeenaks%ucsd%edu%.
Originally committed as revision 24732 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7fce481a69 
								
							
								 
							
						 
						
							
							
								
								Rename functions and fields:  
							
							avfilter_(un)ref_pic       -> avfilter_(un)ref_buffer
avfilter_copy_picref_props -> avfilter_copy_buffer_ref_props
AVFilterBufferRef.pic      -> AVFilterBufferRef.buffer
They have been renamed to allow sharing with audio.
Patch by S.N. Hemanth Meenakshisundaram $smeenaks$ucsd$edu$.
Originally committed as revision 24731 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago