comparison h263dec.c @ 1053:f07fd48c23d4 libavcodec

direct blocksize in bframes fix (might fix qpel+bframe bug)
author michaelni
date Sat, 08 Feb 2003 18:23:39 +0000
parents 75a659fae7e0
children b32afefe7d33
comparison
equal deleted inserted replaced
1052:f529b09e64b7 1053:f07fd48c23d4
330 pc->frame_start_found= vop_found; 330 pc->frame_start_found= vop_found;
331 pc->state= state; 331 pc->state= state;
332 return -1; 332 return -1;
333 } 333 }
334 334
335 /**
336 * draws an line from (ex, ey) -> (sx, sy).
337 * @param w width of the image
338 * @param h height of the image
339 * @param stride stride/linesize of the image
340 * @param color color of the arrow
341 */
335 static void draw_line(uint8_t *buf, int sx, int sy, int ex, int ey, int w, int h, int stride, int color){ 342 static void draw_line(uint8_t *buf, int sx, int sy, int ex, int ey, int w, int h, int stride, int color){
336 int t, x, y, f; 343 int t, x, y, f;
337 344
338 ex= clip(ex, 0, w-1); 345 ex= clip(ex, 0, w-1);
339 ey= clip(ey, 0, h-1); 346 ey= clip(ey, 0, h-1);
366 buf[y*stride + x]+= color; 373 buf[y*stride + x]+= color;
367 } 374 }
368 } 375 }
369 } 376 }
370 377
378 /**
379 * draws an arrow from (ex, ey) -> (sx, sy).
380 * @param w width of the image
381 * @param h height of the image
382 * @param stride stride/linesize of the image
383 * @param color color of the arrow
384 */
371 static void draw_arrow(uint8_t *buf, int sx, int sy, int ex, int ey, int w, int h, int stride, int color){ 385 static void draw_arrow(uint8_t *buf, int sx, int sy, int ex, int ey, int w, int h, int stride, int color){
372 int dx= ex - sx; 386 int dx= ex - sx;
373 int dy= ey - sy; 387 int dy= ey - sy;
374 388
375 if(dx*dx + dy*dy > 3*3){ 389 if(dx*dx + dy*dy > 3*3){
508 s->dsp.avg_ ## postfix1 = ff_avg_ ## postfix2; 522 s->dsp.avg_ ## postfix1 = ff_avg_ ## postfix2;
509 523
510 if(s->lavc_build && s->lavc_build<4653) 524 if(s->lavc_build && s->lavc_build<4653)
511 s->workaround_bugs|= FF_BUG_STD_QPEL; 525 s->workaround_bugs|= FF_BUG_STD_QPEL;
512 526
527 if(s->lavc_build && s->lavc_build<4655)
528 s->workaround_bugs|= FF_BUG_DIRECT_BLOCKSIZE;
529
530 if(s->divx_version)
531 s->workaround_bugs|= FF_BUG_DIRECT_BLOCKSIZE;
513 //printf("padding_bug_score: %d\n", s->padding_bug_score); 532 //printf("padding_bug_score: %d\n", s->padding_bug_score);
514 #if 0 533 #if 0
515 if(s->divx_version==500) 534 if(s->divx_version==500)
516 s->workaround_bugs|= FF_BUG_NO_PADDING; 535 s->workaround_bugs|= FF_BUG_NO_PADDING;
517 536