1 /*
2 * bvsurfgeom.h
3 *
4 * Copyright (C) 2011 Texas Instruments, Inc.
5 *
6 * This package is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
11 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
12 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13 */
15 #ifndef BVSURFGEOM_H
16 #define BVSURFGEOM_H
18 /*
19 * bvsurfdesc - This structure specifies the way a buffer should be used in a
20 * 2-D context.
21 */
23 struct bvsurfgeom {
24 unsigned int structsize; /* used to identify struct version */
25 enum ocdformat format; /* color format of surface */
26 unsigned int width; /* width of the surface in pixels */
27 unsigned int height; /* height of the surface in lines */
28 int orientation; /* angle of the surface in degrees
29 (multiple of 90 only) */
30 long virtstride; /* distance from one pixel to the
31 pixel immediately below it in
32 virtual space */
33 enum ocdformat paletteformat; /* format of palette */
34 void *palette; /* array of palette entries of
35 paletteformat; only valid when
36 format includes BVFMTDEF_LUT;
37 number of entries is 2^bpp. */
38 long physstride; /* distance from one pixel to the
39 pixel immediately below it in
40 physical address space */
41 };
43 #endif /* BVSURFGEOM_H */