[FFmpeg-devel] XVMC Deathmatch

Ivan Kalvachev ikalvachev
Sun Feb 15 12:11:58 CET 2009


On 2/14/09, Michael Niedermayer <michaelni at gmx.at> wrote:
> [...]
>>            case  MV_TYPE_DMV:
>>                mv_block->motion_type = XVMC_PREDICTION_DUAL_PRIME;
>>                if(s->picture_structure == PICT_FRAME){
>>
>>                    mv_block->PMV[0][0][0] = s->mv[0][0][0];//top from top
>>                    mv_block->PMV[0][0][1] = s->mv[0][0][1]<<1;
>>
>>                    mv_block->PMV[0][1][0] = s->mv[0][0][0];//bottom from
>> bottom
>>                    mv_block->PMV[0][1][1] = s->mv[0][0][1]<<1;
>>
>>                    mv_block->PMV[1][0][0] = s->mv[0][2][0];//dmv00, top
>> from bottom
>>                    mv_block->PMV[1][0][1] = s->mv[0][2][1]<<1;//dmv01
>>
>>                    mv_block->PMV[1][1][0] = s->mv[0][3][0];//dmv10, bottom
>> from top
>>                    mv_block->PMV[1][1][1] = s->mv[0][3][1]<<1;//dmv11
>>
>>                }else{
>
>>                    mv_block->PMV[0][1][0] = s->mv[0][2][0];//dmv00
>>                    mv_block->PMV[0][1][1] = s->mv[0][2][1];//dmv01
>
> 1 point
> copy both at once

This is not possible.
This assignment converts (int) to (short).




More information about the ffmpeg-devel mailing list