Mercurial > libavcodec.hg
comparison png.c @ 4067:8ab58b7bc06b libavcodec
PNG 16-bit gray decoding support
author | kostya |
---|---|
date | Tue, 24 Oct 2006 04:59:46 +0000 |
parents | 9c8ab288ebf6 |
children | 291db895a809 |
comparison
equal
deleted
inserted
replaced
4066:a3f06c7a0bff | 4067:8ab58b7bc06b |
---|---|
565 s->color_type == PNG_COLOR_TYPE_RGB_ALPHA) { | 565 s->color_type == PNG_COLOR_TYPE_RGB_ALPHA) { |
566 avctx->pix_fmt = PIX_FMT_RGBA32; | 566 avctx->pix_fmt = PIX_FMT_RGBA32; |
567 } else if (s->bit_depth == 8 && | 567 } else if (s->bit_depth == 8 && |
568 s->color_type == PNG_COLOR_TYPE_GRAY) { | 568 s->color_type == PNG_COLOR_TYPE_GRAY) { |
569 avctx->pix_fmt = PIX_FMT_GRAY8; | 569 avctx->pix_fmt = PIX_FMT_GRAY8; |
570 } else if (s->bit_depth == 16 && | |
571 s->color_type == PNG_COLOR_TYPE_GRAY) { | |
572 avctx->pix_fmt = PIX_FMT_GRAY16BE; | |
570 } else if (s->bit_depth == 1 && | 573 } else if (s->bit_depth == 1 && |
571 s->color_type == PNG_COLOR_TYPE_GRAY) { | 574 s->color_type == PNG_COLOR_TYPE_GRAY) { |
572 avctx->pix_fmt = PIX_FMT_MONOBLACK; | 575 avctx->pix_fmt = PIX_FMT_MONOBLACK; |
573 } else if (s->color_type == PNG_COLOR_TYPE_PALETTE) { | 576 } else if (s->color_type == PNG_COLOR_TYPE_PALETTE) { |
574 avctx->pix_fmt = PIX_FMT_PAL8; | 577 avctx->pix_fmt = PIX_FMT_PAL8; |