PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Final questions about direct coping to PPC backbuffer

Hi, Edge.

I'm finally at ending stage implementing video playback. So I want to ask you to answer some vital questions about direct backbuffer copying, so I can provide reliable output for PocketPC devices.

1. Do you know what colour format may Pocket PC device has? Is it necessary to handle EDSP_TRUE15,EDSP_TRUE32,EDSP_TRUE24 variants?

2. Looking in information from E2DSURFACEINFO will be enough to determine is rotation needed or not?

Regards, Nomad.
Hi Nomad,

In most Pocket PC's on the market, the video mode is 16-bit truecolor (EDSP_TRUE16). There may be a rare case of 12-bit (EDSP_TRUE12) and future Pocket PC's may support 32-bit (EDSP_TRUE32). We recommend optimizing for 16 and 32 bit (and 12 bit when targetting Symbian devices).

Regarding rotation, the pitch members of E2DSURFACEINFO should be all you need to determine if a direct copy should be used, or a rotated copy.