Software Archive
Read-only legacy content
17061 Discussions

vaapi vaPutSurface appears to do nothing

kemp__richard
Beginner
1,047 Views

I am successfully using vaapi on Intel linux machines (haswell i5) to decode h.264 video and display in an x window. I have ported this code to a native application on android 4.4.2 r1 ia1.

The decoding works as I can convert a frame to rgb and copy the bytes onto the native window, when I use vaPutSurface it returns 0 but nothing appears on the window. I do however get the 2 following lines of log output

11-18 16:52:45.396: D/MOS(9725): mm:Mos_InitInterface_Linux called

11-18 16:52:45.396: E/MOS(9725): Mos_InitInterface_Linux: Unable to initialize context

Can anyone provide me with some assistance
 

Thanks,

Richard

0 Kudos
1 Reply
kemp__richard
Beginner
1,047 Views

I should probably say I am using ANativeWindow_fromSurface(pEnv, pSurface);

to get a ANativeWindow and pass this to vaPutSurface

0 Kudos
Reply