revert between 56095 -> 55830 in arch
[AROS.git] / compiler / include / datatypes / pictureclass.h
blob9799601046d09175f37c8382077e8c6a2e140ae2
1 #ifndef DATATYPES_PICTURECLASS_H
2 #define DATATYPES_PICTURECLASS_H
4 /*
5 Copyright © 1995-2018, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Includes for pictureclass
9 Lang: English
13 #ifndef UTILITY_TAGITEM_H
14 #include <utility/tagitem.h>
15 #endif
17 #ifndef DATATYPES_DATATYPESCLASS_H
18 #include <datatypes/datatypesclass.h>
19 #endif
21 #ifndef LIBRARIES_IFFPARSE_H
22 #include <libraries/iffparse.h>
23 #endif
25 #define PICTUREDTCLASS "picture.datatype"
28 struct BitMapHeader
30 UWORD bmh_Width;
31 UWORD bmh_Height;
32 WORD bmh_Left;
33 WORD bmh_Top;
34 UBYTE bmh_Depth;
35 UBYTE bmh_Masking;
36 UBYTE bmh_Compression;
37 UBYTE bmh_Pad;
38 UWORD bmh_Transparent;
39 UBYTE bmh_XAspect;
40 UBYTE bmh_YAspect;
41 WORD bmh_PageWidth;
42 WORD bmh_PageHeight;
43 } __packed;
45 struct ColorRegister
47 UBYTE red, green, blue;
51 #define PDTA_ModeID (DTA_Dummy + 200)
52 #define PDTA_BitMapHeader (DTA_Dummy + 201)
53 #define PDTA_BitMap (DTA_Dummy + 202)
54 #define PDTA_ColorRegisters (DTA_Dummy + 203)
55 #define PDTA_CRegs (DTA_Dummy + 204)
56 #define PDTA_GRegs (DTA_Dummy + 205)
57 #define PDTA_ColorTable (DTA_Dummy + 206)
58 #define PDTA_ColorTable2 (DTA_Dummy + 207)
59 #define PDTA_Allocated (DTA_Dummy + 208)
60 #define PDTA_NumColors (DTA_Dummy + 209)
61 #define PDTA_NumAlloc (DTA_Dummy + 210)
62 #define PDTA_Remap (DTA_Dummy + 211)
63 #define PDTA_Screen (DTA_Dummy + 212)
64 #define PDTA_FreeSourceBitMap (DTA_Dummy + 213)
65 #define PDTA_Grab (DTA_Dummy + 214)
66 #define PDTA_DestBitMap (DTA_Dummy + 215)
67 #define PDTA_ClassBitMap (DTA_Dummy + 216)
68 #define PDTA_NumSparse (DTA_Dummy + 217)
69 #define PDTA_SparseTable (DTA_Dummy + 218)
71 #define PDTA_SourceMode (DTA_Dummy + 250) /* Set the interface mode for the sub datatype. See below. */
72 #define PDTA_DestMode (DTA_Dummy + 251) /* Set the interface mode for the app datatype. See below. */
73 #define PDTA_UseFriendBitMap (DTA_Dummy + 255) /* Make the allocated bitmap be a "friend" bitmap (BOOL) */
75 /* Interface modes */
76 #define PMODE_V42 (0) /* Mode used for backward compatibility */
77 #define PMODE_V43 (1) /* Use the new features */
80 #define mskNone 0
81 #define mskHasMask 1
82 #define mskHasTransparentColor 2
83 #define mskLasso 3
84 #define mskHasAlpha 4
86 #define cmpNone 0
87 #define cmpByteRun1 1
88 #define cmpByteRun2 2
91 #define ID_ILBM MAKE_ID('I','L','B','M')
92 #define ID_BMHD MAKE_ID('B','M','H','D')
93 #define ID_BODY MAKE_ID('B','O','D','Y')
94 #define ID_CMAP MAKE_ID('C','M','A','P')
95 #define ID_CRNG MAKE_ID('C','R','N','G')
96 #define ID_GRAB MAKE_ID('G','R','A','B')
97 #define ID_SPRT MAKE_ID('S','P','R','T')
98 #define ID_DEST MAKE_ID('D','E','S','T')
99 #define ID_CAMG MAKE_ID('C','A','M','G')
102 * Support for the V44 picture.datatype
104 * It is not clear, if AROS should support AmigaOS3.5 .
106 * But if you want V44-support define DT_V44_SUPPORT
108 * Joerg Dietrich
110 #ifndef DT_V44_SUPPORT
111 #define DT_V44_SUPPORT 1
112 #endif
114 #ifdef DT_V44_SUPPORT
116 #define PMODE_V42 (0)
117 #define PMODE_V43 (1)
119 #define PDTANUMPICTURES_Unknown (0)
121 #define PDTA_WhichPicture (DTA_Dummy + 219)
122 #define PDTA_GetNumPictures (DTA_Dummy + 220)
123 #define PDTA_MaxDitherPens (DTA_Dummy + 221)
124 #define PDTA_DitherQuality (DTA_Dummy + 222)
125 #define PDTA_AllocatedPens (DTA_Dummy + 223)
126 #define PDTA_ScaleQuality (DTA_Dummy + 224)
127 #define PDTA_DelayRead (DTA_Dummy + 225)
128 #define PDTA_DelayedRead (DTA_Dummy + 226)
130 #define PDTA_SourceMode (DTA_Dummy + 250)
131 #define PDTA_DestMode (DTA_Dummy + 251)
132 #define PDTA_UseFriendBitMap (DTA_Dummy + 255)
133 #define PDTA_MaskPlane (DTA_Dummy + 258)
135 #define PDTM_Dummy (DTM_Dummy + 0x60)
136 #define PDTM_WRITEPIXELARRAY (PDTM_Dummy + 0)
137 #define PDTM_READPIXELARRAY (PDTM_Dummy + 1)
138 #define PDTM_SCALE (PDTM_Dummy + 2)
140 struct pdtBlitPixelArray
142 STACKED ULONG MethodID;
143 STACKED APTR pbpa_PixelData;
144 STACKED ULONG pbpa_PixelFormat;
145 STACKED ULONG pbpa_PixelArrayMod;
146 STACKED ULONG pbpa_Left;
147 STACKED ULONG pbpa_Top;
148 STACKED ULONG pbpa_Width;
149 STACKED ULONG pbpa_Height;
152 struct pdtScale
154 STACKED ULONG MethodID;
155 STACKED ULONG ps_NewWidth;
156 STACKED ULONG ps_NewHeight;
157 STACKED ULONG ps_Flags;
160 /* Flags for ps_Flags, for AROS only */
161 #define PScale_KeepAspect 0x10 /* Keep aspect ratio when scaling, fit inside given x,y coordinates */
164 #define PBPAFMT_RGB 0
165 #define PBPAFMT_RGBA 1
166 #define PBPAFMT_ARGB 2
167 #define PBPAFMT_LUT8 3
168 #define PBPAFMT_GREY8 4
170 #endif /* DT_V44_SUPPORT */
172 #endif /* DATATYPES_PICTURECLASS_H */