Lines Matching defs:block
256 /** @brief compares a block (either a full macroblock or a partition thereof)
257 against a proposed motion-compensated prediction of that block
578 int block;
588 for(block=0; block<4; block++){
594 const int mot_xy = s->block_index[block];
597 c->xmax = - 16*s->mb_x + s->width - 8*(block &1);
598 c->ymax = - 16*s->mb_y + s->height - 8*(block>>1);
607 if (s->first_slice_line && block<2) {
613 P_TOPRIGHT[0] = s->current_picture.motion_val[0][mot_xy - mot_stride + off[block]][0];
614 P_TOPRIGHT[1] = s->current_picture.motion_val[0][mot_xy - mot_stride + off[block]][1];
630 if (s->first_slice_line && block<2 && i>1 && i<9)
638 dmin4 = epzs_motion_search2(s, &mx4, &my4, P, block, block, s->p_mv_table, (1<<16)>>shift, 1);
640 dmin4= c->sub_motion_search(s, &mx4, &my4, dmin4, block, block, size, h);
644 const int offset= ((block&1) + (block>>1)*stride)*8;
647 uint8_t *ref= c->ref[block][0] + (mx4>>2) + (my4>>2)*stride;
655 uint8_t *ref= c->ref[block][0] + (mx4>>1) + (my4>>1)*stride;
675 s->current_picture.motion_val[0][s->block_index[block]][0] = mx4;
676 s->current_picture.motion_val[0][s->block_index[block]][1] = my4;
746 int block;
761 for(block=0; block<2; block++){
768 int16_t (*mv_table)[2]= mv_tables[block][field_select];
772 av_assert1(field_select_tables[block][xy]==0 || field_select_tables[block][xy]==1);
773 if(field_select_tables[block][xy] != field_select)
797 P_MV1[0]= mx; //FIXME not correct if block != field_select
800 dmin = epzs_motion_search2(s, &mx_i, &my_i, P, block, field_select+ref_index, mv_table, (1<<16)>>1, 0);
802 dmin= c->sub_motion_search(s, &mx_i, &my_i, dmin, block, field_select+ref_index, size, h);
819 dmin = s->mecc.mb_cmp[size](s, c->src[block][0], c->scratchpad, stride, h);
824 dmin += field_select != block; //slightly prefer same field
832 int16_t (*mv_table)[2]= mv_tables[block][best_field];
837 if(best_field != block) same=0;
840 field_select_tables[block][xy]= best_field;
893 int varc; ///< the variance of the block (sum of squared (p[y][x]-average))
1677 int block;
1678 for(block=0; block<4; block++){
1679 int off= (block& 1) + (block>>1)*wrap;