|
VPU/GPU video in a texture |
Kev Callahan
Member #6,022
July 2005
|
Hi, I'm currently messing around with (rpi) OPENGLES and Allegro 5 in order to display video. Problem I have (not really a problem but would be a 'nice to have') is that I have an OPENGL texture id for the video buffer that is filled by the VPU and I can display it directly using OPENGL glDrawArrays() call and it's working ok. However, what would be nice is to create an ALLEGRO_BITMAP linked to the existing OPENGL texture id for the buffer (already created using eglCreateImageKHR()). Is there any simple way to create an ALLEGRO_BITMAP directly linked to an existing texture? Kev |
Polybios
Member #12,293
October 2010
|
It's not possible to do it this way directly, I think. |
Kev Callahan
Member #6,022
July 2005
|
Unfortunately I think I need to use eglCreateImageKHR() directly to create the texture available to the VPU, other methods I tried failed (ie using al_create_bitmap( )and using al_get_opengl_texture()). I could very well be wrong though and if anyone has any insight I'm keen to listen if they've had success in this area. |
Polybios
Member #12,293
October 2010
|
Ok, I see how much I don't know. |
Kev Callahan
Member #6,022
July 2005
|
,.. Thanks EDIT: It sort of works although the texture is upside down and starts halfway through.. The ALLEGRO_BITMAP size is 1920x1080 but the OPENGL bitmap is (obviously) rounded up to 2048x2048, so maybe I have to work around that... |
Edgar Reynaldo
Major Reynaldo
May 2007
|
That's cool. Interested to see your progress. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Kev Callahan
Member #6,022
July 2005
|
once I get things going properly I'll share it all as per usual |
|