Mercurial > libavcodec.hg
comparison huffyuv.c @ 909:8ae1e4c24e91 libavcodec
new PSNR code (now works with chroma, b frames, ...)
rename *_TYPE to FF_*_TYPE for the external API
allow user specified pict_type
author | michaelni |
---|---|
date | Wed, 04 Dec 2002 21:13:02 +0000 |
parents | 22ee74da2cd3 |
children | 7fccaa0d699d |
comparison
equal
deleted
inserted
replaced
908:2ac4caad5ca6 | 909:8ae1e4c24e91 |
---|---|
459 avctx->extradata= av_mallocz(1024*10); | 459 avctx->extradata= av_mallocz(1024*10); |
460 avctx->stats_out= av_mallocz(1024*10); | 460 avctx->stats_out= av_mallocz(1024*10); |
461 s->version=2; | 461 s->version=2; |
462 | 462 |
463 avctx->coded_picture= &s->picture; | 463 avctx->coded_picture= &s->picture; |
464 s->picture.pict_type= I_TYPE; | 464 s->picture.pict_type= FF_I_TYPE; |
465 s->picture.key_frame= 1; | 465 s->picture.key_frame= 1; |
466 | 466 |
467 switch(avctx->pix_fmt){ | 467 switch(avctx->pix_fmt){ |
468 case PIX_FMT_YUV420P: | 468 case PIX_FMT_YUV420P: |
469 if(avctx->strict_std_compliance>=0){ | 469 if(avctx->strict_std_compliance>=0){ |