summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_pp.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-07 19:32:03 +0100
committerwm4 <wm4@nowhere>2013-12-07 19:32:03 +0100
commit75d3bf4711f88a79af5fd3246a9503dbd6e01586 (patch)
treec1515f59f2d8fe1e4bab88a891fae97e8a8b3262 /video/filter/vf_pp.c
parent6025abffda964b07d04ff2806527d85d956e28ba (diff)
downloadmpv-75d3bf4711f88a79af5fd3246a9503dbd6e01586.tar.bz2
mpv-75d3bf4711f88a79af5fd3246a9503dbd6e01586.tar.xz
video/filter: remove vf_match_csp()
This function improves automatic filter insertion, but this really should be done by the generic filter code. Remove vf_match_csp() and all code using it as preparation for that. This commit temporarily makes handling of filter insertion worse for now, but it will be fixed with the following commits.
Diffstat (limited to 'video/filter/vf_pp.c')
-rw-r--r--video/filter/vf_pp.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/video/filter/vf_pp.c b/video/filter/vf_pp.c
index 83191594cc..dff8b2b3ec 100644
--- a/video/filter/vf_pp.c
+++ b/video/filter/vf_pp.c
@@ -37,7 +37,6 @@ struct vf_priv_s {
int pp;
pp_mode *ppMode[PP_QUALITY_MAX+1];
void *context;
- unsigned int outfmt;
char *arg;
};
@@ -117,16 +116,6 @@ static struct mp_image *filter(struct vf_instance *vf, struct mp_image *mpi)
return dmpi;
}
-//===========================================================================//
-
-static const unsigned int fmt_list[]={
- IMGFMT_420P,
- IMGFMT_444P,
- IMGFMT_422P,
- IMGFMT_411P,
- 0
-};
-
static int vf_open(vf_instance_t *vf){
int i;
@@ -135,10 +124,6 @@ static int vf_open(vf_instance_t *vf){
vf->filter=filter;
vf->uninit=uninit;
- // check csp:
- vf->priv->outfmt=vf_match_csp(&vf->next,fmt_list,IMGFMT_420P);
- if(!vf->priv->outfmt) return 0; // no csp match :(
-
for(i=0; i<=PP_QUALITY_MAX; i++){
vf->priv->ppMode[i]= pp_get_mode_by_name_and_quality(vf->priv->arg, i);
if(vf->priv->ppMode[i]==NULL) return -1;