2 * Copyright 2012, Gerasim Troeglazov, 3dEyes@gmail.com. All rights reserved.
3 * Distributed under the terms of the MIT License.
13 #include <Translator.h>
14 #include <TranslatorFormats.h>
15 #include <TranslationDefs.h>
16 #include <GraphicsDefs.h>
17 #include <InterfaceDefs.h>
20 #include <ByteOrder.h>
27 #define IS_SPUPPORTED_TYPE(type) ((type) == ICNS_1024x1024_32BIT_ARGB_DATA || \
28 (type) == ICNS_512x512_32BIT_ARGB_DATA || \
29 (type) == ICNS_256x256_32BIT_ARGB_DATA || \
30 (type) == ICNS_128X128_32BIT_DATA || \
31 (type) == ICNS_48x48_32BIT_DATA || \
32 (type) == ICNS_32x32_32BIT_DATA || \
33 (type) == ICNS_16x16_32BIT_DATA)
35 icns_type_t
ICNSFormat(float width
, float height
, color_space colors
);
39 ICNSLoader(BPositionIO
*stream
);
43 int GetIcon(BPositionIO
*target
, int index
);
46 icns_family_t
* fIconFamily
;
55 ICNSSaver(BPositionIO
*stream
, uint32 rowBytes
,
59 int SaveData(BPositionIO
*target
);
62 icns_family_t
* fIconFamily
;
68 #endif /* ICNS_LOADER_H */