projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d78e85
)
tiff: Support rgba encoding
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Fri, 2 Dec 2011 03:23:07 +0000
(
03:23
+0000)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Sun, 16 Mar 2014 22:31:29 +0000
(23:31 +0100)
libavcodec/tiffenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/tiffenc.c
b/libavcodec/tiffenc.c
index
4cbc517
..
f12e0f4
100644
(file)
--- 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,