From 23d9dc5457c52408533c498c685ad9dd6fd2cee0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 29 Nov 2017 20:03:20 +0100 Subject: video: remove automatic stereo3d filter insertion The internal stereo3d filter was removed due to being GPL only, and due to being a mess that somehow used libavfilter's filter. Without this filter, it's hard to remove our internal stereo3d image attribute, so even using libavfilter's stereo3d filter would not work too well (unless someone fixes it and makes it able to use AVFrame metadata, which we then could mirror in mp_image). This was never well thought-through anyway, so just drop it. I think some "downsampling" support would still make sense, maybe that can be readded later. --- player/video.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index 8fe3244c5c..956e55d843 100644 --- a/player/video.c +++ b/player/video.c @@ -129,7 +129,7 @@ static void filter_reconfig(struct MPContext *mpctx, struct vo_chain *vo_c) set_allowed_vo_formats(vo_c); - char *filters[] = {"autorotate", "autostereo3d", "deinterlace", NULL}; + char *filters[] = {"autorotate", "deinterlace", NULL}; for (int n = 0; filters[n]; n++) { struct vf_instance *vf = vf_find_by_label(vo_c->vf, filters[n]); if (vf) @@ -154,17 +154,6 @@ static void filter_reconfig(struct MPContext *mpctx, struct vo_chain *vo_c) } } - if (params.stereo_in != params.stereo_out && - params.stereo_in > 0 && params.stereo_out >= 0) - { - char *to = (char *)MP_STEREO3D_NAME(params.stereo_out); - if (to) { - char *args[] = {"in", "auto", "out", to, "warn", "no", NULL, NULL}; - if (try_filter(vo_c, "stereo3d", "autostereo3d", args) < 0) - MP_ERR(vo_c, "Can't insert 3D conversion filter.\n"); - } - } - if (mpctx->opts->deinterlace) probe_deint_filters(vo_c); } -- cgit v1.2.3