27 # define MCFUNC(n) FUNC(n ## _420)
29 # define MCFUNC(n) FUNC(n ## _422)
31 # define MCFUNC(n) FUNC(n ## _444)
35 #define mc_part MCFUNC(mc_part)
41 int x_offset,
int y_offset,
54 x_offset, y_offset, qpix_put, chroma_put,
55 weight_op[0], weight_op[1], weight_avg[0],
58 mc_part_std(h, n, square, height, delta, dest_y, dest_cb, dest_cr,
59 x_offset, y_offset, qpix_put, chroma_put, qpix_avg,
72 const int mb_xy = h->mb_xy;
73 const int mb_type = h->cur_pic.mb_type[
mb_xy];
82 mc_part(h, 0, 1, 16, 0, dest_y, dest_cb, dest_cr, 0, 0,
83 qpix_put[0], chroma_put[0], qpix_avg[0], chroma_avg[0],
84 weight_op, weight_avg,
87 mc_part(h, 0, 0, 8, 8 <<
PIXEL_SHIFT, dest_y, dest_cb, dest_cr, 0, 0,
88 qpix_put[1], chroma_put[0], qpix_avg[1], chroma_avg[0],
89 weight_op, weight_avg,
91 mc_part(h, 8, 0, 8, 8 <<
PIXEL_SHIFT, dest_y, dest_cb, dest_cr, 0, 4,
92 qpix_put[1], chroma_put[0], qpix_avg[1], chroma_avg[0],
93 weight_op, weight_avg,
96 mc_part(h, 0, 0, 16, 8 * h->mb_linesize, dest_y, dest_cb, dest_cr, 0, 0,
97 qpix_put[1], chroma_put[1], qpix_avg[1], chroma_avg[1],
98 &weight_op[1], &weight_avg[1],
100 mc_part(h, 4, 0, 16, 8 * h->mb_linesize, dest_y, dest_cb, dest_cr, 4, 0,
101 qpix_put[1], chroma_put[1], qpix_avg[1], chroma_avg[1],
102 &weight_op[1], &weight_avg[1],
109 for (i = 0; i < 4; i++) {
112 int x_offset = (i & 1) << 2;
113 int y_offset = (i & 2) << 1;
116 mc_part(h, n, 1, 8, 0, dest_y, dest_cb, dest_cr,
118 qpix_put[1], chroma_put[1], qpix_avg[1], chroma_avg[1],
119 &weight_op[1], &weight_avg[1],
124 qpix_put[2], chroma_put[1], qpix_avg[2], chroma_avg[1],
125 &weight_op[1], &weight_avg[1],
128 dest_y, dest_cb, dest_cr, x_offset, y_offset + 2,
129 qpix_put[2], chroma_put[1], qpix_avg[2], chroma_avg[1],
130 &weight_op[1], &weight_avg[1],
133 mc_part(h, n, 0, 8, 4 * h->mb_linesize,
134 dest_y, dest_cb, dest_cr, x_offset, y_offset,
135 qpix_put[2], chroma_put[2], qpix_avg[2], chroma_avg[2],
136 &weight_op[2], &weight_avg[2],
138 mc_part(h, n + 1, 0, 8, 4 * h->mb_linesize,
139 dest_y, dest_cb, dest_cr, x_offset + 2, y_offset,
140 qpix_put[2], chroma_put[2], qpix_avg[2], chroma_avg[2],
141 &weight_op[2], &weight_avg[2],
146 for (j = 0; j < 4; j++) {
147 int sub_x_offset = x_offset + 2 * (j & 1);
148 int sub_y_offset = y_offset + (j & 2);
150 dest_y, dest_cb, dest_cr, sub_x_offset, sub_y_offset,
151 qpix_put[2], chroma_put[2], qpix_avg[2], chroma_avg[2],
152 &weight_op[2], &weight_avg[2],