The new 16/32 bit sprite format

Note: you will 'special' programs to display the new sprites (such as
Impression Style/Publisher and ....). !Paint will complain about a 'bad sprite mode'.

New RISC OS sprite format

The Sprite Control Block contains the following:

    Bytes            Content
     0 - 3           Offset to next sprite
     4 - 15          Sprite name, up to 12 characters
    16 - 19          Width in words-1
    20 - 23          Height in scan lines-1
    24 - 27          First bit used (left end of row)
    32 - 35          Offset to sprite image
    36 - 39          Offset to transparency mask or offset to sprite image
                     if no mask
    40 - 43          Mode sprite was defined in
                     Bit        Content
                      0         Should be one
                      1 - 13    x-resolution in dpi (dots per inch), which
                                can only be equal to 45 or 90
                     14 - 26    y-resolution in dpi
                     27 - 31    Type of image: 0 = old format
                                               1 = 1 bpp
                                               2 = 2 bpp
                                               3 = 4 bpp
                                               4 = 8 bpp
                                               5 = 16 bpp
                                               6 = 32 bpp
                                               7 = 32 bpp CMYK

For 16 bpp sprites, the format of each pixel of the sprite image is as follows:

    Bits            Content
     4 - 0          R
     9 - 5          G
    14 - 10         B
    15              Not used