bootlin / libva-v4l2-request

LibVA implementation for the Linux Video4Linux2 Request API
Other
76 stars 59 forks source link

WIP: Hantro G1 H.264 support #26

Open pH5 opened 4 years ago

pH5 commented 4 years ago

This should allow to decode H.264 videos on Hantro G1 with the currently merged (experimental) kernel interface for V4L2 stateless H.264 decoders.

WIP because this depends on #25 and https://github.com/intel/libva/pull/332. The kernel interface is not yet stable, and the scaling matrix interface still has a big FIXME.

pH5 commented 4 years ago

This can be used with https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/merge_requests/171.

ndufresne commented 4 years ago

In case that is interesting for you, here's two left over from my previous work:

https://github.com/ndufresne/libva-v4l2-request/commits/rockchip-support

It fixes the mplane detection, and improves performance for DeriveImage calls. DMABuf exportation was not working for me in GStreamer, I concluded best was to port GStreamer to the new surface export API instead of relying on a derived image.

ndufresne commented 4 years ago

I tried this against linux-media master tree today and it didn't work. The driver still tries to set the format in arbitrary order which cause an EBUSY, a restriction that exist on Hantro driver but not Cedrus. How did you manage to get this to work on Hantro driver ?