Source
x
/*
* Copyright 2011 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
/* format is big endian instead of little endian */
/* color index */
/* [7:0] C */
/* 8 bpp RGB */
/* [7:0] R:G:B 3:3:2 */
/* [7:0] B:G:R 2:3:3 */
/* 16 bpp RGB */
/* [15:0] x:R:G:B 4:4:4:4 little endian */
/* [15:0] x:B:G:R 4:4:4:4 little endian */
/* [15:0] R:G:B:x 4:4:4:4 little endian */
/* [15:0] B:G:R:x 4:4:4:4 little endian */
/* [15:0] A:R:G:B 4:4:4:4 little endian */
/* [15:0] A:B:G:R 4:4:4:4 little endian */
/* [15:0] R:G:B:A 4:4:4:4 little endian */
/* [15:0] B:G:R:A 4:4:4:4 little endian */
/* [15:0] x:R:G:B 1:5:5:5 little endian */
/* [15:0] x:B:G:R 1:5:5:5 little endian */
/* [15:0] R:G:B:x 5:5:5:1 little endian */
/* [15:0] B:G:R:x 5:5:5:1 little endian */
/* [15:0] A:R:G:B 1:5:5:5 little endian */
/* [15:0] A:B:G:R 1:5:5:5 little endian */
/* [15:0] R:G:B:A 5:5:5:1 little endian */
/* [15:0] B:G:R:A 5:5:5:1 little endian */
/* [15:0] R:G:B 5:6:5 little endian */
/* [15:0] B:G:R 5:6:5 little endian */
/* 24 bpp RGB */
/* [23:0] R:G:B little endian */
/* [23:0] B:G:R little endian */
/* 32 bpp RGB */
/* [31:0] x:R:G:B 8:8:8:8 little endian */
/* [31:0] x:B:G:R 8:8:8:8 little endian */
/* [31:0] R:G:B:x 8:8:8:8 little endian */
/* [31:0] B:G:R:x 8:8:8:8 little endian */
/* [31:0] A:R:G:B 8:8:8:8 little endian */
/* [31:0] A:B:G:R 8:8:8:8 little endian */
/* [31:0] R:G:B:A 8:8:8:8 little endian */
/* [31:0] B:G:R:A 8:8:8:8 little endian */
/* [31:0] x:R:G:B 2:10:10:10 little endian */
/* [31:0] x:B:G:R 2:10:10:10 little endian */
/* [31:0] R:G:B:x 10:10:10:2 little endian */
/* [31:0] B:G:R:x 10:10:10:2 little endian */
/* [31:0] A:R:G:B 2:10:10:10 little endian */
/* [31:0] A:B:G:R 2:10:10:10 little endian */
/* [31:0] R:G:B:A 10:10:10:2 little endian */
/* [31:0] B:G:R:A 10:10:10:2 little endian */
/* packed YCbCr */
/* [31:0] Cr0:Y1:Cb0:Y0 8:8:8:8 little endian */
/* [31:0] Cb0:Y1:Cr0:Y0 8:8:8:8 little endian */