From aca569aad26f33fe68eb36c5c689b2dc4de77084 Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Mon, 8 Aug 2022 14:02:31 +0200 Subject: swscale/input: add rgbaf16 input support This is by no means perfect, since at least ddagrab will return scRGB data with values outside of 0.0f to 1.0f for HDR values. Its primary purpose is to be able to work with the format at all. --- libswscale/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libswscale/utils.c') diff --git a/libswscale/utils.c b/libswscale/utils.c index baa1791ebe..9ef157c006 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -259,6 +259,8 @@ static const FormatEntry format_entries[] = { [AV_PIX_FMT_P416LE] = { 1, 1 }, [AV_PIX_FMT_NV16] = { 1, 1 }, [AV_PIX_FMT_VUYA] = { 1, 1 }, + [AV_PIX_FMT_RGBAF16BE] = { 1, 0 }, + [AV_PIX_FMT_RGBAF16LE] = { 1, 0 }, }; int ff_shuffle_filter_coefficients(SwsContext *c, int *filterPos, -- cgit v1.2.3