diff options
| author | 2023-08-07 15:28:30 -0700 | |
|---|---|---|
| committer | 2023-08-15 21:26:49 -0700 | |
| commit | f6918d4ab8c613302c3eda0b7be15674aceb8610 (patch) | |
| tree | a36f75052b6bb397b2b2a7ac6ead214b79939d30 /libs/ultrahdr/jpegencoderhelper.cpp | |
| parent | 2063dd5dd041679a955c764a418c2ebc89a61f7b (diff) | |
Refactor `isHdrDataspace` function.
- Rename it to `getHdrRenderType` and return a ternary enum.
- return the hdr type that we want to treat based on the dataspace,
format and hdr/sdr ratio.
- pixelformat is optional, in case no source buffer but there is a
source color.
- hdr/sdr ratio is 1.0f by default, render rengine doesn't take care
this param.
- The ternary enum has 3 types: just SDR; generic hdr, namely those we
need to tonemap; display hdr, namely those self-promoting to HDR by
using extended brightness API.
Bug: 261485283
Test: HdrRenderTypeUtils_test, TextureViewTest#testSDRFromSurfaceViewAndTextureView, OutputLayerUpdateCompositionStateTest
Change-Id: I281687a010bbf5bff555f6fa893002c2a9b324d1
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions