55 "Extradata does not contain selected resolution\n");
64 mb_size = ((w + 15) >> 4) * ((h + 15) >> 4);
79 for(j = 0; j < 4; j+= 2){
85 for(k = 0; k < 2; k++){
119 return rv30_p_types[code];
121 return rv30_b_types[code];
125 const int stride,
const int lim)
130 for(i = 0; i < 4; i++){
131 diff = ((src[-2*step] - src[1*step]) - (src[-1*step] - src[0*step])*4) >> 3;
132 diff = av_clip(diff, -lim, lim);
133 src[-1*step] = cm[src[-1*step] +
diff];
134 src[ 0*step] = cm[src[ 0*step] -
diff];
145 int loc_lim, cur_lim, left_lim = 0, top_lim = 0;
148 for(mb_x = 0; mb_x < s->
mb_width; mb_x++, mb_pos++){
160 for(mb_x = 0; mb_x < s->
mb_width; mb_x++, mb_pos++){
164 for(j = 0; j < 16; j += 4){
166 for(i = !mb_x; i < 4; i++, Y += 4){
171 else if(!i && r->
deblock_coefs[mb_pos - 1] & (1 << (ij + 3)))
179 for(k = 0; k < 2; k++){
180 int cur_cbp, left_cbp = 0;
181 cur_cbp = (r->
cbp_chroma[mb_pos] >> (k*4)) & 0xF;
183 left_cbp = (r->
cbp_chroma[mb_pos - 1] >> (k*4)) & 0xF;
184 for(j = 0; j < 8; j += 4){
186 for(i = !mb_x; i < 2; i++, C += 4){
187 int ij = i + (j >> 1);
189 if (cur_cbp & (1 << ij))
191 else if(!i && left_cbp & (1 << (ij + 1)))
193 else if( i && cur_cbp & (1 << (ij - 1)))
202 for(mb_x = 0; mb_x < s->
mb_width; mb_x++, mb_pos++){
206 for(j = 4*!row; j < 16; j += 4){
208 for(i = 0; i < 4; i++, Y += 4){
221 for(k = 0; k < 2; k++){
222 int cur_cbp, top_cbp = 0;
223 cur_cbp = (r->
cbp_chroma[mb_pos] >> (k*4)) & 0xF;
226 for(j = 4*!row; j < 8; j += 4){
228 for(i = 0; i < 2; i++, C += 4){
229 int ij = i + (j >> 1);
233 else if(!j && top_cbp & (1 << (ij + 2)))
235 else if( j && cur_cbp & (1 << (ij - 2)))
261 av_log(avctx,
AV_LOG_ERROR,
"Insufficient extradata - need at least %d bytes, got %d\n",