[FFmpeg-devel] [PATCH 3/3] avcodec/exr: add option to output pixels in float
Anton Khirnov
anton at khirnov.net
Wed May 6 23:07:10 EEST 2020
Quoting mindmark at gmail.com (2020-04-29 05:02:35)
> From: Mark Reid <mindmark at gmail.com>
>
> ---
> libavcodec/exr.c | 103 +++++++++++++++++++++++++++++++++++++++--------
> 1 file changed, 86 insertions(+), 17 deletions(-)
>
> diff --git a/libavcodec/exr.c b/libavcodec/exr.c
> @@ -1888,6 +1955,8 @@ static const AVOption options[] = {
> AV_OPT_TYPE_STRING, { .str = "" }, 0, 0, VD },
> { "gamma", "Set the float gamma value when decoding", OFFSET(gamma),
> AV_OPT_TYPE_FLOAT, { .dbl = 1.0f }, 0.001, FLT_MAX, VD },
> + { "float", "Output frame in floating point pixel format, apply_trc does not get applied", OFFSET(output_float),
> + AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, VD},
Wouldn't it make more sense to export the coded format rather than have
an option like this?
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list