diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-06-24 11:42:14 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-06-24 11:42:14 +0000 |
commit | 7ebe28c23c1d86bbf90b1f372ae022eadd315814 (patch) | |
tree | 623b76ed8b8a421b663da8143912dd6b2402ebe2 /libavcodec/xwdenc.c | |
parent | b9c94e826e7551027754ecfa60e3e487e0c28fcb (diff) | |
download | ffmpeg-7ebe28c23c1d86bbf90b1f372ae022eadd315814.tar.gz |
xwdenc: support 8bpp grayscale
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/xwdenc.c')
-rw-r--r-- | libavcodec/xwdenc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/xwdenc.c b/libavcodec/xwdenc.c index 0dd3d0ae33..62808e94ad 100644 --- 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"), |