By default the OpenEXR decoder outputs linear light pixel data by applying a gamma=1.0 transfer (i.e. a no-op). When it does so, it should tag the data as linear so color-managed filters or other tools can work with it correctly.
Unified · Split
| @@ -2088,6 +2088,8 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *picture, · 2087 unmodified lines | |||
| 2088 | 2088 | ||
| 2089 | if (s->apply_trc_type != AVCOL_TRC_UNSPECIFIED) | 2089 | if (s->apply_trc_type != AVCOL_TRC_UNSPECIFIED) |
| 2090 | avctx->color_trc = s->apply_trc_type; | 2090 | avctx->color_trc = s->apply_trc_type; |
| 2091 | else if (s->gamma > 0.9999f && s->gamma < 1.0001f) | ||
| 2092 | avctx->color_trc = AVCOL_TRC_LINEAR; | ||
| 2091 | 2093 | ||
| 2092 | switch (s->compression) { | 2094 | switch (s->compression) { |
| 2093 | case EXR_RAW: | 2095 | case EXR_RAW: |