diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-01-14 01:10:13 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-01-14 01:10:13 +0100 |
commit | c714cd3bd4af70e0cba1db399ca420b1f51a773d (patch) | |
tree | 16ff85345ee078d3702e55b89654445d60c01e11 /libavcodec/tiffenc.c | |
parent | 93af38ca93f28d8480acee5f1d8eda88dabd706b (diff) |
Support 64bit tiff images.
Fixes a part of ticket #503.
Reviewed-by: Paul B Mahol
Reviewed-by: Jean First
Diffstat (limited to 'libavcodec/tiffenc.c')
-rw-r--r-- | libavcodec/tiffenc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c index f8ce11e0eb..833acb543b 100644 --- a/libavcodec/tiffenc.c +++ b/libavcodec/tiffenc.c @@ -255,6 +255,14 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf, s->subsampling[1] = 1; switch (avctx->pix_fmt) { + case PIX_FMT_RGBA64LE: + s->bpp = 64; + s->photometric_interpretation = 2; + bpp_tab[0] = 16; + bpp_tab[1] = 16; + bpp_tab[2] = 16; + bpp_tab[3] = 16; + break; case PIX_FMT_RGB48LE: s->bpp = 48; s->photometric_interpretation = 2; @@ -498,7 +506,7 @@ AVCodec ff_tiff_encoder = { PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_YUV410P, PIX_FMT_YUV411P, PIX_FMT_RGB48LE, - PIX_FMT_RGBA, PIX_FMT_NONE}, + PIX_FMT_RGBA, PIX_FMT_RGBA64LE, PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("TIFF image"), .priv_class = &tiffenc_class, }; |