Mercurial > libavcodec.hg
comparison mpegvideo.c @ 9011:90c99bda19f5 libavcodec
Approved hunks for VAAPI / our new shiny hwaccel API
by Gwenole Beauchesne gbeauchesne splitted desktop com
author | michael |
---|---|
date | Mon, 23 Feb 2009 13:35:52 +0000 |
parents | 043574c5c153 |
children | 0f95e4f0a3f5 |
comparison
equal
deleted
inserted
replaced
9010:b6a47d0b6b63 | 9011:90c99bda19f5 |
---|---|
953 int i; | 953 int i; |
954 /* draw edge for correct motion prediction if outside */ | 954 /* draw edge for correct motion prediction if outside */ |
955 //just to make sure that all data is rendered. | 955 //just to make sure that all data is rendered. |
956 if(CONFIG_MPEG_XVMC_DECODER && s->avctx->xvmc_acceleration){ | 956 if(CONFIG_MPEG_XVMC_DECODER && s->avctx->xvmc_acceleration){ |
957 ff_xvmc_field_end(s); | 957 ff_xvmc_field_end(s); |
958 }else if(!(s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU) | 958 }else if(!s->avctx->hwaccel |
959 && !(s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU) | |
959 && s->unrestricted_mv | 960 && s->unrestricted_mv |
960 && s->current_picture.reference | 961 && s->current_picture.reference |
961 && !s->intra_only | 962 && !s->intra_only |
962 && !(s->flags&CODEC_FLAG_EMU_EDGE)) { | 963 && !(s->flags&CODEC_FLAG_EMU_EDGE)) { |
963 s->dsp.draw_edges(s->current_picture.data[0], s->linesize , s->h_edge_pos , s->v_edge_pos , EDGE_WIDTH ); | 964 s->dsp.draw_edges(s->current_picture.data[0], s->linesize , s->h_edge_pos , s->v_edge_pos , EDGE_WIDTH ); |