Color management architecture: color profiles
All threads resolved!
All threads resolved!
Compare changes
Files
4- Pekka Paalanen authored
Add a new shader requirements bit input_is_premult which says whether the texture sampling results in premultiplied alpha or not. Currently this can be deduced fully from the shader texture variant, but in the future there might a protocol extension to explicitly control it. Hence the need for a new bit. yuva2rgba() is changed to produce straight alpha always. This makes sample_input_texture() sometimes produce straight or premultiplied alpha. The input_is_premult bit needs to match sample_input_texture() behavior. Doing this should save three multiplications in the shader for straight alpha formats. pipeline_premult() function is added, because in the future another pipeline working on straight alpha will be needed. Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.com>
+ 19
− 4
@@ -53,6 +53,7 @@ precision mediump float;
@@ -79,7 +80,6 @@ yuva2rgba(vec4 yuva)
@@ -141,16 +141,31 @@ sample_input_texture()