(anonymous IP: 44.200.122.214,349) | ||||||||||||||
| ||||||||||||||
Audio (94) Datatype (15) Demo (50) Development (244) Document (62) Driver (19) Emulation (60) Game (528) Graphics (224) Library (22) Network (60) Office (21) Utility (249) Video (18) Total files: 1666 Full index file Recent index file Part of aros exec |
[Show comments] [Show snapshots] [Show videos] [Show content] [Replace file] This documentation in PDF format and the accompanying source code snippets are intended to help explain the encoded storage format for the image data in the IMAG chunks for Glow Icons. Main features include: - DecodeRLE sample code for decoding run-length encoded data (8 bits). This is a functional sample from my test program. - DecodeBytes sample with bit shifting and masking to decode the IMAG image bitstream data. This is also a functional sample. - PDF document "IFF Icon Data Decoded.pdf" to help explain the complex encoding scheme. ...... The image data for the IMAG chunks are encoded using a modified version of RLE aka Run Length Encoding. It is a bitstream rather than a byte stream composed of RLE bytes and image data bytes. Perhaps, the IFF icon image data storage format is a trade-off between complexity and practicality. Because applying the RLE encoding to chunky data is much more efficient than applying the same encoding to planar data the storage size is much smaller and thus much more practical for Amiga computers which in the early days had very limited storage space. However, the storage format is complex and difficult to implement so bit shifting and masking is needed for encoding & decoding. ...... Files included: decodebytes_sample.c IFF Icon Data Decoded.pdf |
Copyright © 2005 - 2024 The AROS Archives All Rights Reserved |