1 #ifndef DATATYPES_PICTURECLASS_H
2 #define DATATYPES_PICTURECLASS_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: Includes for pictureclass
13 #ifndef UTILITY_TAGITEM_H
14 #include <utility/tagitem.h>
17 #ifndef DATATYPES_DATATYPESCLASS_H
18 #include <datatypes/datatypesclass.h>
21 #ifndef LIBRARIES_IFFPARSE_H
22 #include <libraries/iffparse.h>
25 #define PICTUREDTCLASS "picture.datatype"
35 UBYTE bmh_Compression
;
37 UWORD bmh_Transparent
;
46 UBYTE red
, green
, blue
;
50 #define PDTA_ModeID (DTA_Dummy + 200)
51 #define PDTA_BitMapHeader (DTA_Dummy + 201)
52 #define PDTA_BitMap (DTA_Dummy + 202)
53 #define PDTA_ColorRegisters (DTA_Dummy + 203)
54 #define PDTA_CRegs (DTA_Dummy + 204)
55 #define PDTA_GRegs (DTA_Dummy + 205)
56 #define PDTA_ColorTable (DTA_Dummy + 206)
57 #define PDTA_ColorTable2 (DTA_Dummy + 207)
58 #define PDTA_Allocated (DTA_Dummy + 208)
59 #define PDTA_NumColors (DTA_Dummy + 209)
60 #define PDTA_NumAlloc (DTA_Dummy + 210)
61 #define PDTA_Remap (DTA_Dummy + 211)
62 #define PDTA_Screen (DTA_Dummy + 212)
63 #define PDTA_FreeSourceBitMap (DTA_Dummy + 213)
64 #define PDTA_Grab (DTA_Dummy + 214)
65 #define PDTA_DestBitMap (DTA_Dummy + 215)
66 #define PDTA_ClassBitMap (DTA_Dummy + 216)
67 #define PDTA_NumSparse (DTA_Dummy + 217)
68 #define PDTA_SparseTable (DTA_Dummy + 218)
70 #define PDTA_SourceMode (DTA_Dummy + 250) /* Set the interface mode for the sub datatype. See below. */
71 #define PDTA_DestMode (DTA_Dummy + 251) /* Set the interface mode for the app datatype. See below. */
72 #define PDTA_UseFriendBitMap (DTA_Dummy + 255) /* Make the allocated bitmap be a "friend" bitmap (BOOL) */
75 #define PMODE_V42 (0) /* Mode used for backward compatibility */
76 #define PMODE_V43 (1) /* Use the new features*/
81 #define mskHasTransparentColor 2
90 #define ID_ILBM MAKE_ID('I','L','B','M')
91 #define ID_BMHD MAKE_ID('B','M','H','D')
92 #define ID_BODY MAKE_ID('B','O','D','Y')
93 #define ID_CMAP MAKE_ID('C','M','A','P')
94 #define ID_CRNG MAKE_ID('C','R','N','G')
95 #define ID_GRAB MAKE_ID('G','R','A','B')
96 #define ID_SPRT MAKE_ID('S','P','R','T')
97 #define ID_DEST MAKE_ID('D','E','S','T')
98 #define ID_CAMG MAKE_ID('C','A','M','G')
101 * Support for the V44 picture.datatype
103 * It is not clear, if AROS should support AmigaOS3.5 .
105 * But if you want V44-support define DT_V44_SUPPORT
109 #ifndef DT_V44_SUPPORT
110 #define DT_V44_SUPPORT 1
113 #ifdef DT_V44_SUPPORT
115 #define PMODE_V42 (0)
116 #define PMODE_V43 (1)
118 #define PDTANUMPICTURES_Unknown (0)
120 #define PDTA_WhichPicture (DTA_Dummy + 219)
121 #define PDTA_GetNumPictures (DTA_Dummy + 220)
122 #define PDTA_MaxDitherPens (DTA_Dummy + 221)
123 #define PDTA_DitherQuality (DTA_Dummy + 222)
124 #define PDTA_AllocatedPens (DTA_Dummy + 223)
125 #define PDTA_ScaleQuality (DTA_Dummy + 224)
126 #define PDTA_DelayRead (DTA_Dummy + 225)
127 #define PDTA_DelayedRead (DTA_Dummy + 226)
129 #define PDTA_SourceMode (DTA_Dummy + 250)
130 #define PDTA_DestMode (DTA_Dummy + 251)
131 #define PDTA_UseFriendBitMap (DTA_Dummy + 255)
132 #define PDTA_MaskPlane (DTA_Dummy + 258)
134 #define PDTM_Dummy (DTM_Dummy + 0x60)
135 #define PDTM_WRITEPIXELARRAY (PDTM_Dummy + 0)
136 #define PDTM_READPIXELARRAY (PDTM_Dummy + 1)
137 #define PDTM_SCALE (PDTM_Dummy + 2)
139 struct pdtBlitPixelArray
141 STACKED ULONG MethodID
;
142 STACKED APTR pbpa_PixelData
;
143 STACKED ULONG pbpa_PixelFormat
;
144 STACKED ULONG pbpa_PixelArrayMod
;
145 STACKED ULONG pbpa_Left
;
146 STACKED ULONG pbpa_Top
;
147 STACKED ULONG pbpa_Width
;
148 STACKED ULONG pbpa_Height
;
153 STACKED ULONG MethodID
;
154 STACKED ULONG ps_NewWidth
;
155 STACKED ULONG ps_NewHeight
;
156 STACKED ULONG ps_Flags
;
159 /* Flags for ps_Flags, for AROS only */
160 #define PScale_KeepAspect 0x10 /* Keep aspect ratio when scaling, fit inside given x,y coordinates */
163 #define PBPAFMT_RGB 0
164 #define PBPAFMT_RGBA 1
165 #define PBPAFMT_ARGB 2
166 #define PBPAFMT_LUT8 3
167 #define PBPAFMT_GREY8 4
169 #endif /* DT_V44_SUPPORT */
171 #endif /* DATATYPES_PICTURECLASS_H */