Mercurial > libavcodec.hg
diff mpeg12.c @ 8342:e76576f38ade libavcodec
Switch xvmc over to a CONFIG_ option.
author | diego |
---|---|
date | Mon, 15 Dec 2008 22:22:51 +0000 |
parents | cf4d575b1982 |
children | 35f1b87d908f |
line wrap: on
line diff
--- a/mpeg12.c Mon Dec 15 22:14:58 2008 +0000 +++ b/mpeg12.c Mon Dec 15 22:22:51 2008 +0000 @@ -303,7 +303,7 @@ }else memset(s->last_mv, 0, sizeof(s->last_mv)); /* reset mv prediction */ s->mb_intra = 1; -#ifdef HAVE_XVMC +#ifdef CONFIG_XVMC //if 1, we memcpy blocks in xvmcvideo if(s->avctx->xvmc_acceleration > 1){ XVMC_pack_pblocks(s,-1);//inter are always full blocks @@ -516,7 +516,7 @@ return -1; } -#ifdef HAVE_XVMC +#ifdef CONFIG_XVMC //if 1, we memcpy blocks in xvmcvideo if(s->avctx->xvmc_acceleration > 1){ XVMC_pack_pblocks(s,cbp); @@ -1639,7 +1639,7 @@ } } } -#ifdef HAVE_XVMC +#ifdef CONFIG_XVMC // MPV_frame_start will call this function too, // but we need to call it on every field if(s->avctx->xvmc_acceleration) @@ -1730,7 +1730,7 @@ } for(;;) { -#ifdef HAVE_XVMC +#ifdef CONFIG_XVMC //If 1, we memcpy blocks in xvmcvideo. if(s->avctx->xvmc_acceleration > 1) XVMC_init_block(s);//set s->block @@ -1912,7 +1912,7 @@ if (!s1->mpeg_enc_ctx_allocated || !s->current_picture_ptr) return 0; -#ifdef HAVE_XVMC +#ifdef CONFIG_XVMC if(s->avctx->xvmc_acceleration) XVMC_field_end(s); #endif @@ -2472,7 +2472,7 @@ .long_name= NULL_IF_CONFIG_SMALL("MPEG-1 video"), }; -#ifdef HAVE_XVMC +#ifdef CONFIG_XVMC static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx){ Mpeg1Context *s;