OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9c94e8
)
xwdenc: support 8bpp grayscale
author
Paul B Mahol
<onemda@gmail.com>
Sun, 24 Jun 2012 11:42:14 +0000
(11:42 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Sun, 24 Jun 2012 11:42:14 +0000
(11:42 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/xwdenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/xwdenc.c
b/libavcodec/xwdenc.c
index
0dd3d0a
..
62808e9
100644
(file)
--- a/
libavcodec/xwdenc.c
+++ b/
libavcodec/xwdenc.c
@@
-132,6
+132,11
@@
static int xwd_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
bpad = 8;
ncolors = 256;
break;
+ case PIX_FMT_GRAY8:
+ bpp = 8;
+ bpad = 8;
+ vclass = XWD_STATIC_GRAY;
+ break;
case PIX_FMT_MONOWHITE:
be = 1;
bitorder = 1;
@@
-243,6
+248,7
@@
AVCodec ff_xwd_encoder = {
PIX_FMT_RGB4_BYTE,
PIX_FMT_BGR4_BYTE,
PIX_FMT_PAL8,
+ PIX_FMT_GRAY8,
PIX_FMT_MONOWHITE,
PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("XWD (X Window Dump) image"),