[FFmpeg-devel] [PATCH] lavfi: Port mp=pp7 to libavfilter

Stefano Sabatini stefasab at gmail.com
Sat Dec 27 16:21:55 CET 2014


On date Saturday 2014-12-27 18:07:53 +0530, arwa arif encoded:
> >
> >
> > > ...]
> > > > +static int query_formats(AVFilterContext *ctx)
> > > > +{
> > > > +    static const enum PixelFormat pix_fmts[] = {
> > > > +        AV_PIX_FMT_YUV444P,  AV_PIX_FMT_YUV422P,
> > > > +        AV_PIX_FMT_YUV420P,  AV_PIX_FMT_YUV411P,
> > > > +        AV_PIX_FMT_YUV410P,  AV_PIX_FMT_YUV440P,
> > > > +        AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ422P,
> > > > +        AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ440P,
> > > > +        AV_PIX_FMT_NONE
> > > > +    };
> > > > +    ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
> > > > +    return 0;
> > > > +}
> > >
> > > Check that these are supported. Also the original is supporting some
> > > more formats (for example GRAY8 == Y8).
> > >
> > > How do I check it?
> >
> > make libavfilter/filtfmts-test
> > libavfilter/filtfmts-test mp pp7
> >
> 
> I am getting this as output:
> 
> INPUT[0] default: fmt:yuv444p
> INPUT[0] default: fmt:yuv422p
> INPUT[0] default: fmt:yuv420p
> INPUT[0] default: fmt:yuv411p
> INPUT[0] default: fmt:yuv410p
> INPUT[0] default: fmt:yuv440p
> INPUT[0] default: fmt:yuvj444p
> INPUT[0] default: fmt:yuvj422p
> INPUT[0] default: fmt:yuvj420p
> INPUT[0] default: fmt:yuvj440p
> OUTPUT[0] default: fmt:yuv444p
> OUTPUT[0] default: fmt:yuv422p
> OUTPUT[0] default: fmt:yuv420p
> OUTPUT[0] default: fmt:yuv411p
> OUTPUT[0] default: fmt:yuv410p
> OUTPUT[0] default: fmt:yuv440p
> OUTPUT[0] default: fmt:yuvj444p
> OUTPUT[0] default: fmt:yuvj422p
> OUTPUT[0] default: fmt:yuvj420p
> OUTPUT[0] default: fmt:yuvj440p

Are you sure? I get this:
libavfilter/filtfmts-test mp pp7
[...]
INPUT[0] default: fmt:gray
INPUT[0] default: fmt:yuv410p
INPUT[0] default: fmt:yuv420p
INPUT[0] default: fmt:yuv411p
INPUT[0] default: fmt:yuv422p
INPUT[0] default: fmt:yuv444p
INPUT[0] default: fmt:yuvj420p
INPUT[0] default: fmt:yuvj422p
INPUT[0] default: fmt:yuvj444p
OUTPUT[0] default: fmt:gray
OUTPUT[0] default: fmt:yuv410p
OUTPUT[0] default: fmt:yuv420p
OUTPUT[0] default: fmt:yuv411p
OUTPUT[0] default: fmt:yuv422p
OUTPUT[0] default: fmt:yuv444p
OUTPUT[0] default: fmt:yuvj420p
OUTPUT[0] default: fmt:yuvj422p
OUTPUT[0] default: fmt:yuvj444p
-- 
FFmpeg = Freak & Funny Minimalistic Political Elfic Glue


More information about the ffmpeg-devel mailing list