mirror of https://github.com/mpv-player/mpv
vo_gpu: hwdec_vaapi: avoid drm_fourcc.h dependency
Suggested by haasn
This commit is contained in:
parent
b8926dd484
commit
8ed1368501
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue