summaryrefslogtreecommitdiff
path: root/libavcodec/tiffenc.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-02 03:23:07 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-03-16 23:31:29 +0100
commit5b1b91cfb82d56c09846c68b09d2b8b7c8faccc4 (patch)
tree8b9ba1007cfd69521b15a8469d7cdc3e52ca2615 /libavcodec/tiffenc.c
parent6d78e852fbf3cab438a2085bcb64b90457c4a851 (diff)
downloadffmpeg-5b1b91cfb82d56c09846c68b09d2b8b7c8faccc4.tar.gz
tiff: Support rgba encoding
Diffstat (limited to 'libavcodec/tiffenc.c')
-rw-r--r--libavcodec/tiffenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index 4cbc51746d..f12e0f4c2a 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -230,6 +230,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
switch (avctx->pix_fmt) {
case AV_PIX_FMT_RGB48LE:
case AV_PIX_FMT_GRAY16LE:
+ case AV_PIX_FMT_RGBA:
case AV_PIX_FMT_RGB24:
case AV_PIX_FMT_GRAY8:
case AV_PIX_FMT_PAL8:
@@ -513,6 +514,7 @@ AVCodec ff_tiff_encoder = {
.encode2 = encode_frame,
.pix_fmts = (const enum AVPixelFormat[]) {
AV_PIX_FMT_RGB24, AV_PIX_FMT_RGB48LE, AV_PIX_FMT_PAL8,
+ AV_PIX_FMT_RGBA,
AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16LE,
AV_PIX_FMT_MONOBLACK, AV_PIX_FMT_MONOWHITE,
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV444P,