aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-12-22 10:51:48 +0100
committerPaul B Mahol <onemda@gmail.com>2017-12-22 10:57:12 +0100
commitd2a2bc9a9f305008e417d72432322fcf48400b33 (patch)
treeefc018056cdebdac6835736d2364e0027d277778 /libavfilter
parente3b2c8502b33c180e0f053ac2ef32ee782224c2e (diff)
downloadffmpeg-d2a2bc9a9f305008e417d72432322fcf48400b33.tar.gz
avfilter/vf_lut: add support for gray formats
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_lut.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c
index 11c039ead7..26f2945c84 100644
--- a/libavfilter/vf_lut.c
+++ b/libavfilter/vf_lut.c
@@ -135,9 +135,13 @@ static av_cold void uninit(AVFilterContext *ctx)
AV_PIX_FMT_GBRP16LE, AV_PIX_FMT_GBRAP12LE, \
AV_PIX_FMT_GBRAP16LE
+#define GRAY_FORMATS \
+ AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9LE, AV_PIX_FMT_GRAY10LE, \
+ AV_PIX_FMT_GRAY12LE, AV_PIX_FMT_GRAY16LE
+
static const enum AVPixelFormat yuv_pix_fmts[] = { YUV_FORMATS, AV_PIX_FMT_NONE };
static const enum AVPixelFormat rgb_pix_fmts[] = { RGB_FORMATS, AV_PIX_FMT_NONE };
-static const enum AVPixelFormat all_pix_fmts[] = { RGB_FORMATS, YUV_FORMATS, AV_PIX_FMT_NONE };
+static const enum AVPixelFormat all_pix_fmts[] = { RGB_FORMATS, YUV_FORMATS, GRAY_FORMATS, AV_PIX_FMT_NONE };
static int query_formats(AVFilterContext *ctx)
{