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