comparison huffyuv.c @ 1526:fcfa169fdbf8 libavcodec

10l
author michael
date Mon, 13 Oct 2003 14:37:04 +0000
parents 79dddc5cd990
children 8ffd0c00e6df
comparison
equal deleted inserted replaced
1525:39efe24058ad 1526:fcfa169fdbf8
489 width= s->width= avctx->width; 489 width= s->width= avctx->width;
490 height= s->height= avctx->height; 490 height= s->height= avctx->height;
491 491
492 assert(width && height); 492 assert(width && height);
493 493
494 avctx->extradata= av_mallocz(1024*10); 494 avctx->extradata= av_mallocz(1024*30);
495 avctx->stats_out= av_mallocz(1024*10); 495 avctx->stats_out= av_mallocz(1024*30);
496 s->version=2; 496 s->version=2;
497 497
498 avctx->coded_frame= &s->picture; 498 avctx->coded_frame= &s->picture;
499 499
500 switch(avctx->pix_fmt){ 500 switch(avctx->pix_fmt){
1052 vdst= p->data[2] + p->linesize[2]*cy; 1052 vdst= p->data[2] + p->linesize[2]*cy;
1053 1053
1054 if(s->predictor == PLANE && s->interlaced < cy){ 1054 if(s->predictor == PLANE && s->interlaced < cy){
1055 s->dsp.diff_bytes(s->temp[1], ydst, ydst - fake_ystride, width); 1055 s->dsp.diff_bytes(s->temp[1], ydst, ydst - fake_ystride, width);
1056 s->dsp.diff_bytes(s->temp[2], udst, udst - fake_ustride, width2); 1056 s->dsp.diff_bytes(s->temp[2], udst, udst - fake_ustride, width2);
1057 s->dsp.diff_bytes(s->temp[3], vdst, vdst - fake_vstride, width2); 1057 s->dsp.diff_bytes(s->temp[2] + 1250, vdst, vdst - fake_vstride, width2);
1058 1058
1059 lefty= sub_left_prediction(s, s->temp[0], s->temp[1], width , lefty); 1059 lefty= sub_left_prediction(s, s->temp[0], s->temp[1], width , lefty);
1060 leftu= sub_left_prediction(s, s->temp[1], s->temp[2], width2, leftu); 1060 leftu= sub_left_prediction(s, s->temp[1], s->temp[2], width2, leftu);
1061 leftv= sub_left_prediction(s, s->temp[2], s->temp[3], width2, leftv); 1061 leftv= sub_left_prediction(s, s->temp[2], s->temp[2] + 1250, width2, leftv);
1062 }else{ 1062 }else{
1063 lefty= sub_left_prediction(s, s->temp[0], ydst, width , lefty); 1063 lefty= sub_left_prediction(s, s->temp[0], ydst, width , lefty);
1064 leftu= sub_left_prediction(s, s->temp[1], udst, width2, leftu); 1064 leftu= sub_left_prediction(s, s->temp[1], udst, width2, leftu);
1065 leftv= sub_left_prediction(s, s->temp[2], vdst, width2, leftv); 1065 leftv= sub_left_prediction(s, s->temp[2], vdst, width2, leftv);
1066 } 1066 }