&vf_info_softpulldown,
&vf_info_softskip,
&vf_info_spp,
+ &vf_info_stereo3d,
&vf_info_swapuv,
&vf_info_telecine,
&vf_info_tile,
noformat
pp
scale
-stereo3d
tfields
vo
yadif
}
mp_image_t* vf_get_image(vf_instance_t* vf, unsigned int outfmt, int mp_imgtype, int mp_imgflag, int w, int h){
- MPContext *m= ((uint8_t*)vf) - offsetof(MPContext, next_vf);
+ MPContext *m= (MPContext*)(((uint8_t*)vf) - offsetof(MPContext, next_vf));
mp_image_t* mpi=NULL;
int w2;
int number = mp_imgtype >> 16;
goto fail;
picref->buf = pic;
- picref->buf->please_use_av_free= av_free;
+ picref->buf->please_use_av_free= (void*)av_free;
if (!(picref->video = av_mallocz(sizeof(AVFilterBufferRefVideoProps))))
goto fail;
char name[256];
int i;
- av_log(ctx, AV_LOG_WARNING,
-"This is a unholy filter, it will be purified by the ffmpeg exorcist team\n"
-"which will change its syntax from dark -vf mp to light -vf.\n"
-"Thou shalst not make spells or scripts that depend on it\n");
-
m->avfctx= ctx;
if(!args || 1!=sscanf(args, "%255[^:=]", name)){
return AVERROR(EINVAL);
}
+ av_log(ctx, AV_LOG_WARNING,
+ "'%s' is a wrapped MPlayer filter (libmpcodecs). This filter may be removed\n"
+ "once it has been ported to a native libavfilter.\n", name);
+
memset(&m->vf,0,sizeof(m->vf));
m->vf.info= filters[i];
.priv_size = sizeof(MPContext),
.query_formats = query_formats,
- .inputs = (AVFilterPad[]) {{ .name = "default",
+ .inputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.start_frame = start_frame,
.draw_slice = null_draw_slice,
.config_props = config_inprops,
.min_perms = AV_PERM_READ, },
{ .name = NULL}},
- .outputs = (AVFilterPad[]) {{ .name = "default",
+ .outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.request_frame = request_frame,
.config_props = config_outprops, },