Mercurial > mplayer.hg
changeset 10471:8672c6119e2c
xvmc updates
author | iive |
---|---|
date | Sat, 26 Jul 2003 00:55:36 +0000 |
parents | 75b8b4340d84 |
children | 965ca9dc8cc8 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Fri Jul 25 14:56:28 2003 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sat Jul 26 00:55:36 2003 +0000 @@ -47,8 +47,7 @@ #define PIX_FMT_RGBA32 PIX_FMT_BGRA32 #endif -//!!TODO!! when ffmpeg is patched set correct version number -#if LIBAVCODEC_BUILD < 4671 +#if LIBAVCODEC_BUILD < 4672 #undef HAVE_XVMC #endif @@ -134,7 +133,7 @@ #ifdef HAVE_XVMC case IMGFMT_XVMC_IDCT_MPEG2: case IMGFMT_XVMC_MOCO_MPEG2: - if(avctx->pix_fmt==PIX_FMT_XVMC_MPEG2) return CONTROL_TRUE; + if(avctx->pix_fmt==PIX_FMT_XVMC_MPEG2_IDCT) return CONTROL_TRUE; #endif } return CONTROL_FALSE; @@ -193,7 +192,8 @@ avctx->flags|= CODEC_FLAG_EMU_EDGE;//do i need that??!! avctx->get_buffer= mc_get_buffer; avctx->release_buffer= mc_release_buffer; - avctx->draw_horiz_band = mc_render_slice; + avctx->draw_horiz_band = mc_render_slice; + avctx->slice_flags=SLICE_FLAG_CODED_ORDER|SLICE_FLAG_ALLOW_FIELD; }else #endif if(ctx->do_dr1){ @@ -406,7 +406,8 @@ case PIX_FMT_RGB24 : ctx->best_csp=IMGFMT_BGR24;break; //huffyuv case PIX_FMT_RGBA32: ctx->best_csp=IMGFMT_BGR32;break; //huffyuv / mjpeg #ifdef HAVE_XVMC - case PIX_FMT_XVMC_MPEG2:ctx->best_csp=IMGFMT_XVMC_IDCT_MPEG2;break; + case PIX_FMT_XVMC_MPEG2_MC:ctx->best_csp=IMGFMT_XVMC_MOCO_MPEG2;break; + case PIX_FMT_XVMC_MPEG2_IDCT:ctx->best_csp=IMGFMT_XVMC_IDCT_MPEG2;break; #endif default: ctx->best_csp=0;