changeset 8846:9e3956a4fd28 libavcodec

Rename xvmc flags to follow ffmpeg AV_ notion. preserve MP_ ones until next major bump.
author iive
date Sat, 14 Feb 2009 17:24:01 +0000
parents aee8c48ff4b0
children 1b2bb769c9ad
files xvmc.h
diffstat 1 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/xvmc.h	Sat Feb 14 17:12:25 2009 +0000
+++ b/xvmc.h	Sat Feb 14 17:24:01 2009 +0000
@@ -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!