Lines Matching defs:wrap

217     int xy, wrap, off = 0;
240 wrap = s->b8_stride;
251 s->current_picture.motion_val[0][xy + wrap + v->blocks_off][0] = 0;
252 s->current_picture.motion_val[0][xy + wrap + v->blocks_off][1] = 0;
253 s->current_picture.motion_val[0][xy + wrap + 1 + v->blocks_off][0] = 0;
254 s->current_picture.motion_val[0][xy + wrap + 1 + v->blocks_off][1] = 0;
258 s->current_picture.motion_val[1][xy + wrap + v->blocks_off][0] = 0;
259 s->current_picture.motion_val[1][xy + wrap + v->blocks_off][1] = 0;
260 s->current_picture.motion_val[1][xy + wrap + 1 + v->blocks_off][0] = 0;
261 s->current_picture.motion_val[1][xy + wrap + 1 + v->blocks_off][1] = 0;
282 off = s->mb_x ? -1 : 2 * s->mb_width - wrap - 1;
298 a_valid = a_valid && !is_intra[xy - wrap];
299 b_valid = b_valid && !is_intra[xy - wrap + off];
304 A = s->current_picture.motion_val[dir][xy - wrap + v->blocks_off];
305 a_f = v->mv_f[dir][xy - wrap + v->blocks_off];
315 B = s->current_picture.motion_val[dir][xy - wrap + off + v->blocks_off];
316 b_f = v->mv_f[dir][xy - wrap + off + v->blocks_off];
419 if (is_intra[xy - wrap])
459 s->current_picture.motion_val[dir][xy + wrap + v->blocks_off][0] = s->current_picture.motion_val[dir][xy + v->blocks_off][0];
460 s->current_picture.motion_val[dir][xy + wrap + v->blocks_off][1] = s->current_picture.motion_val[dir][xy + v->blocks_off][1];
461 s->current_picture.motion_val[dir][xy + wrap + 1 + v->blocks_off][0] = s->current_picture.motion_val[dir][xy + v->blocks_off][0];
462 s->current_picture.motion_val[dir][xy + wrap + 1 + v->blocks_off][1] = s->current_picture.motion_val[dir][xy + v->blocks_off][1];
464 v->mv_f[dir][xy + wrap + v->blocks_off] = v->mv_f[dir][xy + wrap + 1 + v->blocks_off] = v->mv_f[dir][xy + v->blocks_off];
474 int xy, wrap, off = 0;
482 wrap = s->b8_stride;
493 s->current_picture.motion_val[0][xy + wrap][0] = 0;
494 s->current_picture.motion_val[0][xy + wrap][1] = 0;
495 s->current_picture.motion_val[0][xy + wrap + 1][0] = 0;
496 s->current_picture.motion_val[0][xy + wrap + 1][1] = 0;
500 s->current_picture.motion_val[1][xy + wrap][0] = 0;
501 s->current_picture.motion_val[1][xy + wrap][1] = 0;
502 s->current_picture.motion_val[1][xy + wrap + 1][0] = 0;
503 s->current_picture.motion_val[1][xy + wrap + 1][1] = 0;
518 + s->current_picture.motion_val[dir][xy - 1 + off * wrap][0] + 1) >> 1;
520 + s->current_picture.motion_val[dir][xy - 1 + off * wrap][1] + 1) >> 1;
536 pos_b = s->block_index[n_adj] - 2 * wrap;
540 B[0] = s->current_picture.motion_val[dir][s->block_index[n_adj] - 2 * wrap][0];
541 B[1] = s->current_picture.motion_val[dir][s->block_index[n_adj] - 2 * wrap][1];
543 B[0] = (B[0] + s->current_picture.motion_val[dir][s->block_index[n_adj ^ 2] - 2 * wrap][0] + 1) >> 1;
544 B[1] = (B[1] + s->current_picture.motion_val[dir][s->block_index[n_adj ^ 2] - 2 * wrap][1] + 1) >> 1;
551 pos_c = s->block_index[2] - 2 * wrap + 2;
555 C[0] = s->current_picture.motion_val[dir][s->block_index[n_adj] - 2 * wrap + 2][0];
556 C[1] = s->current_picture.motion_val[dir][s->block_index[n_adj] - 2 * wrap + 2][1];
558 C[0] = (1 + C[0] + (s->current_picture.motion_val[dir][s->block_index[n_adj ^ 2] - 2 * wrap + 2][0])) >> 1;
559 C[1] = (1 + C[1] + (s->current_picture.motion_val[dir][s->block_index[n_adj ^ 2] - 2 * wrap + 2][1])) >> 1;
565 pos_c = s->block_index[3] - 2 * wrap - 2;
569 C[0] = s->current_picture.motion_val[dir][s->block_index[n_adj] - 2 * wrap - 2][0];
570 C[1] = s->current_picture.motion_val[dir][s->block_index[n_adj] - 2 * wrap - 2][1];
572 C[0] = (1 + C[0] + s->current_picture.motion_val[dir][s->block_index[1] - 2 * wrap - 2][0]) >> 1;
573 C[1] = (1 + C[1] + s->current_picture.motion_val[dir][s->block_index[1] - 2 * wrap - 2][1]) >> 1;
679 s->current_picture.motion_val[dir][xy + wrap ][0] = s->current_picture.motion_val[dir][xy][0];
680 s->current_picture.motion_val[dir][xy + wrap ][1] = s->current_picture.motion_val[dir][xy][1];
681 s->current_picture.motion_val[dir][xy + wrap + 1][0] = s->current_picture.motion_val[dir][xy][0];
682 s->current_picture.motion_val[dir][xy + wrap + 1][1] = s->current_picture.motion_val[dir][xy][1];
695 int xy, wrap, off = 0;
714 wrap = s->b8_stride;
747 A = s->current_picture.motion_val[0][xy - wrap * 2];
749 B = s->current_picture.motion_val[0][xy - wrap * 2 + off];
782 if (is_intra[xy - wrap])
816 A = s->current_picture.motion_val[1][xy - wrap * 2];
818 B = s->current_picture.motion_val[1][xy - wrap * 2 + off];
852 if (is_intra[xy - wrap])