diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-05-03 22:48:16 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-05-05 21:35:31 +0200 |
commit | 41ebbae9dd65edbdaa1006a685c98e3016d9c48e (patch) | |
tree | 02cc24f8eeaccb2d95ecc342e131b53869eea495 | |
parent | b9dd058f7a9df0119ad1cb7a0b115fbfa77d7cf4 (diff) | |
download | ffmpeg-41ebbae9dd65edbdaa1006a685c98e3016d9c48e.tar.gz |
avfilter/vf_extractplanes: add support for extracting planes with 14 depth
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/vf_extractplanes.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/vf_extractplanes.c b/libavfilter/vf_extractplanes.c index fc676a25fa..cbd0c422a2 100644 --- a/libavfilter/vf_extractplanes.c +++ b/libavfilter/vf_extractplanes.c @@ -165,6 +165,8 @@ static int query_formats(AVFilterContext *ctx) static const enum AVPixelFormat out10be_pixfmts[] = { AV_PIX_FMT_GRAY10BE, AV_PIX_FMT_NONE }; static const enum AVPixelFormat out12le_pixfmts[] = { AV_PIX_FMT_GRAY12LE, AV_PIX_FMT_NONE }; static const enum AVPixelFormat out12be_pixfmts[] = { AV_PIX_FMT_GRAY12BE, AV_PIX_FMT_NONE }; + static const enum AVPixelFormat out14le_pixfmts[] = { AV_PIX_FMT_GRAY14LE, AV_PIX_FMT_NONE }; + static const enum AVPixelFormat out14be_pixfmts[] = { AV_PIX_FMT_GRAY14BE, AV_PIX_FMT_NONE }; static const enum AVPixelFormat out16le_pixfmts[] = { AV_PIX_FMT_GRAY16LE, AV_PIX_FMT_NONE }; static const enum AVPixelFormat out16be_pixfmts[] = { AV_PIX_FMT_GRAY16BE, AV_PIX_FMT_NONE }; const enum AVPixelFormat *out_pixfmts, *in_pixfmts; @@ -212,6 +214,10 @@ static int query_formats(AVFilterContext *ctx) out_pixfmts = out12le_pixfmts; else if (be && depth == 12) out_pixfmts = out12be_pixfmts; + else if (!be && depth == 14) + out_pixfmts = out14le_pixfmts; + else if (be && depth == 14) + out_pixfmts = out14be_pixfmts; else if (be) out_pixfmts = out16be_pixfmts; else |