1 /****************************************************************************
3 * Copyright (C) 2005 - 2011 by Vivante Corp.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the license, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *****************************************************************************/
23 #ifndef __gc_hal_dump_h_
24 #define __gc_hal_dump_h_
33 ** gcsDUMP_FILE structure
36 ** gcsDUMP_DATA or gcDUMP_DATA_SIZE records rendingring the frame
37 ** gctUINT8 data[length]
40 #define gcvDUMP_FILE_SIGNATURE gcmCC('g','c','D','B')
42 typedef struct _gcsDUMP_FILE
44 gctUINT32 signature
; /* File signature */
45 gctSIZE_T length
; /* Length of file */
46 gctUINT32 frames
; /* Number of frames in file */
50 typedef enum _gceDUMP_TAG
52 gcvTAG_SURFACE
= gcmCC('s','u','r','f'),
53 gcvTAG_FRAME
= gcmCC('f','r','m',' '),
54 gcvTAG_COMMAND
= gcmCC('c','m','d',' '),
55 gcvTAG_INDEX
= gcmCC('i','n','d','x'),
56 gcvTAG_STREAM
= gcmCC('s','t','r','m'),
57 gcvTAG_TEXTURE
= gcmCC('t','e','x','t'),
58 gcvTAG_RENDER_TARGET
= gcmCC('r','n','d','r'),
59 gcvTAG_DEPTH
= gcmCC('z','b','u','f'),
60 gcvTAG_RESOLVE
= gcmCC('r','s','l','v'),
61 gcvTAG_DELETE
= gcmCC('d','e','l',' '),
65 typedef struct _gcsDUMP_SURFACE
67 gceDUMP_TAG type
; /* Type of record. */
68 gctUINT32 address
; /* Address of the surface. */
69 gctINT16 width
; /* Width of surface. */
70 gctINT16 height
; /* Height of surface. */
71 gceSURF_FORMAT format
; /* Surface pixel format. */
72 gctSIZE_T length
; /* Number of bytes inside the surface. */
76 typedef struct _gcsDUMP_DATA
78 gceDUMP_TAG type
; /* Type of record. */
79 gctSIZE_T length
; /* Number of bytes of data. */
80 gctUINT32 address
; /* Address for the data. */
88 #endif /* __gc_hal_dump_h_ */