diff options
Diffstat (limited to 'video/filter')
-rw-r--r-- | video/filter/vf.h | 7 | ||||
-rw-r--r-- | video/filter/vf_scale.c | 19 |
2 files changed, 0 insertions, 26 deletions
diff --git a/video/filter/vf.h b/video/filter/vf.h index 546fd823ad..8a9815078d 100644 --- a/video/filter/vf.h +++ b/video/filter/vf.h @@ -141,15 +141,8 @@ struct vf_chain { void *wakeup_callback_ctx; }; -typedef struct vf_seteq { - const char *item; - int value; -} vf_equalizer_t; - enum vf_ctrl { VFCTRL_SEEK_RESET = 1, // reset on picture and PTS discontinuities - VFCTRL_SET_EQUALIZER, // set color options (brightness,contrast etc) - VFCTRL_GET_EQUALIZER, // get color options (brightness,contrast etc) #if HAVE_GPL VFCTRL_SET_DEINTERLACE, // Set deinterlacing status VFCTRL_GET_DEINTERLACE, // Get deinterlacing status diff --git a/video/filter/vf_scale.c b/video/filter/vf_scale.c index 0759d28723..9c74db363d 100644 --- a/video/filter/vf_scale.c +++ b/video/filter/vf_scale.c @@ -202,24 +202,6 @@ static struct mp_image *filter(struct vf_instance *vf, struct mp_image *mpi) return dmpi; } -static int control(struct vf_instance *vf, int request, void *data) -{ - struct mp_sws_context *sws = vf->priv->sws; - - switch (request) { - case VFCTRL_GET_EQUALIZER: - if (mp_sws_get_vf_equalizer(sws, data) < 1) - break; - return CONTROL_TRUE; - case VFCTRL_SET_EQUALIZER: - if (mp_sws_set_vf_equalizer(sws, data) < 1) - break; - return CONTROL_TRUE; - } - - return CONTROL_UNKNOWN; -} - static int query_format(struct vf_instance *vf, unsigned int fmt) { if (IMGFMT_IS_HWACCEL(fmt) || sws_isSupportedInput(imgfmt2pixfmt(fmt)) < 1) @@ -236,7 +218,6 @@ static int vf_open(vf_instance_t *vf) vf->reconfig = reconfig; vf->filter = filter; vf->query_format = query_format; - vf->control = control; vf->uninit = uninit; vf->priv->sws = mp_sws_alloc(vf); vf->priv->sws->log = vf->log; |