aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-02-14 17:12:25 +0000
committerDiego Biurrun <diego@biurrun.de>2009-02-14 17:12:25 +0000
commitea375af8c9480583d3e0fe444f6ce048f34b46f3 (patch)
tree27835da0c3d409719233553d88662399a539ae52
parent3ae01928391b9297316d69eaa89c4a3141d5b04f (diff)
downloadffmpeg-ea375af8c9480583d3e0fe444f6ce048f34b46f3.tar.gz
Give public #defines that are used by MPlayer an AV_ prefix.
Originally committed as revision 17244 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegvideo_xvmc.c10
-rw-r--r--libavcodec/xvmc.h8
2 files changed, 9 insertions, 9 deletions
diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c
index dd3ff13716..aca343602a 100644
--- a/libavcodec/mpegvideo_xvmc.c
+++ b/libavcodec/mpegvideo_xvmc.c
@@ -41,7 +41,7 @@ void XVMC_init_block(MpegEncContext *s)
struct xvmc_render_state * render;
render = (struct xvmc_render_state*)s->current_picture.data[2];
assert(render);
- if (!render || (render->magic != MP_XVMC_RENDER_MAGIC)) {
+ if (!render || (render->magic != AV_XVMC_RENDER_MAGIC)) {
assert(0);
return;//make sure that this is a render packet
}
@@ -75,7 +75,7 @@ int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx)
render = (struct xvmc_render_state*)s->current_picture.data[2];
assert(render);
- if (!render || (render->magic != MP_XVMC_RENDER_MAGIC))
+ if (!render || (render->magic != AV_XVMC_RENDER_MAGIC))
return -1;//make sure that this is render packet
render->picture_structure = s->picture_structure;
@@ -95,7 +95,7 @@ int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx)
assert(next);
if (!next)
return -1;
- if (next->magic != MP_XVMC_RENDER_MAGIC)
+ if (next->magic != AV_XVMC_RENDER_MAGIC)
return -1;
render->p_future_surface = next->p_surface;
//no return here, going to set forward prediction
@@ -103,7 +103,7 @@ int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx)
last = (struct xvmc_render_state*)s->last_picture.data[2];
if (!last)// && !s->first_field)
last = render;//predict second field from the first
- if (last->magic != MP_XVMC_RENDER_MAGIC)
+ if (last->magic != AV_XVMC_RENDER_MAGIC)
return -1;
render->p_past_surface = last->p_surface;
return 0;
@@ -155,7 +155,7 @@ void XVMC_decode_mb(MpegEncContext *s)
//START OF XVMC specific code
render = (struct xvmc_render_state*)s->current_picture.data[2];
assert(render);
- assert(render->magic==MP_XVMC_RENDER_MAGIC);
+ assert(render->magic==AV_XVMC_RENDER_MAGIC);
assert(render->mv_blocks);
//take the next free macroblock
diff --git a/libavcodec/xvmc.h b/libavcodec/xvmc.h
index 78e865a6da..9c37e67d53 100644
--- a/libavcodec/xvmc.h
+++ b/libavcodec/xvmc.h
@@ -30,13 +30,13 @@
//the surface should be shown, the video driver manipulates this
-#define MP_XVMC_STATE_DISPLAY_PENDING 1
+#define AV_XVMC_STATE_DISPLAY_PENDING 1
//the surface is needed for prediction, the codec manipulates this
-#define MP_XVMC_STATE_PREDICTION 2
+#define AV_XVMC_STATE_PREDICTION 2
//this surface is needed for subpicture rendering
-#define MP_XVMC_STATE_OSD_SOURCE 4
+#define AV_XVMC_STATE_OSD_SOURCE 4
// 1337 IDCT MCo
-#define MP_XVMC_RENDER_MAGIC 0x1DC711C0
+#define AV_XVMC_RENDER_MAGIC 0x1DC711C0
struct xvmc_render_state {
//these are not changed by the decoder!