diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-07-06 02:02:15 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-07-06 19:40:45 +0000 |
commit | df548c59f714a7a677355bb5f02d00c5ed4231a5 (patch) | |
tree | c6203469caeb9df08233d67a7705b042c4678ad8 | |
parent | 1806858fdd92d47e65ffec8bfbf06076f5b15268 (diff) | |
download | ffmpeg-df548c59f714a7a677355bb5f02d00c5ed4231a5.tar.gz |
tiffenc: PIX_FMT_GRAY16LE support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/tiffenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c index 30cd321b75..c49dee18de 100644 --- a/libavcodec/tiffenc.c +++ b/libavcodec/tiffenc.c @@ -258,6 +258,7 @@ static int encode_frame(AVCodecContext * avctx, AVPacket *pkt, break; case PIX_FMT_GRAY8: avctx->bits_per_coded_sample = 0x28; + case PIX_FMT_GRAY16LE: s->photometric_interpretation = 1; break; case PIX_FMT_PAL8: @@ -486,7 +487,7 @@ AVCodec ff_tiff_encoder = { .priv_data_size = sizeof(TiffEncoderContext), .encode2 = encode_frame, .pix_fmts = (const enum PixelFormat[]) { - PIX_FMT_RGB24, PIX_FMT_PAL8, PIX_FMT_GRAY8, + PIX_FMT_RGB24, PIX_FMT_PAL8, PIX_FMT_GRAY8, PIX_FMT_GRAY16LE, PIX_FMT_MONOBLACK, PIX_FMT_MONOWHITE, PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_YUV410P, PIX_FMT_YUV411P, PIX_FMT_RGB48LE, |