remaining clean-up and build fix.
[AROS.git] / arch / arm-native / soc / broadcom / 2708 / hidd / vc4gfx / vc4gfx_bitmap.h
blob5b3b67011524b4d508012ed6e54870e67ac299c6
1 /*
2 Copyright © 2013-2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef _VIDEOCOREGFX_BITMAP_H
7 #define _VIDEOCOREGFX_BITMAP_H
9 #include <hidd/gfx.h>
11 /* This attribute interface is common for both onscreen and offscreen bitmap
12 classes, although they don't share a common superclass */
14 #define IID_Hidd_BitMap_VideoCore4 "hidd.bitmap.bcmvc4"
17 enum {
18 aoHidd_VideoCoreGfxBitMap_Drawable,
19 num_Hidd_VideoCoreGfxBitMap_Attrs
22 #define aHidd_VideoCoreGfxBitMap_Drawable (HiddVideoCoreGfxBitMapAttrBase + aoHidd_VideoCoreGfxBitMap_Drawable)
24 /* This structure is used for both onscreen and offscreen bitmaps !! */
26 #define IS_BM_ATTR(attr, idx) ( ( (idx) = (attr) - HiddBitMapAttrBase) < num_Hidd_BitMap_Attrs)
27 #define IS_VideoCoreGfxBM_ATTR(attr, idx) ( ( (idx) = (attr) - HiddVideoCoreGfxBitMapAttrBase) < num_Hidd_VideoCoreGfxBitMap_Attrs)
29 /* This structure is used as instance data for both the
30 onbitmap and offbitmap classes. */
32 struct Box
34 int x1, y1;
35 int x2, y2;
38 struct BitmapData {
39 APTR data;
40 UBYTE *VideoData; /* Pointing to video data */
41 ULONG width; /* Width of bitmap */
42 ULONG height; /* Height of bitmap */
43 UBYTE bytesperpix;
44 ULONG cmap[16]; /* ColorMap */
45 BYTE bpp; /* 8 -> chunky; planar otherwise */
46 BYTE disp; /* !=0 - displayable */
47 struct MouseData *mouse;
50 #endif /* _VIDEOCOREGFX_BITMAP_H */