b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* $XFree86: xc/programs/Xserver/hw/xfree86/common/fourcc.h,v 1.5 2003/08/24 17:36:48 dawes Exp $ */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/*
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Copyright (c) 2000-2003 by The XFree86 Project, Inc.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * copy of this software and associated documentation files (the "Software"),
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * to deal in the Software without restriction, including without limitation
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * and/or sell copies of the Software, and to permit persons to whom the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Software is furnished to do so, subject to the following conditions:
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * The above copyright notice and this permission notice shall be included in
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * all copies or substantial portions of the Software.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * OTHER DEALINGS IN THE SOFTWARE.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Except as contained in this notice, the name of the copyright holder(s)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * and author(s) shall not be used in advertising or otherwise to promote
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * the sale, use or other dealings in this Software without prior written
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * authorization from the copyright holder(s) and author(s).
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/*
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync This header file contains listings of STANDARD guids for video formats.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync Please do not place non-registered, or incomplete entries in this file.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync A list of some popular fourcc's are at: http://www.webartz.com/fourcc/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync For an explanation of fourcc <-> guid mappings see RFC2361.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#ifndef _XF86_FOURCC_H_
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define _XF86_FOURCC_H_ 1
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define FOURCC_YUY2 0x32595559
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define XVIMAGE_YUY2 \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync { \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync FOURCC_YUY2, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvYUV, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync LSBFirst, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync {'Y','U','Y','2', \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 16, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvPacked, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0, 0, 0, 0, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 8, 8, 8, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, 2, 2, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, 1, 1, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync {'Y','U','Y','V', \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvTopToBottom \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync }
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define FOURCC_YV12 0x32315659
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define XVIMAGE_YV12 \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync { \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync FOURCC_YV12, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvYUV, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync LSBFirst, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync {'Y','V','1','2', \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 12, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvPlanar, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 3, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0, 0, 0, 0, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 8, 8, 8, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, 2, 2, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, 2, 2, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync {'Y','V','U', \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvTopToBottom \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync }
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define FOURCC_I420 0x30323449
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define XVIMAGE_I420 \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync { \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync FOURCC_I420, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvYUV, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync LSBFirst, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync {'I','4','2','0', \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 12, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvPlanar, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 3, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0, 0, 0, 0, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 8, 8, 8, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, 2, 2, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, 2, 2, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync {'Y','U','V', \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvTopToBottom \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync }
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define FOURCC_UYVY 0x59565955
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define XVIMAGE_UYVY \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync { \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync FOURCC_UYVY, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvYUV, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync LSBFirst, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync {'U','Y','V','Y', \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 16, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvPacked, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0, 0, 0, 0, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 8, 8, 8, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, 2, 2, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, 1, 1, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync {'U','Y','V','Y', \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvTopToBottom \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync }
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define FOURCC_IA44 0x34344149
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define XVIMAGE_IA44 \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync { \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync FOURCC_IA44, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvYUV, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync LSBFirst, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync {'I','A','4','4', \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 8, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvPacked, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0, 0, 0, 0, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 8, 8, 8, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, 1, 1, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, 1, 1, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync {'A','I', \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvTopToBottom \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync }
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define FOURCC_AI44 0x34344941
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define XVIMAGE_AI44 \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync { \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync FOURCC_AI44, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvYUV, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync LSBFirst, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync {'A','I','4','4', \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 8, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvPacked, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0, 0, 0, 0, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 8, 8, 8, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, 1, 1, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 1, 1, 1, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync {'I','A', \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync XvTopToBottom \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync }
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif /* _XF86_FOURCC_H_ */