From ef2885e771d184ff39c688836a8f06595a6cdf86 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 20 Apr 2014 21:36:56 +0200 Subject: 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. --- video/out/vo.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'video/out/vo.h') 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; -- cgit v1.2.3