[FFmpeg-devel] [PATCH] Add 'drawgrid' video filter

Michael Niedermayer michaelni at gmx.at
Mon May 13 20:50:25 CEST 2013


On Mon, May 13, 2013 at 08:19:54PM +0200, Clément Bœsch wrote:
> On Mon, May 13, 2013 at 08:15:54PM +0200, Michael Niedermayer wrote:
> > On Mon, May 13, 2013 at 03:13:43PM +0300, Andrey Utkin wrote:
> > > ---
> > >  doc/filters.texi          |  39 +++++++++
> > >  libavfilter/Makefile      |   1 +
> > >  libavfilter/allfilters.c  |   1 +
> > >  libavfilter/vf_drawgrid.c | 206 ++++++++++++++++++++++++++++++++++++++++++++++
> > >  4 files changed, 247 insertions(+)
> > >  create mode 100644 libavfilter/vf_drawgrid.c
> > [...]
> > > +AVFilter avfilter_vf_drawgrid = {
> > > +    .name          = "drawgrid",
> > > +    .description   = NULL_IF_CONFIG_SMALL("Draw a colored grid on the input video."),
> > > +    .priv_size     = sizeof(DrawGridContext),
> > > +    .priv_class    = &drawgrid_class,
> > > +    .init          = init,
> > > +    .query_formats = query_formats,
> > > +    .inputs        = avfilter_vf_drawgrid_inputs,
> > > +    .outputs       = avfilter_vf_drawgrid_outputs,
> > > +    .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE,
> > > +};
> > 
> > This causes:
> > 
> > Assertion (filter->flags & ((1 << 16) | (1 << 17))) != ((1 << 16) | (1 << 17)) failed at libavfilter/avfilter.c:457
> > 
> 
> I guess it was a good idea to add this check :)

or a bad idea to add 2 flags

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130513/1a072acf/attachment.asc>


More information about the ffmpeg-devel mailing list