[MPlayer-dev-eng] stereo3d filter
Endre Kollár
taxy443 at gmail.com
Sun Oct 17 21:09:46 CEST 2010
From: Reimar Döffinger <Reimar.Doeffinger <at> gmx.de>
> On Mon, Feb 01, 2010 at 05:19:21PM +0100, Gordon Schmidt wrote:
> > + if (args) {
> > + char *arg;
> > + //input code
> > + arg = strtok(args, ": \0\n");
> > + vf->priv->in.fmt = get_arg(arg);
> > + //output code
> > + arg = strtok(NULL, ": \0\n");
> > + vf->priv->out.fmt = get_arg(arg);
> > + }
>
> Look at e.g. vf_scale.c and there the vf_opts_fields
> for how to reuse the parsing code MPlayer already has.
> Actually vf_format is probably the simples example,
> it contains almost no other code.
> By adding m_struct_t to vf_info_t you also don't need
> to alloc and initialize vf->priv manually
I can not find adequate CONF_TYPE_ type in the m_option_t structure.
CONF_TYPE_INT:
We want to get a string.
CONF_TYPE_STRING:
No filter use this.There is no example. The pp filter neither.
CONF_TYPE_OBJ_PRESETS:
so we can not get a list of parameters same form.
CONF_TYPE_IMGFMT:
We want to get a string.
More information about the MPlayer-dev-eng
mailing list