summaryrefslogtreecommitdiff
path: root/src/svga_reg.h
diff options
context:
space:
mode:
authorBankim Bhavsar <bbhavsar@vmware.com>2008-03-14 12:42:40 -0400
committerVinay Bondhugula <vinayb@vmware.com>2008-03-14 12:42:40 -0400
commit1314a1cd22823a5a7202dac4ac04da3801f1ec94 (patch)
treec55939df75b3d0aa23b6c64186a930b76468b8dc /src/svga_reg.h
parentfdef3fd5ea62a2df6283d48ba18d5c60300534ef (diff)
Video Overlay: Source video parameters
This patch adds parameters to the source video frame. Applications can request only a subset of the source video frame to be displayed. These parameters are srcX, srcY, srcWidth and srcHeight. width and height represent the entire source video frame.
Diffstat (limited to 'src/svga_reg.h')
-rw-r--r--src/svga_reg.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/svga_reg.h b/src/svga_reg.h
index 4560fe7..f5040e6 100644
--- a/src/svga_reg.h
+++ b/src/svga_reg.h
@@ -576,10 +576,14 @@ enum {
SVGA_VIDEO_FORMAT,
SVGA_VIDEO_COLORKEY,
SVGA_VIDEO_SIZE,
- SVGA_VIDEO_X,
- SVGA_VIDEO_Y,
+ SVGA_VIDEO_WIDTH,
+ SVGA_VIDEO_HEIGHT,
+ SVGA_VIDEO_SRC_X,
+ SVGA_VIDEO_SRC_Y,
SVGA_VIDEO_SRC_WIDTH,
SVGA_VIDEO_SRC_HEIGHT,
+ SVGA_VIDEO_DST_X,
+ SVGA_VIDEO_DST_Y,
SVGA_VIDEO_DST_WIDTH,
SVGA_VIDEO_DST_HEIGHT,
SVGA_VIDEO_PITCH_1,
@@ -591,19 +595,27 @@ enum {
/*
* SVGA Overlay Units
+ *
+ * width and height relate to the entire source video frame.
+ * srcX, srcY, srcWidth and srcHeight represent subset of the source
+ * video frame to be displayed.
*/
typedef struct SVGAOverlayUnit {
uint32 enabled;
uint32 flags;
- uint32 dataOffset;
+ uint32 dataOffset;
uint32 format;
uint32 colorKey;
uint32 size;
- uint32 x;
- uint32 y;
+ uint32 width;
+ uint32 height;
+ uint32 srcX;
+ uint32 srcY;
uint32 srcWidth;
uint32 srcHeight;
+ uint32 dstX;
+ uint32 dstY;
uint32 dstWidth;
uint32 dstHeight;
uint32 pitches[3];
@@ -779,7 +791,7 @@ typedef struct SVGAOverlayUnit {
#define SVGA_CMD_VIDEO_PLAY_OBSOLETE 31
/* Obsolete; do not use. */
-
+
#define SVGA_CMD_VIDEO_END_OBSOLETE 32
/* Obsolete; do not use. */