diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-06-29 20:12:24 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-07-07 18:52:32 +0300 |
commit | 6ed9eaf664a220812abe75057e3319745a98f4b8 (patch) | |
tree | 96f2034192876c00bbca66c33dea2307aa90c86b /libavutil/hwcontext_opencl.c | |
parent | 03d81a044ad587ea83567f75dc36bc3d64278199 (diff) |
avfilter: add remap opencl filter
Diffstat (limited to 'libavutil/hwcontext_opencl.c')
-rw-r--r-- | libavutil/hwcontext_opencl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavutil/hwcontext_opencl.c b/libavutil/hwcontext_opencl.c index 4f4bd13405..32aec7d228 100644 --- a/libavutil/hwcontext_opencl.c +++ b/libavutil/hwcontext_opencl.c @@ -1411,7 +1411,8 @@ static int opencl_get_plane_format(enum AVPixelFormat pixfmt, // The bits in each component must be packed in the // most-significant-bits of the relevant bytes. if (comp->shift + comp->depth != 8 && - comp->shift + comp->depth != 16) + comp->shift + comp->depth != 16 && + comp->shift + comp->depth != 32) return AVERROR(EINVAL); // The depth must not vary between components. if (depth && comp->depth != depth) @@ -1455,6 +1456,8 @@ static int opencl_get_plane_format(enum AVPixelFormat pixfmt, } else { if (depth <= 16) image_format->image_channel_data_type = CL_UNORM_INT16; + else if (depth == 32) + image_format->image_channel_data_type = CL_FLOAT; else return AVERROR(EINVAL); } |