1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
3 * Copyright 2007-2021 VMware, Inc.
5 * Permission is hereby granted, free of charge, to any person
6 * obtaining a copy of this software and associated documentation
7 * files (the "Software"), to deal in the Software without
8 * restriction, including without limitation the rights to use, copy,
9 * modify, merge, publish, distribute, sublicense, and/or sell copies
10 * of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be
14 * included in all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
20 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
21 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 * Definitions for video-overlay support.
35 #ifndef _SVGA_OVERLAY_H_
36 #define _SVGA_OVERLAY_H_
40 #if defined __cplusplus
44 #define VMWARE_FOURCC_YV12 0x32315659
45 #define VMWARE_FOURCC_YUY2 0x32595559
46 #define VMWARE_FOURCC_UYVY 0x59565955
49 SVGA_OVERLAY_FORMAT_INVALID = 0,
50 SVGA_OVERLAY_FORMAT_YV12 = VMWARE_FOURCC_YV12,
51 SVGA_OVERLAY_FORMAT_YUY2 = VMWARE_FOURCC_YUY2,
52 SVGA_OVERLAY_FORMAT_UYVY = VMWARE_FOURCC_UYVY,
55 #define SVGA_VIDEO_COLORKEY_MASK 0x00ffffff
57 #define SVGA_ESCAPE_VMWARE_VIDEO 0x00020000
59 #define SVGA_ESCAPE_VMWARE_VIDEO_SET_REGS 0x00020001
61 #define SVGA_ESCAPE_VMWARE_VIDEO_FLUSH 0x00020002
63 typedef struct SVGAEscapeVideoSetRegs {
73 } SVGAEscapeVideoSetRegs;
75 typedef struct SVGAEscapeVideoFlush {
78 } SVGAEscapeVideoFlush;
84 } SVGAFifoEscapeCmdVideoBase;
89 SVGAFifoEscapeCmdVideoBase videoCmd;
90 } SVGAFifoEscapeCmdVideoFlush;
95 SVGAFifoEscapeCmdVideoBase videoCmd;
100 } SVGAFifoEscapeCmdVideoSetRegs;
103 #pragma pack(push, 1)
105 SVGAFifoEscapeCmdVideoBase videoCmd;
109 } items[SVGA_VIDEO_NUM_REGS];
110 } SVGAFifoEscapeCmdVideoSetAllRegs;
113 #if defined __cplusplus