You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
tiff: support reading gray+alpha at 8 bits
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
committed by
Vittorio Giovara
parent
bcc5f69b33
commit
60cbd6ad84
@@ -262,6 +262,9 @@ static int init_image(TiffContext *s, AVFrame *frame)
|
|||||||
case 161:
|
case 161:
|
||||||
s->avctx->pix_fmt = s->le ? AV_PIX_FMT_GRAY16LE : AV_PIX_FMT_GRAY16BE;
|
s->avctx->pix_fmt = s->le ? AV_PIX_FMT_GRAY16LE : AV_PIX_FMT_GRAY16BE;
|
||||||
break;
|
break;
|
||||||
|
case 162:
|
||||||
|
s->avctx->pix_fmt = AV_PIX_FMT_YA8;
|
||||||
|
break;
|
||||||
case 322:
|
case 322:
|
||||||
s->avctx->pix_fmt = s->le ? AV_PIX_FMT_YA16LE : AV_PIX_FMT_YA16BE;
|
s->avctx->pix_fmt = s->le ? AV_PIX_FMT_YA16LE : AV_PIX_FMT_YA16BE;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user