25 # define MCFUNC(n) FUNC(n ## _420)
27 # define MCFUNC(n) FUNC(n ## _422)
29 # define MCFUNC(n) FUNC(n ## _444)
33 #define mc_part MCFUNC(mc_part)
39 int x_offset,
int y_offset,
52 x_offset, y_offset, qpix_put, chroma_put,
53 weight_op[0], weight_op[1], weight_avg[0],
56 mc_part_std(h, n, square, height, delta, dest_y, dest_cb, dest_cr,
57 x_offset, y_offset, qpix_put, chroma_put, qpix_avg,
70 const int mb_xy = h->mb_xy;
71 const int mb_type = h->cur_pic.mb_type[
mb_xy];
80 mc_part(h, 0, 1, 16, 0, dest_y, dest_cb, dest_cr, 0, 0,
81 qpix_put[0], chroma_put[0], qpix_avg[0], chroma_avg[0],
82 weight_op, weight_avg,
85 mc_part(h, 0, 0, 8, 8 <<
PIXEL_SHIFT, dest_y, dest_cb, dest_cr, 0, 0,
86 qpix_put[1], chroma_put[0], qpix_avg[1], chroma_avg[0],
87 weight_op, weight_avg,
89 mc_part(h, 8, 0, 8, 8 <<
PIXEL_SHIFT, dest_y, dest_cb, dest_cr, 0, 4,
90 qpix_put[1], chroma_put[0], qpix_avg[1], chroma_avg[0],
91 weight_op, weight_avg,
94 mc_part(h, 0, 0, 16, 8 * h->mb_linesize, dest_y, dest_cb, dest_cr, 0, 0,
95 qpix_put[1], chroma_put[1], qpix_avg[1], chroma_avg[1],
96 &weight_op[1], &weight_avg[1],
98 mc_part(h, 4, 0, 16, 8 * h->mb_linesize, dest_y, dest_cb, dest_cr, 4, 0,
99 qpix_put[1], chroma_put[1], qpix_avg[1], chroma_avg[1],
100 &weight_op[1], &weight_avg[1],
107 for (i = 0; i < 4; i++) {
110 int x_offset = (i & 1) << 2;
111 int y_offset = (i & 2) << 1;
114 mc_part(h, n, 1, 8, 0, dest_y, dest_cb, dest_cr,
116 qpix_put[1], chroma_put[1], qpix_avg[1], chroma_avg[1],
117 &weight_op[1], &weight_avg[1],
122 qpix_put[2], chroma_put[1], qpix_avg[2], chroma_avg[1],
123 &weight_op[1], &weight_avg[1],
126 dest_y, dest_cb, dest_cr, x_offset, y_offset + 2,
127 qpix_put[2], chroma_put[1], qpix_avg[2], chroma_avg[1],
128 &weight_op[1], &weight_avg[1],
131 mc_part(h, n, 0, 8, 4 * h->mb_linesize,
132 dest_y, dest_cb, dest_cr, x_offset, y_offset,
133 qpix_put[2], chroma_put[2], qpix_avg[2], chroma_avg[2],
134 &weight_op[2], &weight_avg[2],
136 mc_part(h, n + 1, 0, 8, 4 * h->mb_linesize,
137 dest_y, dest_cb, dest_cr, x_offset + 2, y_offset,
138 qpix_put[2], chroma_put[2], qpix_avg[2], chroma_avg[2],
139 &weight_op[2], &weight_avg[2],
144 for (j = 0; j < 4; j++) {
145 int sub_x_offset = x_offset + 2 * (j & 1);
146 int sub_y_offset = y_offset + (j & 2);
148 dest_y, dest_cb, dest_cr, sub_x_offset, sub_y_offset,
149 qpix_put[2], chroma_put[2], qpix_avg[2], chroma_avg[2],
150 &weight_op[2], &weight_avg[2],