aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/xvmc.h
diff options
context:
space:
mode:
authorIvan Kalvachev <ikalvachev@gmail.com>2009-02-14 17:24:01 +0000
committerIvan Kalvachev <ikalvachev@gmail.com>2009-02-14 17:24:01 +0000
commit117f9234c8ce6ca8abd57ff541ac3ed0e72b5b5c (patch)
treed4b62be968d14ad2b52bfed8430993c86b7d5fea /libavcodec/xvmc.h
parentea375af8c9480583d3e0fe444f6ce048f34b46f3 (diff)
downloadffmpeg-117f9234c8ce6ca8abd57ff541ac3ed0e72b5b5c.tar.gz
Rename xvmc flags to follow ffmpeg AV_ notion.
preserve MP_ ones until next major bump. Originally committed as revision 17245 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/xvmc.h')
-rw-r--r--libavcodec/xvmc.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/libavcodec/xvmc.h b/libavcodec/xvmc.h
index 9c37e67d53..39905113f3 100644
--- a/libavcodec/xvmc.h
+++ b/libavcodec/xvmc.h
@@ -32,11 +32,18 @@
//the surface should be shown, the video driver manipulates this
#define AV_XVMC_STATE_DISPLAY_PENDING 1
//the surface is needed for prediction, the codec manipulates this
-#define AV_XVMC_STATE_PREDICTION 2
+#define AV_XVMC_STATE_PREDICTION 2
//this surface is needed for subpicture rendering
-#define AV_XVMC_STATE_OSD_SOURCE 4
-// 1337 IDCT MCo
-#define AV_XVMC_RENDER_MAGIC 0x1DC711C0
+#define AV_XVMC_STATE_OSD_SOURCE 4
+// 1337 IDCT MCo
+#define AV_XVMC_RENDER_MAGIC 0x1DC711C0
+
+#if LIBAVCODEC_VERSION_MAJOR < 53
+#define MP_XVMC_STATE_DISPLAY_PENDING AV_XVMC_STATE_DISPLAY_PENDING
+#define MP_XVMC_STATE_PREDICTION AV_XVMC_STATE_PREDICTION
+#define MP_XVMC_STATE_OSD_SOURCE AV_XVMC_STATE_OSD_SOURCE
+#define MP_XVMC_RENDER_MAGIC AV_XVMC_RENDER_MAGIC
+#endif
struct xvmc_render_state {
//these are not changed by the decoder!