-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
define own set of AV_PIX_FMT_* for libavutils older than (51,42,0)
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright 2013 Rinat Ibragimov | ||
* | ||
* This file is part of libvdpau-va-gl | ||
* | ||
* libvdpau-va-gl is distributed under the terms of the LGPLv3. See COPYING for details. | ||
*/ | ||
|
||
#ifndef VA_GL_SRC_PIXFMT_COMPAT_H | ||
#define VA_GL_SRC_PIXFMT_COMPAT_H | ||
|
||
#include <libavutil/pixfmt.h> | ||
|
||
#if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(51, 42, 0) | ||
|
||
#define AV_PIX_FMT_NONE PIX_FMT_NONE | ||
#define AV_PIX_FMT_NV12 PIX_FMT_NV12 | ||
#define AV_PIX_FMT_YUV420P PIX_FMT_YUV420P | ||
#define AV_PIX_FMT_UYVY422 PIX_FMT_UYVY422 | ||
#define AV_PIX_FMT_YUYV422 PIX_FMT_YUYV422 | ||
|
||
#endif // old libavutil version | ||
|
||
#endif // VA_GL_SRC_PIXFMT_COMPAT_H |