summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-02 21:19:16 +0200
committerwm4 <wm4@nowhere>2013-10-02 21:19:16 +0200
commitef9c5300ef02427db606273ac1f461a68c6c95ec (patch)
tree2a9dcf87ac7e03e1f8aa5e9b25349e21a780dba6 /video/decode
parent93b712fa8ab56217da2e8a5317891f4d0df1838f (diff)
downloadmpv-ef9c5300ef02427db606273ac1f461a68c6c95ec.tar.bz2
mpv-ef9c5300ef02427db606273ac1f461a68c6c95ec.tar.xz
cosmetics: replace "CTRL" defines by enums
Because why not.
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/vd.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/video/decode/vd.h b/video/decode/vd.h
index 3142151373..488f9fa061 100644
--- a/video/decode/vd.h
+++ b/video/decode/vd.h
@@ -40,10 +40,12 @@ typedef struct vd_functions
// NULL terminated array of all drivers
extern const vd_functions_t *const mpcodecs_vd_drivers[];
-#define VDCTRL_GET_PARAMS 1 // retrieve struct mp_image_params
-#define VDCTRL_RESYNC_STREAM 8 // reset decode state after seeking
-#define VDCTRL_QUERY_UNSEEN_FRAMES 9 // current decoder lag
-#define VDCTRL_REINIT_VO 10 // reinit filter/VO chain
+enum vd_ctrl {
+ VDCTRL_GET_PARAMS = 1, // retrieve struct mp_image_params
+ VDCTRL_RESYNC_STREAM, // reset decode state after seeking
+ VDCTRL_QUERY_UNSEEN_FRAMES, // current decoder lag
+ VDCTRL_REINIT_VO, // reinit filter/VO chain
+};
int mpcodecs_reconfig_vo(sh_video_t *sh, const struct mp_image_params *params);