summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-20 21:36:56 +0200
committerwm4 <wm4@nowhere>2014-04-21 02:57:16 +0200
commitef2885e771d184ff39c688836a8f06595a6cdf86 (patch)
tree10d7beb187a504e75d46404493fb44750210620e /video/out/vo.h
parentcc00b3ff36692d42184d2b88cfabbef3151793d8 (diff)
downloadmpv-ef2885e771d184ff39c688836a8f06595a6cdf86.tar.bz2
mpv-ef2885e771d184ff39c688836a8f06595a6cdf86.tar.xz
vo: add some general support code for VOs that allow rotation
For rotation, we assume that the source image will be rotated within the VO, so the aspect/panscan code needs to calculate its param using rotated coordinates. VOs which support rotation natively can use this.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 28cb3a00ed..b9887d2119 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -130,6 +130,9 @@ struct voctrl_screenshot_args {
#define VOFLAG_GL_DEBUG 0x40 // Hint to request debug OpenGL context
#define VOFLAG_ALPHA 0x80 // Hint to request alpha framebuffer
+// VO does handle mp_image_params.rotate in 90 degree steps
+#define VO_CAP_ROTATE90 1
+
struct vo;
struct osd_state;
struct mp_image;
@@ -143,6 +146,9 @@ struct vo_driver {
// Encoding functionality, which can be invoked via --o only.
bool encode;
+ // VO_CAP_* bits
+ int caps;
+
const char *name;
const char *description;