xbmc icon indicating copy to clipboard operation
xbmc copied to clipboard

[linux] allow using VAAPI with DRM PRIME

Open lrusak opened this issue 5 years ago • 4 comments

This is in conjunction with #19140 as it won't work on it's own. I'm PRing it separate to keep review smaller (and because I'm able to as the decoder is separate from the renderer).

This allow using ffmpegs av_hwframe_map to convert AV_PIX_FMT_VAAPI to AV_PIX_FMT_DRM_PRIME. The difference is basically a struct and doesn't require any copying.

This allow us to use the direct-to-plane rendering and EGL render methods for DRM PRIME.

Currently this PR doesn't offer any reason to use DRM PRIME with vaapi over our normal vaapi renderer. However in the future we will be able to activate HDR with VAAPI.

lrusak avatar Jan 28 '21 23:01 lrusak

@jernejsk I added a commit to check for m_pFrame->buf[0]. Please check :smiley:

lrusak avatar Sep 14 '21 19:09 lrusak

@lrusak this needs a rebase

jenkins4kodi avatar Nov 25 '21 20:11 jenkins4kodi