comparison mpegvideo_xvmc.c @ 8862:5aa3cfee2291 libavcodec

get rid of the branch prediction
author iive
date Sat, 14 Feb 2009 19:02:46 +0000
parents da23b389e856
children 4b11309c8322
comparison
equal deleted inserted replaced
8861:da23b389e856 8862:5aa3cfee2291
224 224
225 mv_block->motion_vertical_field_select = 0; 225 mv_block->motion_vertical_field_select = 0;
226 226
227 //set correct field references 227 //set correct field references
228 if (s->mv_type == MV_TYPE_FIELD || s->mv_type == MV_TYPE_16X8) { 228 if (s->mv_type == MV_TYPE_FIELD || s->mv_type == MV_TYPE_16X8) {
229 if (s->field_select[0][0]) 229 mv_block->motion_vertical_field_select |= s->field_select[0][0];
230 mv_block->motion_vertical_field_select |= 1; 230 mv_block->motion_vertical_field_select |= s->field_select[1][0]<<1;
231 if (s->field_select[1][0]) 231 mv_block->motion_vertical_field_select |= s->field_select[0][1]<<2;
232 mv_block->motion_vertical_field_select |= 2; 232 mv_block->motion_vertical_field_select |= s->field_select[1][1]<<3;
233 if (s->field_select[0][1])
234 mv_block->motion_vertical_field_select |= 4;
235 if (s->field_select[1][1])
236 mv_block->motion_vertical_field_select |= 8;
237 } 233 }
238 }//!intra 234 }//!intra
239 //time to handle data blocks; 235 //time to handle data blocks;
240 mv_block->index = render->next_free_data_block_num; 236 mv_block->index = render->next_free_data_block_num;
241 237