mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
dds: Add support for monochrome images
This commit is contained in:
parent
6eb2505855
commit
4b2e69397b
@ -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);
|
||||
|
@ -65,6 +65,7 @@ DDS_FMT = alpha8 \
|
||||
dxt5-xrbg \
|
||||
dxt5-ycocg \
|
||||
dxt5-ycocg-scaled \
|
||||
monob \
|
||||
pal \
|
||||
pal-ati \
|
||||
rgb1555 \
|
||||
|
2
tests/ref/fate/dds-monob
Normal file
2
tests/ref/fate/dds-monob
Normal file
@ -0,0 +1,2 @@
|
||||
#tb 0: 1/25
|
||||
0, 0, 0, 1, 1952, 0x716498a1
|
Loading…
Reference in New Issue
Block a user