54 const int mb_xy =
s->mb_y *
s->mb_stride +
s->mb_x;
56 const int wrap =
s->b8_stride;
57 const int xy =
s->block_index[0];
59 s->current_picture.mbskip_table[mb_xy] =
s->mb_skipped;
62 int motion_x, motion_y;
67 motion_x =
s->mv[0][0][0];
68 motion_y =
s->mv[0][0][1];
71 motion_x =
s->mv[0][0][0] +
s->mv[0][1][0];
72 motion_y =
s->mv[0][0][1] +
s->mv[0][1][1];
73 motion_x = (motion_x>>1) | (motion_x&1);
75 s->p_field_mv_table[
i][0][mb_xy][0]=
s->mv[0][
i][0];
76 s->p_field_mv_table[
i][0][mb_xy][1]=
s->mv[0][
i][1];
78 s->current_picture.ref_index[0][4*mb_xy ] =
79 s->current_picture.ref_index[0][4*mb_xy + 1] =
s->field_select[0][0];
80 s->current_picture.ref_index[0][4*mb_xy + 2] =
81 s->current_picture.ref_index[0][4*mb_xy + 3] =
s->field_select[0][1];
85 s->current_picture.motion_val[0][xy][0] = motion_x;
86 s->current_picture.motion_val[0][xy][1] = motion_y;
87 s->current_picture.motion_val[0][xy + 1][0] = motion_x;
88 s->current_picture.motion_val[0][xy + 1][1] = motion_y;
89 s->current_picture.motion_val[0][xy +
wrap][0] = motion_x;
90 s->current_picture.motion_val[0][xy +
wrap][1] = motion_y;
91 s->current_picture.motion_val[0][xy + 1 +
wrap][0] = motion_x;
92 s->current_picture.motion_val[0][xy + 1 +
wrap][1] = motion_y;
107 const int linesize =
s->linesize;
108 const int uvlinesize=
s->uvlinesize;
109 const int xy =
s->mb_y *
s->mb_stride +
s->mb_x;
110 uint8_t *dest_y =
s->dest[0];
111 uint8_t *dest_cb=
s->dest[1];
112 uint8_t *dest_cr=
s->dest[2];
118 if (!
IS_SKIP(
s->current_picture.mb_type[xy])) {
120 s->h263dsp.h263_v_loop_filter(dest_y + 8 * linesize, linesize, qp_c);
121 s->h263dsp.h263_v_loop_filter(dest_y + 8 * linesize + 8, linesize, qp_c);
126 int qp_dt, qp_tt, qp_tc;
128 if (
IS_SKIP(
s->current_picture.mb_type[xy -
s->mb_stride]))
131 qp_tt =
s->current_picture.qscale_table[xy -
s->mb_stride];
139 const int chroma_qp=
s->chroma_qscale_table[qp_tc];
140 s->h263dsp.h263_v_loop_filter(dest_y, linesize, qp_tc);
141 s->h263dsp.h263_v_loop_filter(dest_y + 8, linesize, qp_tc);
143 s->h263dsp.h263_v_loop_filter(dest_cb, uvlinesize, chroma_qp);
144 s->h263dsp.h263_v_loop_filter(dest_cr, uvlinesize, chroma_qp);
148 s->h263dsp.h263_h_loop_filter(dest_y - 8 * linesize + 8, linesize, qp_tt);
151 if (qp_tt ||
IS_SKIP(
s->current_picture.mb_type[xy - 1 -
s->mb_stride]))
154 qp_dt =
s->current_picture.qscale_table[xy - 1 -
s->mb_stride];
157 const int chroma_qp=
s->chroma_qscale_table[qp_dt];
158 s->h263dsp.h263_h_loop_filter(dest_y - 8 * linesize, linesize, qp_dt);
159 s->h263dsp.h263_h_loop_filter(dest_cb - 8 * uvlinesize, uvlinesize, chroma_qp);
160 s->h263dsp.h263_h_loop_filter(dest_cr - 8 * uvlinesize, uvlinesize, chroma_qp);
166 s->h263dsp.h263_h_loop_filter(dest_y + 8, linesize, qp_c);
167 if(
s->mb_y + 1 ==
s->mb_height)
168 s->h263dsp.h263_h_loop_filter(dest_y + 8 * linesize + 8, linesize, qp_c);
173 if (qp_c ||
IS_SKIP(
s->current_picture.mb_type[xy - 1]))
176 qp_lc =
s->current_picture.qscale_table[xy - 1];
179 s->h263dsp.h263_h_loop_filter(dest_y, linesize, qp_lc);
180 if(
s->mb_y + 1 ==
s->mb_height){
181 const int chroma_qp=
s->chroma_qscale_table[qp_lc];
182 s->h263dsp.h263_h_loop_filter(dest_y + 8 * linesize, linesize, qp_lc);
183 s->h263dsp.h263_h_loop_filter(dest_cb, uvlinesize, chroma_qp);
184 s->h263dsp.h263_h_loop_filter(dest_cr, uvlinesize, chroma_qp);
194 int16_t *
A, *
B, *
C, (*mot_val)[2];
195 static const int off[4]= {2, 1, 1, -1};
198 mot_val =
s->current_picture.motion_val[dir] +
s->block_index[
block];
202 if (
s->first_slice_line &&
block<3) {
206 if(
s->mb_x ==
s->resync_mb_x){
208 }
else if(
s->mb_x + 1 ==
s->resync_mb_x &&
s->h263_pred){
222 if(
s->mb_x + 1 ==
s->resync_mb_x &&
s->h263_pred){
231 B = mot_val[ -
wrap];
233 if(
s->mb_x ==
s->resync_mb_x)
240 B = mot_val[ -
wrap];