Add macro for printing FourCC values
This commit is contained in:
parent
be460970a8
commit
46d58e55a3
3 changed files with 24 additions and 11 deletions
|
|
@ -16,6 +16,18 @@ extern "C" {
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifndef FOURCC_FMT
|
||||
#define FOURCC_FMT "%c%c%c%c"
|
||||
#endif
|
||||
|
||||
#ifndef FOURCC_FMT_ARGS
|
||||
#define FOURCC_FMT_ARGS(f) \
|
||||
(char)((f) & 0xFF), \
|
||||
(char)(((f) >> 8) & 0xFF), \
|
||||
(char)(((f) >> 16) & 0xFF), \
|
||||
(char)(((f) >> 24) & 0xFF)
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_EGL
|
||||
#define MESA_EGL_NO_X11_HEADERS
|
||||
#define EGL_NO_X11
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue