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:
2878cec
)
Support for 16-bit grayscale
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 13 Nov 2006 11:39:28 +0000
(11:39 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 13 Nov 2006 11:39:28 +0000
(11:39 +0000)
Originally committed as revision 7012 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/tiff.c
patch
|
blob
|
history
diff --git
a/libavcodec/tiff.c
b/libavcodec/tiff.c
index
62e2a39
..
5925af1
100644
(file)
--- a/
libavcodec/tiff.c
+++ b/
libavcodec/tiff.c
@@
-255,6
+255,14
@@
static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t
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;