changeset 4193:cdefe220b007 libavcodec

Support for 16-bit grayscale
author kostya
date Mon, 13 Nov 2006 11:39:28 +0000
parents 42e870000702
children 6a1e9e3a7303
files tiff.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tiff.c	Mon Nov 13 11:38:42 2006 +0000
+++ b/tiff.c	Mon Nov 13 11:39:28 2006 +0000
@@ -255,6 +255,14 @@
         case 24:
             s->avctx->pix_fmt = PIX_FMT_RGB24;
             break;
+        case 16:
+            if(count == 1){
+                s->avctx->pix_fmt = PIX_FMT_GRAY16BE;
+            }else{
+                av_log(s->avctx, AV_LOG_ERROR, "This format is not supported (bpp=%i)\n", s->bpp);
+                return -1;
+            }
+            break;
         default:
             av_log(s->avctx, AV_LOG_ERROR, "This format is not supported (bpp=%i)\n", s->bpp);
             return -1;