codec: fix pointer data conversion + 24bpp support

- alpha values were annihilated (fixed)
- support 24bit xor mask data added
Merge pull request #2180 from nfedera/fix-2014-10-31-01

codec: fix pointer data conversion + 24bpp support