Fix handling of preferred/compatible pixel formats with EGLRenderer and VAAPI/DRM backends

This commit is contained in:
Cameron Gutman committed 2021-02-04 19:39:18 -06:00
1 parent 76e81fa651
commit c3895f06c0
7 files changed
+47 -42

No files matched your search

@@ -386,6 +386,10 @@ bool DrmRenderer::canExportEGL() {
return true;
}
AVPixelFormat DrmRenderer::getEGLImagePixelFormat() {
return AV_PIX_FMT_NV12;
}
bool DrmRenderer::initializeEGL(EGLDisplay,
const EGLExtensions &ext) {
if (!ext.isSupported("EGL_EXT_image_dma_buf_import")) {