dds: Add support for monochrome images

This commit is contained in:
Vittorio Giovara
2016-04-22 17:28:04 -04:00
parent 6eb2505855
commit 4b2e69397b
3 changed files with 7 additions and 0 deletions

View File

@@ -240,6 +240,10 @@ static int parse_pixel_format(AVCodecContext *avctx)
ctx->paletted = 1;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
break;
case MKTAG('G', '1', ' ', ' '):
ctx->compressed = 0;
avctx->pix_fmt = AV_PIX_FMT_MONOBLACK;
break;
case MKTAG('D', 'X', '1', '0'):
/* DirectX 10 extra header */
dxgi = bytestream2_get_le32(gbc);