vo_gpu: hwdec_vaapi: avoid drm_fourcc.h dependency

Suggested by haasn
This commit is contained in:
Dave Airlie 2021-11-25 14:07:43 +10:00 committed by Niklas Haas
parent b8926dd484
commit 8ed1368501
1 changed files with 4 additions and 1 deletions

View File

@ -19,12 +19,15 @@
#include "hwdec_vaapi.h"
#include <EGL/egl.h>
#include <drm_fourcc.h>
#include "video/out/opengl/ra_gl.h"
typedef void* GLeglImageOES;
typedef void *EGLImageKHR;
#ifndef DRM_FORMAT_MOD_INVALID
#define DRM_FORMAT_MOD_INVALID ((UINT64_C(1) << 56) - 1)
#endif
// Any EGL_EXT_image_dma_buf_import definitions used in this source file.
#define EGL_LINUX_DMA_BUF_EXT 0x3270
#define EGL_LINUX_DRM_FOURCC_EXT 0x3271