On Mon, Aug 31, 2015 at 03:29:03PM +0200, Clément Bœsch wrote: > From: Clément Bœsch <clem...@stupeflix.com> > > --- > I'm not sure I'm doing the correct thing here, but maybe that's just because > my > samples aren't relevant. > > TODO: doc > --- > libavfilter/vf_codecview.c | 43 ++++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 42 insertions(+), 1 deletion(-) > > diff --git a/libavfilter/vf_codecview.c b/libavfilter/vf_codecview.c > index df45f55..5e1334e 100644 > --- a/libavfilter/vf_codecview.c > +++ b/libavfilter/vf_codecview.c > @@ -27,7 +27,6 @@ > * libavcodec/mpegvideo.c. > * > * TODO: segmentation > - * TODO: quantization > */ > > #include "libavutil/imgutils.h" > @@ -43,11 +42,14 @@ > typedef struct { > const AVClass *class; > unsigned mv; > + int hsub, vsub; > + int qp; > } CodecViewContext; > > #define OFFSET(x) offsetof(CodecViewContext, x) > #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM > static const AVOption codecview_options[] = { > + { "qp", NULL, OFFSET(qp), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, .flags = > FLAGS }, > { "mv", "set motion vectors to visualize", OFFSET(mv), > AV_OPT_TYPE_FLAGS, {.i64=0}, 0, INT_MAX, FLAGS, "mv" },
this breaks API, the order of options matters like for -vf codecview=7 [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel