FYI I've written this article explaining what you need to know regarding using GAPI (the Game API) on the new Motorola Q.
GAPI on the Motorola Q: what developers need to know
Thanks for the info, I really appreciate it.
Kzinti wrote:Thanks for the info, I really appreciate it.
You're welcome!
If you have any comments regarding my findings, please post them, preferably in the thread where my article is published, so that other can benefit from your comments.
Thanks for the info!
What about DDraw on the Q? When you lock the primary surface do you get a pointer to display RAM or a pointer to an intermediate buffer in system RAM?
What about DDraw on the Q? When you lock the primary surface do you get a pointer to display RAM or a pointer to an intermediate buffer in system RAM?
Digby wrote:Thanks for the info!
What about DDraw on the Q? When you lock the primary surface do you get a pointer to display RAM or a pointer to an intermediate buffer in system RAM?
i have not tried it yet.
Please let us know what you find.
In any case, but i don't think there is any video accelerator hardware in the Q, so using DDraw to draw a YUV surface will most likely be using the fall-back software YUV to RGB, which will probably be quite slow, so for video application, it's probably better to not use that on the Q.
I was referring to using DDraw to create a primary surface and lock it, giving you the same raw frame buffer access that you previously retrieved with GAPI.
The advantages of using DDraw over GAPI in this manner is that it will be the supported, performant method for frame buffer access going forward, while GAPI only exists for backward compatibility with pre-WM5 apps (as was the case with the GAPI implementation on Moto Q). DDraw also gives you full cooperation with GDI, which GAPI was never required to support (probably not important to PocketTV).
The advantages of using DDraw over GAPI in this manner is that it will be the supported, performant method for frame buffer access going forward, while GAPI only exists for backward compatibility with pre-WM5 apps (as was the case with the GAPI implementation on Moto Q). DDraw also gives you full cooperation with GDI, which GAPI was never required to support (probably not important to PocketTV).
Yes, if DDraw gives you access to the actual raw frame buffer, it would work well. But if it gives you only access to a copy, then it would not work. I'll have to experiment with it to check that it would work for us.
Have you tried? does DDraw give you direct access to the actual raw frame buffer, or to a copy? i.e. when you write in the buffer, can you see it immediately on the screen?
Have you tried? does DDraw give you direct access to the actual raw frame buffer, or to a copy? i.e. when you write in the buffer, can you see it immediately on the screen?
I don't have a MotoQ here to test, but on my HP iPaq 1955 DDraw's Lock on the primary surface is giving me the address to the raw frame buffer.
It's the same address that GXBeginDraw returns and I'm able to see the result of changing the memory immediately on the screen.
It's the same address that GXBeginDraw returns and I'm able to see the result of changing the memory immediately on the screen.
Digby wrote:I don't have a MotoQ here to test, but on my HP iPaq 1955 DDraw's Lock on the primary surface is giving me the address to the raw frame buffer.
It's the same address that GXBeginDraw returns and I'm able to see the result of changing the memory immediately on the screen.
Thanks for the info