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];
60 int motion_x, motion_y;
65 motion_x =
s->mv[0][0][0];
66 motion_y =
s->mv[0][0][1];
69 motion_x =
s->mv[0][0][0] +
s->mv[0][1][0];
70 motion_y =
s->mv[0][0][1] +
s->mv[0][1][1];
71 motion_x = (motion_x>>1) | (motion_x&1);
73 s->p_field_mv_table[
i][0][mb_xy][0]=
s->mv[0][
i][0];
74 s->p_field_mv_table[
i][0][mb_xy][1]=
s->mv[0][
i][1];
76 s->cur_pic.ref_index[0][4*mb_xy ] =
77 s->cur_pic.ref_index[0][4*mb_xy + 1] =
s->field_select[0][0];
78 s->cur_pic.ref_index[0][4*mb_xy + 2] =
79 s->cur_pic.ref_index[0][4*mb_xy + 3] =
s->field_select[0][1];
83 s->cur_pic.motion_val[0][xy][0] = motion_x;
84 s->cur_pic.motion_val[0][xy][1] = motion_y;
85 s->cur_pic.motion_val[0][xy + 1][0] = motion_x;
86 s->cur_pic.motion_val[0][xy + 1][1] = motion_y;
87 s->cur_pic.motion_val[0][xy +
wrap][0] = motion_x;
88 s->cur_pic.motion_val[0][xy +
wrap][1] = motion_y;
89 s->cur_pic.motion_val[0][xy + 1 +
wrap][0] = motion_x;
90 s->cur_pic.motion_val[0][xy + 1 +
wrap][1] = motion_y;
96 const int linesize =
s->linesize;
97 const int uvlinesize=
s->uvlinesize;
98 const int xy =
s->mb_y *
s->mb_stride +
s->mb_x;
99 uint8_t *dest_y =
s->dest[0];
100 uint8_t *dest_cb=
s->dest[1];
101 uint8_t *dest_cr=
s->dest[2];
107 if (!
IS_SKIP(
s->cur_pic.mb_type[xy])) {
109 s->h263dsp.h263_v_loop_filter(dest_y + 8 * linesize, linesize, qp_c);
110 s->h263dsp.h263_v_loop_filter(dest_y + 8 * linesize + 8, linesize, qp_c);
115 int qp_dt, qp_tt, qp_tc;
117 if (
IS_SKIP(
s->cur_pic.mb_type[xy -
s->mb_stride]))
120 qp_tt =
s->cur_pic.qscale_table[xy -
s->mb_stride];
128 const int chroma_qp=
s->chroma_qscale_table[qp_tc];
129 s->h263dsp.h263_v_loop_filter(dest_y, linesize, qp_tc);
130 s->h263dsp.h263_v_loop_filter(dest_y + 8, linesize, qp_tc);
132 s->h263dsp.h263_v_loop_filter(dest_cb, uvlinesize, chroma_qp);
133 s->h263dsp.h263_v_loop_filter(dest_cr, uvlinesize, chroma_qp);
137 s->h263dsp.h263_h_loop_filter(dest_y - 8 * linesize + 8, linesize, qp_tt);
140 if (qp_tt ||
IS_SKIP(
s->cur_pic.mb_type[xy - 1 -
s->mb_stride]))
143 qp_dt =
s->cur_pic.qscale_table[xy - 1 -
s->mb_stride];
146 const int chroma_qp=
s->chroma_qscale_table[qp_dt];
147 s->h263dsp.h263_h_loop_filter(dest_y - 8 * linesize, linesize, qp_dt);
148 s->h263dsp.h263_h_loop_filter(dest_cb - 8 * uvlinesize, uvlinesize, chroma_qp);
149 s->h263dsp.h263_h_loop_filter(dest_cr - 8 * uvlinesize, uvlinesize, chroma_qp);
155 s->h263dsp.h263_h_loop_filter(dest_y + 8, linesize, qp_c);
156 if(
s->mb_y + 1 ==
s->mb_height)
157 s->h263dsp.h263_h_loop_filter(dest_y + 8 * linesize + 8, linesize, qp_c);
162 if (qp_c ||
IS_SKIP(
s->cur_pic.mb_type[xy - 1]))
165 qp_lc =
s->cur_pic.qscale_table[xy - 1];
168 s->h263dsp.h263_h_loop_filter(dest_y, linesize, qp_lc);
169 if(
s->mb_y + 1 ==
s->mb_height){
170 const int chroma_qp=
s->chroma_qscale_table[qp_lc];
171 s->h263dsp.h263_h_loop_filter(dest_y + 8 * linesize, linesize, qp_lc);
172 s->h263dsp.h263_h_loop_filter(dest_cb, uvlinesize, chroma_qp);
173 s->h263dsp.h263_h_loop_filter(dest_cr, uvlinesize, chroma_qp);
183 int16_t *
A, *
B, *
C, (*mot_val)[2];
184 static const int off[4]= {2, 1, 1, -1};
187 mot_val =
s->cur_pic.motion_val[dir] +
s->block_index[
block];
191 if (
s->first_slice_line &&
block<3) {
195 if(
s->mb_x ==
s->resync_mb_x){
197 }
else if(
s->mb_x + 1 ==
s->resync_mb_x &&
s->h263_pred){
211 if(
s->mb_x + 1 ==
s->resync_mb_x &&
s->h263_pred){
220 B = mot_val[ -
wrap];
222 if(
s->mb_x ==
s->resync_mb_x)
229 B = mot_val[ -
wrap];