710ab13693 
								
							
								 
							
						 
						
							
							
								
								avfilter/vf_unsharp: Don't dereference NULL  
							
							The unsharp filter uses an array of arrays of uint32_t, each of which is
separately allocated. These arrays also need to freed separately; but
before doing so, one needs to check whether the array of arrays has
actually been allocated, otherwise one would dereference a NULL pointer.
This fixes  #8408 .
Furthermore, the array of arrays needs to be zero-initialized so that
no uninitialized pointer will be freed in case an allocation of one of
the individual arrays fails.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7a477c4b63 
								
							
								 
							
						 
						
							
							
								
								avfilter/vf_unsharp: rename config_props -> config_input, link -> inlink  
							
							Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								94ceeba9f9 
								
							
								 
							
						 
						
							
							
								
								avfilter/vf_unsharp: enable slice threading  
							
							benchmarking with a simple command:
ffmpeg -i 1080p.mp4 -vf unsharp=la=3:ca=3 -an -f null /dev/null
with the patch, the fps increase from 50 to 120 on my local machine (i7-6770HQ).
Signed-off-by: Ruiling Song <ruiling.song@intel.com> 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3650cb2dfa 
								
							
								 
							
						 
						
							
							
								
								lavu,lavfi,ffmpeg: Remove experimental OpenCL API  
							
							This was added in early 2013 and abandoned several months later; as far as
I can tell, there are no external users.  Future OpenCL use will be via
hwcontext, which requires neither special OpenCL-only API nor global state
in libavutil.
All internal users are also deleted - this is just the unsharp filter
(replaced by unsharp_opencl, which is more flexible) and the deshake filter
(no replacement). 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c347b28699 
								
							
								 
							
						 
						
							
							
								
								avfilter/vf_unsharp: Free out AVFrame on error  
							
							Fixes memleak
Fixes part of CID1197065
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4096bb176b 
								
							
								 
							
						 
						
							
							
								
								avfilter/vf_unsharp: limit matrix size in either direction to 23  
							
							Anything bigger is not supported anyway.
Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d790887d1c 
								
							
								 
							
						 
						
							
							
								
								avfilter/vf_unsharp: check if scalebits is too high  
							
							Otherwise filter would happily give overflows and produce useless output.
Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								21f9468402 
								
							
								 
							
						 
						
							
							
								
								avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT  
							
							Libav, for some reason, merged this as a public API function. This will
aid in future merges.
A define is left for backwards compat, just in case some person
used it, since it is in a public header.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4709f72115 
								
							
								 
							
						 
						
							
							
								
								lavfi: Use AV_CEIL_RSHIFT where needed  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b0431383cb 
								
							
								 
							
						 
						
							
							
								
								avfilter/unsharp: use AV_OPT_TYPE_BOOL for opencl option  
							
							
								
							
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								78995dc241 
								
							
								 
							
						 
						
							
							
								
								avfilter/vf_unsharp: use the name 's' for the pointer to the private context  
							
							Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a0854c084e 
								
							
								 
							
						 
						
							
							
								
								avfilter: handle error in query_formats() in bunch of filters  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								498396f80c 
								
							
								 
							
						 
						
							
							
								
								avfilter/vf_unsharp: use av_freep() avoid leaving stale pointers in memory  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								263aeb826d 
								
							
								 
							
						 
						
							
							
								
								avfilter/vf_unsharp: use av_malloc_array()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								58400ac133 
								
							
								 
							
						 
						
							
							
								
								lavfi: name anonymous structs  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cd43ca0443 
								
							
								 
							
						 
						
							
							
								
								lavfi: do not export the filters from shared objects  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b211607b5c 
								
							
								 
							
						 
						
							
							
								
								avfilter: various cosmetics  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								afec02afe7 
								
							
								 
							
						 
						
							
							
								
								lavfi/unsharp: remove unused float.h include.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								faceb0af0a 
								
							
								 
							
						 
						
							
							
								
								lavfi/unsharp: use av_image_copy_plane().  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1776177b7f 
								
							
								 
							
						 
						
							
							
								
								lavfi: replace passthrough_filter_frame with a flag.  
							
							With the introduction of AVFilterContext->is_disabled, we can simplify
the custom passthrough mode in filters.
This commit is technically a small compat break, but the timeline was
introduced very recently.
Doxy by Stefano Sabatini. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4db84bac13 
								
							
								 
							
						 
						
							
							
								
								lavfi/opencl: replace SHIFTUP with FF_CEIL_RSHIFT.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ae0ce99ca4 
								
							
								 
							
						 
						
							
							
								
								lavfi/unsharp: use verbal form in help message options  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cd134963e8 
								
							
								 
							
						 
						
							
							
								
								lavfi/unsharp: add opencl unsharp filter  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fdd93eabfb 
								
							
								 
							
						 
						
							
							
								
								lavfi: add timeline support.  
							
							Flag added in a few simple filters. A bunch of other filters can likely
use the feature as well. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d69a4177b9 
								
							
								 
							
						 
						
							
							
								
								lavfi: remove now unused args parameter from AVFilter.init  
							
							Conflicts:
	libavfilter/avfilter.c
	libavfilter/vf_drawtext.c
	libavfilter/vf_lut.c
	libavfilter/vf_select.c
	libavfilter/vf_setpts.c
	libavfilter/vsrc_color.c
	libavfilter/vsrc_movie.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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