I'm looking to include .ogv files for the cutscenes in our game. We're looking at using TheoraPlay for decoding the video to get the frames. I can use the orxDisplay_SetBitmapData() to draw the frame on a bitmap.
I have Theora properly decoding the video/audio from the file, but I'm having issues with making it display through Orx.
Here are my questions/issues:
How can I make the bitmap drawn to the screen. orxDisplay_GetScreenBitmap() gives me the bitmap for the main display, but I can't call SetBitmapData() on the main screen display. If I call CreateBitmap(), will that bitmap automatically be drawn to the screen?
How can I get the proper formatting? TheoraPlay claims to support RGBA decoding, but when I pass frame->pixels to SetBitmapData(), I get the error output "Can't set bitmap data: format needs to be RGBA."
On a related note, I'm slightly confused on what to pass as the number of bytes. Presumably, it would be frame->width * frame->height * 4 (number of pixels to draw multiplied by four bytes per pixel). Is this correct?