codec: fix pointer data conversion + 24bpp support

- alpha values were annihilated (fixes issue #2179)
- support 24bit xor mask data added