[FFmpeg-cvslog] tiffenc: PIX_FMT_GRAY8A support

Paul B Mahol git at videolan.org
Fri Jul 6 21:57:27 CEST 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jul  6 19:54:10 2012 +0000| [a6da14ec3cbe009b2f6fe3eaaa4865e8c8f5ef1a] | committer: Paul B Mahol

tiffenc: PIX_FMT_GRAY8A support

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6da14ec3cbe009b2f6fe3eaaa4865e8c8f5ef1a
---

 libavcodec/tiffenc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index c49dee1..32a682d 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_GRAY8A:
     case PIX_FMT_GRAY16LE:
         s->photometric_interpretation = 1;
         break;
@@ -487,7 +488,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_GRAY16LE,
+        PIX_FMT_RGB24, PIX_FMT_PAL8, PIX_FMT_GRAY8, PIX_FMT_GRAY8A, 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,



More information about the ffmpeg-cvslog mailing list