diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/filter/vf_scale.c | 1 | ||||
-rw-r--r-- | video/fmt-conversion.c | 1 | ||||
-rw-r--r-- | video/img_format.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/video/filter/vf_scale.c b/video/filter/vf_scale.c index 08008eb829..08fb0c7ae1 100644 --- a/video/filter/vf_scale.c +++ b/video/filter/vf_scale.c @@ -132,6 +132,7 @@ static const unsigned int outfmt_list[]={ IMGFMT_RGB4_BYTE, IMGFMT_BGR4_BYTE, IMGFMT_MONO, + IMGFMT_MONO_W, 0 }; diff --git a/video/fmt-conversion.c b/video/fmt-conversion.c index a98dc97d51..819448772e 100644 --- a/video/fmt-conversion.c +++ b/video/fmt-conversion.c @@ -38,6 +38,7 @@ static const struct { {IMGFMT_BGR8, PIX_FMT_RGB8}, {IMGFMT_BGR4, PIX_FMT_RGB4}, {IMGFMT_MONO, PIX_FMT_MONOBLACK}, + {IMGFMT_MONO_W, PIX_FMT_MONOWHITE}, {IMGFMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE}, {IMGFMT_BGR4_BYTE, PIX_FMT_RGB4_BYTE}, {IMGFMT_RGB48_LE, PIX_FMT_RGB48LE}, diff --git a/video/img_format.h b/video/img_format.h index f09c3f55d7..0d77872123 100644 --- a/video/img_format.h +++ b/video/img_format.h @@ -197,6 +197,7 @@ enum mp_imgfmt { IMGFMT_RGB4, // r1 g2 b1, bit-packed IMGFMT_BGR4, IMGFMT_MONO, // 1 bit per pixel, bit-packed + IMGFMT_MONO_W, // like IMGFMT_MONO, but inverted (white pixels) // Accessed with bit-shifts after endian-swapping the uint16_t pixel IMGFMT_RGB12_LE, // 4r 4g 4b 4a (LSB to MSB) |