comparison pngdec.c @ 11631:aef934aa4787 libavcodec

pngdec: Add support for PIX_FMT_Y400A
author andoma
date Wed, 14 Apr 2010 20:15:50 +0000
parents 5111783be6ad
children c35d7bc64882
comparison
equal deleted inserted replaced
11630:02ad6bf427dc 11631:aef934aa4787
487 } else if (s->bit_depth == 1 && 487 } else if (s->bit_depth == 1 &&
488 s->color_type == PNG_COLOR_TYPE_GRAY) { 488 s->color_type == PNG_COLOR_TYPE_GRAY) {
489 avctx->pix_fmt = PIX_FMT_MONOBLACK; 489 avctx->pix_fmt = PIX_FMT_MONOBLACK;
490 } else if (s->color_type == PNG_COLOR_TYPE_PALETTE) { 490 } else if (s->color_type == PNG_COLOR_TYPE_PALETTE) {
491 avctx->pix_fmt = PIX_FMT_PAL8; 491 avctx->pix_fmt = PIX_FMT_PAL8;
492 } else if (s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
493 avctx->pix_fmt = PIX_FMT_Y400A;
492 } else { 494 } else {
493 goto fail; 495 goto fail;
494 } 496 }
495 if(p->data[0]) 497 if(p->data[0])
496 avctx->release_buffer(avctx, p); 498 avctx->release_buffer(avctx, p);