/* Copyright (c) 2006 NVIDIA Corporation. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this software and related documentation without an * express license agreement from NVIDIA Corporation is strictly prohibited. */ /* * File: GFBitmap.h * GFSDK Bitmap header file. */ #ifndef __GFBITMAP_H__ #define __GFBITMAP_H__ /* Bitmap Color Format - Follow Surface Format GF_SURFACE_xxx */ #define GF_BITMAP_YUV420 0x00000001 #define GF_BITMAP_YUV422 0x00000002 #define GF_BITMAP_YUYV (GF_BITMAP_YUV422|0x00000004) #define GF_BITMAP_YVYU (GF_BITMAP_YUV422|0x00000008) #define GF_BITMAP_UYVY (GF_BITMAP_YUV422|0x00000010) #define GF_BITMAP_VYUY (GF_BITMAP_YUV422|0x00000020) #define GF_BITMAP_MPEGDEC (GF_BITMAP_YUV420|0x00000040) #define GF_BITMAP_RGB565 0x00010000 #define GF_BITMAP_RGB8 0x00070000 #define GF_BITMAP_ARGB8888 0x00030000 #define GF_BITMAP_ARGB6666 0x000F0000 /* Bitmap */ typedef struct _GFBITMAP { NvU16 width; NvU16 height; NvS32 stride; NvU32 format; NvU8 bpp; // Bits per pixel NvU8 reserved; NvU16 offset; // Offset from beginning of bitmap to data NvU8 data; // Real data starts from "Offset" location } GFBITMAP, *PGFBITMAP; #endif /* __GFBITMAP_H__ */