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