Andreas Rheinhardt 
							
						 
					 
					
						
						
						
						
							
						
						
							18ec426a86 
							
						 
					 
					
						
						
							
							avfilter/formats: Factor common function combinations out  
						
						... 
						
						
						
						Several combinations of functions happen quite often in query_format
functions; e.g. ff_set_common_formats(ctx, ff_make_format_list(sample_fmts))
is very common. This commit therefore adds functions that are equivalent
to commonly used function combinations in order to reduce code
duplication.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> 
						
						
					 
					
						2021-08-13 17:36:22 +02:00 
						 
				 
			
				
					
						
							
							
								James Almer 
							
						 
					 
					
						
						
						
						
							
						
						
							83946906fb 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: add a return at the end of non-void functions  
						
						... 
						
						
						
						Fixes compilation with GCC 11 when configured with --disable-optimizations
Signed-off-by: James Almer <jamrial@gmail.com> 
						
						
					 
					
						2021-08-06 21:22:49 -03:00 
						 
				 
			
				
					
						
							
							
								Andreas Rheinhardt 
							
						 
					 
					
						
						
						
						
							
						
						
							a04ad248a0 
							
						 
					 
					
						
						
							
							avfilter: Constify all AVFilters  
						
						... 
						
						
						
						This is possible now that the next-API is gone.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com> 
						
						
					 
					
						2021-04-27 11:48:05 -03:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							41ddb27597 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: add missing break  
						
						
						
						
					 
					
						2021-01-17 15:56:31 +01:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							294854bd0a 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: add complement mode to rgbtestsrc  
						
						
						
						
					 
					
						2021-01-16 23:54:21 +01:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							79f2bca59c 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: add planar support to rgbtestsrc  
						
						
						
						
					 
					
						2021-01-16 23:54:21 +01:00 
						 
				 
			
				
					
						
							
							
								Andreas Rheinhardt 
							
						 
					 
					
						
						
						
						
							
						
						
							482aeda8bf 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: Deduplicate options  
						
						... 
						
						
						
						Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> 
						
						
					 
					
						2021-01-08 06:08:03 +01:00 
						 
				 
			
				
					
						
							
							
								Nicolas George 
							
						 
					 
					
						
						
						
						
							
						
						
							ddba05afe4 
							
						 
					 
					
						
						
							
							lavfi/vsrc_testsrc: switch to activate.  
						
						... 
						
						
						
						Allow to set the EOF timestamp.
Also: doc/filters/testsrc*: specify the rounding of the duration option.
The changes in the ref files are right.
For filter-fps-down, the graph is testsrc2=r=7:d=3.5,fps=3.
3.5=24.5/7, so the EOF of testsrc2 will have PTS 25/7.
25/7=(10+5/7)/3, so the EOF PTS for fps should be 11/7,
and the output should contain a frame at PTS 10.
For filter-fps-up, the graph is testsrc2=r=3:d=2,fps=7,
for filter-fps-up-round-down and filter-fps-up-round-up
it is the same with explicit rounding options.
But there is no rounding: testsrc2 produces exactly 6 frames
and 2 seconds, fps converts it into exactly 14 frames.
The tests should probably be adjusted to restore them to
a useful coverage. 
						
						
					 
					
						2020-09-08 14:39:43 +02:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							d64cbd4fda 
							
						 
					 
					
						
						
							
							remove CHAR_MIN/CHAR_MAX usage  
						
						... 
						
						
						
						It is not needed at all. 
						
						
					 
					
						2020-03-17 22:46:36 +01:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							09fd1b18f0 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: simplify color filter commands parsing  
						
						
						
						
					 
					
						2019-11-21 17:32:04 +01:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							4447aeaac2 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: increase max level of haldclutsrc  
						
						... 
						
						
						
						So it matches lut3d and haldclut filter. 
						
						
					 
					
						2019-10-26 10:32:20 +02:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							b20dee813a 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: rgbtestsrc: fix undefined behaviour  
						
						... 
						
						
						
						Fixes  #8238  
					
						2019-10-16 12:37:05 +02:00 
						 
				 
			
				
					
						
							
							
								James Almer 
							
						 
					 
					
						
						
						
						
							
						
						
							79126ce80e 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: fix a preprocessor check  
						
						... 
						
						
						
						Signed-off-by: James Almer <jamrial@gmail.com> 
						
						
					 
					
						2018-05-18 17:42:57 -03:00 
						 
				 
			
				
					
						
							
							
								Tobias Rapp 
							
						 
					 
					
						
						
						
						
							
						
						
							eb28b5ec8a 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: add pal75bars and pal100bars video filter sources  
						
						... 
						
						
						
						Generates color bar test patterns based on EBU PAL recommendations.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com> 
						
						
					 
					
						2018-05-18 15:39:54 +02:00 
						 
				 
			
				
					
						
							
							
								Nicolas George 
							
						 
					 
					
						
						
						
						
							
						
						
							a8305b0ea3 
							
						 
					 
					
						
						
							
							lavfi/testsrc2: fix hang with very small sizes.  
						
						... 
						
						
						
						Move a subtraction to the other side of the equal to avoid overflows. 
						
						
					 
					
						2017-10-31 09:17:28 +01:00 
						 
				 
			
				
					
						
							
							
								Nicolas George 
							
						 
					 
					
						
						
						
						
							
						
						
							bbc7cfbf1e 
							
						 
					 
					
						
						
							
							lavfi/testsrc2: fix completely transparent alpha.  
						
						
						
						
					 
					
						2017-07-25 09:27:35 +02:00 
						 
				 
			
				
					
						
							
							
								Muhammad Faiz 
							
						 
					 
					
						
						
						
						
							
						
						
							6af050d7d0 
							
						 
					 
					
						
						
							
							avfilter: do not use AVFrame accessor  
						
						... 
						
						
						
						Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com> 
						
						
					 
					
						2017-04-23 14:40:30 +07:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							745f4bcc2c 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: draw_bar: make sure width is not negative  
						
						... 
						
						
						
						Reported-by: Josh de Kock
Signed-off-by: Paul B Mahol <onemda@gmail.com> 
						
						
					 
					
						2016-12-15 16:03:48 +01:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							feb2ea6e09 
							
						 
					 
					
						
						
							
							avfilter: add yuvtestsrc source filter  
						
						
						
						
					 
					
						2016-08-25 11:16:09 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
						
						
							
						
						
							f2c8b666be 
							
						 
					 
					
						
						
							
							avfilter: Fix max value of AV_OPT_TYPE_VIDEO_RATE  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
						
						
					 
					
						2016-06-09 10:35:13 +02:00 
						 
				 
			
				
					
						
							
							
								Ganesh Ajjanagadde 
							
						 
					 
					
						
						
						
						
							
						
						
							db1a642cd2 
							
						 
					 
					
						
						
							
							all: move ff_exp10, ff_exp10f, ff_fast_powf to lavu/ffmath.h  
						
						... 
						
						
						
						The idea is to use ffmath.h for internal implementations of math functions.
Currently, it is used for variants of libm functions, but is by no means
limited to such things.
Note that this is not exported; use lavu/mathematics for such purposes.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com> 
						
						
					 
					
						2016-03-22 10:15:31 -07:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							a61cd42c8d 
							
						 
					 
					
						
						
							
							avfilter/smptebars: fix some 75% color values  
						
						... 
						
						
						
						They where slightly off.
Signed-off-by: Paul B Mahol <onemda@gmail.com> 
						
						
					 
					
						2016-03-12 23:52:14 +01:00 
						 
				 
			
				
					
						
							
							
								Derek Buitenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							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> 
						
						
					 
					
						2016-01-27 16:36:46 +00:00 
						 
				 
			
				
					
						
							
							
								Ganesh Ajjanagadde 
							
						 
					 
					
						
						
						
						
							
						
						
							86aa2e9f76 
							
						 
					 
					
						
						
							
							lavfi/vsrc_testsrc: replace pow(10,x) by ff_exp10(x)  
						
						... 
						
						
						
						Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> 
						
						
					 
					
						2015-12-25 10:48:18 -08:00 
						 
				 
			
				
					
						
							
							
								Nicolas George 
							
						 
					 
					
						
						
						
						
							
						
						
							b16e569312 
							
						 
					 
					
						
						
							
							lavfi: add testsrc2 test source.  
						
						... 
						
						
						
						Similar to testsrc, but using drawutils and therefore
supporting a lot of pixel formats instead of just rgb24.
This allows using it as input for other tests without
requiring a format conversion.
It is also slightly faster than testsrc for some reason. 
						
						
					 
					
						2015-11-07 16:02:48 +01:00 
						 
				 
			
				
					
						
							
							
								Clément Bœsch 
							
						 
					 
					
						
						
						
						
							
						
						
							b48d8fa3ac 
							
						 
					 
					
						
						
							
							avfilter: add allrgb  
						
						... 
						
						
						
						Signed-off-by: Nicolas George <george@nsup.org>
Signed-off-by: Clément Bœsch <u@pkh.me> 
						
						
					 
					
						2015-08-29 14:57:52 +02:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							f0708b751f 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: correct colors for smptebars  
						
						
						
						
					 
					
						2015-08-11 16:19:41 +02:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							7a7ca3cc2f 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: smpte(hd)bars: fix uninitialized last rows and columns of chroma planes  
						
						... 
						
						
						
						For cases width and/or height is not multiple of chroma subsamplings. 
						
						
					 
					
						2015-08-10 11:29:39 +02:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							49a14a7616 
							
						 
					 
					
						
						
							
							avfilter: add allyuv source filter  
						
						... 
						
						
						
						Signed-off-by: Paul B Mahol <onemda@gmail.com> 
						
						
					 
					
						2015-08-02 14:13:59 +02:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							a0854c084e 
							
						 
					 
					
						
						
							
							avfilter: handle error in query_formats() in bunch of filters  
						
						... 
						
						
						
						Signed-off-by: Paul B Mahol <onemda@gmail.com> 
						
						
					 
					
						2015-04-08 13:05:06 +00:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
						
						
							
						
						
							74a8dbe1c4 
							
						 
					 
					
						
						
							
							Merge commit '58400ac133bcfb6bf8196b4e5208bc178307739b'  
						
						... 
						
						
						
						* commit '58400ac133bcfb6bf8196b4e5208bc178307739b':
  lavfi: name anonymous structs
Conflicts:
	libavfilter/buffersink.c
	libavfilter/f_select.c
	libavfilter/src_movie.c
	libavfilter/vf_drawbox.c
	libavfilter/vf_drawtext.c
	libavfilter/vf_overlay.c
	libavfilter/vf_showinfo.c
	libavfilter/vf_unsharp.c
Merged-by: Michael Niedermayer <michaelni@gmx.at> 
						
						
					 
					
						2014-04-19 18:20:17 +02:00 
						 
				 
			
				
					
						
							
							
								Vittorio Giovara 
							
						 
					 
					
						
						
						
						
							
						
						
							58400ac133 
							
						 
					 
					
						
						
							
							lavfi: name anonymous structs  
						
						
						
						
					 
					
						2014-04-19 16:20:57 +02:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
						
						
							
						
						
							325f6e0a97 
							
						 
					 
					
						
						
							
							Merge remote-tracking branch 'qatar/master'  
						
						... 
						
						
						
						* qatar/master:
  lavfi: do not export the filters from shared objects
Conflicts:
	libavfilter/af_amix.c
	libavfilter/af_anull.c
	libavfilter/asrc_anullsrc.c
	libavfilter/f_select.c
	libavfilter/f_settb.c
	libavfilter/split.c
	libavfilter/src_movie.c
	libavfilter/vf_aspect.c
	libavfilter/vf_blackframe.c
	libavfilter/vf_colorbalance.c
	libavfilter/vf_copy.c
	libavfilter/vf_crop.c
	libavfilter/vf_cropdetect.c
	libavfilter/vf_drawbox.c
	libavfilter/vf_format.c
	libavfilter/vf_framestep.c
	libavfilter/vf_frei0r.c
	libavfilter/vf_hflip.c
	libavfilter/vf_libopencv.c
	libavfilter/vf_lut.c
	libavfilter/vf_null.c
	libavfilter/vf_overlay.c
	libavfilter/vf_scale.c
	libavfilter/vf_transpose.c
	libavfilter/vf_unsharp.c
	libavfilter/vf_vflip.c
Merged-by: Michael Niedermayer <michaelni@gmx.at> 
						
						
					 
					
						2013-10-29 11:58:11 +01:00 
						 
				 
			
				
					
						
							
							
								Anton Khirnov 
							
						 
					 
					
						
						
						
						
							
						
						
							cd43ca0443 
							
						 
					 
					
						
						
							
							lavfi: do not export the filters from shared objects  
						
						
						
						
					 
					
						2013-10-28 15:29:54 +01:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							cfc9a4c732 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: smpte(hd)bars: use yuv directly  
						
						... 
						
						
						
						Also set color space.
Signed-off-by: Paul B Mahol <onemda@gmail.com> 
						
						
					 
					
						2013-10-12 18:40:15 +00:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							b211607b5c 
							
						 
					 
					
						
						
							
							avfilter: various cosmetics  
						
						... 
						
						
						
						Signed-off-by: Paul B Mahol <onemda@gmail.com> 
						
						
					 
					
						2013-09-12 14:01:43 +00:00 
						 
				 
			
				
					
						
							
							
								Michael Niedermayer 
							
						 
					 
					
						
						
						
						
							
						
						
							8a7aabe80b 
							
						 
					 
					
						
						
							
							avfilter/vsrc_testsrc: fix artifacts with odd height  
						
						... 
						
						
						
						Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
						
						
					 
					
						2013-06-24 23:21:17 +02:00 
						 
				 
			
				
					
						
							
							
								Clément Bœsch 
							
						 
					 
					
						
						
						
						
							
						
						
							160ea26560 
							
						 
					 
					
						
						
							
							lavfi/haldclutsrc: 10l remove size options.  
						
						
						
						
					 
					
						2013-05-27 20:53:25 +02:00 
						 
				 
			
				
					
						
							
							
								Clément Bœsch 
							
						 
					 
					
						
						
						
						
							
						
						
							3cec29cf59 
							
						 
					 
					
						
						
							
							lavfi: add haldclutsrc filter.  
						
						
						
						
					 
					
						2013-05-27 20:32:28 +02:00 
						 
				 
			
				
					
						
							
							
								Clément Bœsch 
							
						 
					 
					
						
						
						
						
							
						
						
							a0a41db339 
							
						 
					 
					
						
						
							
							lavfi/testsrc: make nb_decimals available only in testsrc.  
						
						
						
						
					 
					
						2013-05-23 17:22:05 +02:00 
						 
				 
			
				
					
						
							
							
								Clément Bœsch 
							
						 
					 
					
						
						
						
						
							
						
						
							288f916643 
							
						 
					 
					
						
						
							
							lavfi/testsrc: move color options to the color scope filter definition.  
						
						
						
						
					 
					
						2013-05-23 17:22:05 +02:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							05b7560d39 
							
						 
					 
					
						
						
							
							lavfi/color: switch to AV_OPT_TYPE_COLOR  
						
						... 
						
						
						
						Signed-off-by: Paul B Mahol <onemda@gmail.com> 
						
						
					 
					
						2013-05-17 11:32:54 +00:00 
						 
				 
			
				
					
						
							
							
								Stefano Sabatini 
							
						 
					 
					
						
						
						
						
							
						
						
							f51aa92b0f 
							
						 
					 
					
						
						
							
							lavfi/testsrc: add support for color interactive command  
						
						
						
						
					 
					
						2013-05-03 18:37:54 +02:00 
						 
				 
			
				
					
						
							
							
								Stefano Sabatini 
							
						 
					 
					
						
						
						
						
							
						
						
							3933963d7b 
							
						 
					 
					
						
						
							
							lavfi/testsrc: fix style  
						
						
						
						
					 
					
						2013-04-17 22:39:44 +02:00 
						 
				 
			
				
					
						
							
							
								Stefano Sabatini 
							
						 
					 
					
						
						
						
						
							
						
						
							7ab6312610 
							
						 
					 
					
						
						
							
							lavfi/testsrc: use int in place of unsigned  
						
						... 
						
						
						
						Avoid implicit int->unsigned conversion, causing invalid access in case
of negative linesize.
Fix crash with:
ffplay -f lavfi testsrc,vflip 
						
						
					 
					
						2013-04-17 22:39:34 +02:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							6ffe911302 
							
						 
					 
					
						
						
							
							lavfi/testsrc: unbreak smptebars only build  
						
						... 
						
						
						
						Signed-off-by: Paul B Mahol <onemda@gmail.com> 
						
						
					 
					
						2013-04-14 21:13:39 +00:00 
						 
				 
			
				
					
						
							
							
								Clément Bœsch 
							
						 
					 
					
						
						
						
						
							
						
						
							f359be96ca 
							
						 
					 
					
						
						
							
							lavfi/smptehdbars: fix priv_class pointer.  
						
						... 
						
						
						
						Fix Ticket2468. 
						
						
					 
					
						2013-04-14 10:32:35 +02:00 
						 
				 
			
				
					
						
							
							
								Clément Bœsch 
							
						 
					 
					
						
						
						
						
							
						
						
							d9be6e69cf 
							
						 
					 
					
						
						
							
							lavfi/testsrc: grammar fix in comment after 03e2ec32.  
						
						
						
						
					 
					
						2013-04-14 03:27:48 +02:00 
						 
				 
			
				
					
						
							
							
								Paul B Mahol 
							
						 
					 
					
						
						
						
						
							
						
						
							03e2ec32b8 
							
						 
					 
					
						
						
							
							lavfi: add smptehdbars source  
						
						... 
						
						
						
						Signed-off-by: Paul B Mahol <onemda@gmail.com> 
						
						
					 
					
						2013-04-14 00:25:09 +00:00 
						 
				 
			
				
					
						
							
							
								Stefano Sabatini 
							
						 
					 
					
						
						
						
						
							
						
						
							87dd62e141 
							
						 
					 
					
						
						
							
							lavfi/testsrc: make use of AV_OPT_TYPE_DURATION  
						
						... 
						
						
						
						Simplify. 
						
						
					 
					
						2013-04-13 14:09:16 +02:00