comparison h263dec.c @ 717:6cba3b6196f0 libavcodec

optimization
author michaelni
date Wed, 02 Oct 2002 17:07:39 +0000
parents 85b071dfc7e3
children 16dab8296293
comparison
equal deleted inserted replaced
716:2ec5bd9f7116 717:6cba3b6196f0
360 int y, h, offset; 360 int y, h, offset;
361 y = s->mb_y * 16; 361 y = s->mb_y * 16;
362 h = s->height - y; 362 h = s->height - y;
363 if (h > 16) 363 if (h > 16)
364 h = 16; 364 h = 16;
365 offset = y * s->linesize; 365
366 if(s->pict_type==B_TYPE)
367 offset = 0;
368 else
369 offset = y * s->linesize;
370
366 if(s->pict_type==B_TYPE || (!s->has_b_frames)){ 371 if(s->pict_type==B_TYPE || (!s->has_b_frames)){
367 src_ptr[0] = s->current_picture[0] + offset; 372 src_ptr[0] = s->current_picture[0] + offset;
368 src_ptr[1] = s->current_picture[1] + (offset >> 2); 373 src_ptr[1] = s->current_picture[1] + (offset >> 2);
369 src_ptr[2] = s->current_picture[2] + (offset >> 2); 374 src_ptr[2] = s->current_picture[2] + (offset >> 2);
370 } else { 375 } else {