va: Include drm fourcc header file in gstvavideoformat.h

And add some definition to pass the Windows compiling.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4044>
This commit is contained in:
He Junyan 2023-08-04 20:47:38 +08:00 committed by GStreamer Marge Bot
parent 461f943b52
commit ab9d11bc17
2 changed files with 17 additions and 4 deletions

View file

@ -40,10 +40,6 @@
#ifndef G_OS_WIN32 #ifndef G_OS_WIN32
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <libdrm/drm_fourcc.h>
#else
#define DRM_FORMAT_MOD_LINEAR 0ULL
#define DRM_FORMAT_MOD_INVALID 0xffffffffffffff
#endif #endif
#include "gstvasurfacecopy.h" #include "gstvasurfacecopy.h"

View file

@ -25,6 +25,23 @@
#include <gst/video/video.h> #include <gst/video/video.h>
#include <va/va.h> #include <va/va.h>
#ifndef G_OS_WIN32
#include <libdrm/drm_fourcc.h>
#else
/**
* DRM_FORMAT_INVALID: (skip) (attributes doc.skip=true)
*/
#define DRM_FORMAT_INVALID 0
/**
* DRM_FORMAT_MOD_LINEAR: (skip) (attributes doc.skip=true)
*/
#define DRM_FORMAT_MOD_LINEAR 0ULL
/**
* DRM_FORMAT_MOD_INVALID: (skip) (attributes doc.skip=true)
*/
#define DRM_FORMAT_MOD_INVALID 0xffffffffffffff
#endif
G_BEGIN_DECLS G_BEGIN_DECLS
GST_VA_API GST_VA_API