summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-29 00:25:08 +0100
committerwm4 <wm4@nowhere>2014-03-29 00:25:08 +0100
commitbd0618f01f1331c1ba0a3b2bb65975b5a21fe2e2 (patch)
treeaa7ecd5d7a7662130c8a25d3dd569ac6c50624c2 /video/out/vo.h
parentfdeda359f7b060ec0a926eccb86c01b736a1ee16 (diff)
downloadmpv-bd0618f01f1331c1ba0a3b2bb65975b5a21fe2e2.tar.bz2
mpv-bd0618f01f1331c1ba0a3b2bb65975b5a21fe2e2.tar.xz
video/out: remove legacy colorspace stuff
Reduce most dependencies on struct mp_csp_details, which was a bad first attempt at dealing with colorspace stuff. Instead, consistently use mp_image_params. Code which retrieves colorspace matrices from csputils.c still uses this type, though.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 47c6a1ed96..c53e788a69 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -74,8 +74,10 @@ enum mp_voctrl {
VOCTRL_GET_WINDOW_SIZE, // int[2] (w/h)
VOCTRL_SET_WINDOW_SIZE, // int[2] (w/h)
- VOCTRL_SET_YUV_COLORSPACE, // struct mp_csp_details*
- VOCTRL_GET_YUV_COLORSPACE, // struct mp_csp_details*
+ // The VO is supposed to set "known" fields, and leave the others
+ // untouched or set to 0.
+ // imgfmt/w/h/d_w/d_h can be omitted for convenience.
+ VOCTRL_GET_COLORSPACE, // struct mp_image_params*
VOCTRL_SCREENSHOT, // struct voctrl_screenshot_args*