summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2018-03-09 11:59:17 -0500
committerLeon Scroggins III <scroggo@google.com>2018-03-12 14:01:57 -0400
commit4856210398468fd5196e1cb68b80e7529e1046a0 (patch)
tree99a7ea7a7cca33ffcfc42331489deeae26d0c3b2 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent15e91e6f3a1ef044f3489bbaf34156b78a22d563 (diff)
Encode F16 Bitmaps to 8-bit P3
Bug: 73743812 Bug: 71430152 Test: If2c3ee0f32eff77b11ce5a7fe82c02811ed1beb3 This matches how we handle decoding images with a wide gamut. For WebP and JPEG, we cannot encode with more precision anyway. For PNG, we could in theory encode to 16 bit linear PNGs. This would be more precise, but would still throw away information due to normalization. Using 8-bit P3 matches the behavior for the other formats, so it is nice to be consistent. Change-Id: I69a44a3eff70e26448a75ecc63ed7604b9c74a95
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions