svga_overlay.h revision 6df26cac
16df26cacSmrg/* ********************************************************** 26df26cacSmrg * Copyright 2007 VMware, Inc. All rights reserved. 36df26cacSmrg * **********************************************************/ 46df26cacSmrg 56df26cacSmrg/* 66df26cacSmrg * svga_overlay.h -- 76df26cacSmrg * 86df26cacSmrg * Definitions for video-overlay support. 96df26cacSmrg */ 106df26cacSmrg 116df26cacSmrg#ifndef _SVGA_OVERLAY_H_ 126df26cacSmrg#define _SVGA_OVERLAY_H_ 136df26cacSmrg 146df26cacSmrg/* 156df26cacSmrg * Video formats we support 166df26cacSmrg */ 176df26cacSmrg 186df26cacSmrg#define VMWARE_FOURCC_YV12 0x32315659 /* 'Y' 'V' '1' '2' */ 196df26cacSmrg#define VMWARE_FOURCC_YUY2 0x32595559 /* 'Y' 'U' 'Y' '2' */ 206df26cacSmrg 216df26cacSmrg#define SVGA_ESCAPE_VMWARE_VIDEO 0x00020000 226df26cacSmrg 236df26cacSmrg#define SVGA_ESCAPE_VMWARE_VIDEO_SET_REGS 0x00020001 246df26cacSmrg /* FIFO escape layout: 256df26cacSmrg * Type, Stream Id, (Register Id, Value) pairs */ 266df26cacSmrg 276df26cacSmrg#define SVGA_ESCAPE_VMWARE_VIDEO_FLUSH 0x00020002 286df26cacSmrg /* FIFO escape layout: 296df26cacSmrg * Type, Stream Id */ 306df26cacSmrg 316df26cacSmrgtypedef struct SVGAEscapeVideoSetRegs { 326df26cacSmrg struct { 336df26cacSmrg uint32 cmdType; 346df26cacSmrg uint32 streamId; 356df26cacSmrg } header; 366df26cacSmrg 376df26cacSmrg /* May include zero or more items. */ 386df26cacSmrg struct { 396df26cacSmrg uint32 registerId; 406df26cacSmrg uint32 value; 416df26cacSmrg } items[1]; 426df26cacSmrg} SVGAEscapeVideoSetRegs; 436df26cacSmrg 446df26cacSmrgtypedef struct SVGAEscapeVideoFlush { 456df26cacSmrg uint32 cmdType; 466df26cacSmrg uint32 streamId; 476df26cacSmrg} SVGAEscapeVideoFlush; 486df26cacSmrg 496df26cacSmrg#endif /* _SVGA_OVERLAY_H_ */ 50