mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
xwdenc: support 8bpp grayscale
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
b9c94e826e
commit
7ebe28c23c
@ -132,6 +132,11 @@ static int xwd_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
bpad = 8;
|
bpad = 8;
|
||||||
ncolors = 256;
|
ncolors = 256;
|
||||||
break;
|
break;
|
||||||
|
case PIX_FMT_GRAY8:
|
||||||
|
bpp = 8;
|
||||||
|
bpad = 8;
|
||||||
|
vclass = XWD_STATIC_GRAY;
|
||||||
|
break;
|
||||||
case PIX_FMT_MONOWHITE:
|
case PIX_FMT_MONOWHITE:
|
||||||
be = 1;
|
be = 1;
|
||||||
bitorder = 1;
|
bitorder = 1;
|
||||||
@ -243,6 +248,7 @@ AVCodec ff_xwd_encoder = {
|
|||||||
PIX_FMT_RGB4_BYTE,
|
PIX_FMT_RGB4_BYTE,
|
||||||
PIX_FMT_BGR4_BYTE,
|
PIX_FMT_BGR4_BYTE,
|
||||||
PIX_FMT_PAL8,
|
PIX_FMT_PAL8,
|
||||||
|
PIX_FMT_GRAY8,
|
||||||
PIX_FMT_MONOWHITE,
|
PIX_FMT_MONOWHITE,
|
||||||
PIX_FMT_NONE },
|
PIX_FMT_NONE },
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("XWD (X Window Dump) image"),
|
.long_name = NULL_IF_CONFIG_SMALL("XWD (X Window Dump) image"),
|
||||||
|
Loading…
Reference in New Issue
Block a user