I'm writing a game for ppc, for now I'm using my own graph lib that was a derived version of my own lib for series60 (nokia 7650, 3650 etc). However I want to use GD for ppc mainly for his high ppc compatibility and probably better performance (with 2.01 release that support multiple pixel write

). I use my own image loader and I make some conversion on the loading process. How can I get the bit depth currently used by GD? On my lib I convert on my loader the depth image (always 16 bit) on 16 (no conversion), 15 or 12 bit to support current depth screen.
Thanks.