[FFmpeg-devel] [PATCH] avfilter: add allyuv source filter
Michael Niedermayer
michael at niedermayer.cc
Thu Jul 23 22:14:34 CEST 2015
On Thu, Jul 23, 2015 at 07:07:26AM +0000, Paul B Mahol wrote:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>
> Feel free to propose better idea how to sort colors.
>
> ---
> doc/filters.texi | 5 ++-
> libavfilter/Makefile | 1 +
> libavfilter/allfilters.c | 1 +
> libavfilter/vsrc_testsrc.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 87 insertions(+), 1 deletion(-)
>
> diff --git a/doc/filters.texi b/doc/filters.texi
> index 1035e92..7fdcb83 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -11357,6 +11357,7 @@ ffplay -f lavfi life=s=300x200:mold=10:r=60:ratio=0.1:death_color=#C83232:life_c
> @end example
> @end itemize
>
> + at anchor{allyuv}
> @anchor{color}
> @anchor{haldclutsrc}
> @anchor{nullsrc}
> @@ -11364,7 +11365,9 @@ ffplay -f lavfi life=s=300x200:mold=10:r=60:ratio=0.1:death_color=#C83232:life_c
> @anchor{smptebars}
> @anchor{smptehdbars}
> @anchor{testsrc}
> - at section color, haldclutsrc, nullsrc, rgbtestsrc, smptebars, smptehdbars, testsrc
> + at section allyuv, color, haldclutsrc, nullsrc, rgbtestsrc, smptebars, smptehdbars, testsrc
> +
> +The @code{allyuv} source returns frames of size 4096x4096 of all yuv colors.
>
> The @code{color} source provides an uniformly colored input.
>
> diff --git a/libavfilter/Makefile b/libavfilter/Makefile
> index db86d57..372658b 100644
> --- a/libavfilter/Makefile
> +++ b/libavfilter/Makefile
> @@ -231,6 +231,7 @@ OBJS-$(CONFIG_YADIF_FILTER) += vf_yadif.o
> OBJS-$(CONFIG_ZMQ_FILTER) += f_zmq.o
> OBJS-$(CONFIG_ZOOMPAN_FILTER) += vf_zoompan.o
>
> +OBJS-$(CONFIG_ALLYUV_FILTER) += vsrc_testsrc.o
> OBJS-$(CONFIG_CELLAUTO_FILTER) += vsrc_cellauto.o
> OBJS-$(CONFIG_COLOR_FILTER) += vsrc_testsrc.o
> OBJS-$(CONFIG_FREI0R_SRC_FILTER) += vf_frei0r.o
> diff --git a/libavfilter/allfilters.c b/libavfilter/allfilters.c
> index 939eaff..f5853d9 100644
> --- a/libavfilter/allfilters.c
> +++ b/libavfilter/allfilters.c
> @@ -246,6 +246,7 @@ void avfilter_register_all(void)
> REGISTER_FILTER(ZMQ, zmq, vf);
> REGISTER_FILTER(ZOOMPAN, zoompan, vf);
>
> + REGISTER_FILTER(ALLYUV, allyuv, vsrc);
> REGISTER_FILTER(CELLAUTO, cellauto, vsrc);
> REGISTER_FILTER(COLOR, color, vsrc);
> REGISTER_FILTER(FREI0R, frei0r_src, vsrc);
> diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
> index 7f981ba..591179b 100644
> --- a/libavfilter/vsrc_testsrc.c
> +++ b/libavfilter/vsrc_testsrc.c
> @@ -1080,3 +1080,84 @@ AVFilter ff_vsrc_smptehdbars = {
>
> #endif /* CONFIG_SMPTEHDBARS_FILTER */
> #endif /* CONFIG_SMPTEBARS_FILTER || CONFIG_SMPTEHDBARS_FILTER */
> +
> +#if CONFIG_CELLAUTO_FILTER
CONFIG_ALLYUV_FILTER
otherwise should be ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150723/7da94ec2/attachment.sig>
More information about the ffmpeg-devel
mailing list