mirror of
https://github.com/androidx/media.git
synced 2025-05-07 23:50:44 +08:00
correct comments in fragment_shader.
PiperOrigin-RevId: 504259419
This commit is contained in:
parent
18f8e9115f
commit
7864d327e8
@ -36,7 +36,7 @@ uniform int uOutputColorTransfer;
|
|||||||
const float inverseGamma = 0.4500;
|
const float inverseGamma = 0.4500;
|
||||||
const float gamma = 1.0 / inverseGamma;
|
const float gamma = 1.0 / inverseGamma;
|
||||||
|
|
||||||
// Transforms a single channel from optical to electrical SDR using the SMPTE
|
// Transforms a single channel from electrical to optical SDR using the SMPTE
|
||||||
// 170M OETF.
|
// 170M OETF.
|
||||||
float smpte170mEotfSingleChannel(float electricalChannel) {
|
float smpte170mEotfSingleChannel(float electricalChannel) {
|
||||||
// Specification:
|
// Specification:
|
||||||
@ -46,7 +46,7 @@ float smpte170mEotfSingleChannel(float electricalChannel) {
|
|||||||
: pow((electricalChannel + 0.099) / 1.099, gamma);
|
: pow((electricalChannel + 0.099) / 1.099, gamma);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transforms electronical to optical SDR using the SMPTE 170M EOTF.
|
// Transforms electrical to optical SDR using the SMPTE 170M EOTF.
|
||||||
vec3 smpte170mEotf(vec3 electricalColor) {
|
vec3 smpte170mEotf(vec3 electricalColor) {
|
||||||
return vec3(
|
return vec3(
|
||||||
smpte170mEotfSingleChannel(electricalColor.r),
|
smpte170mEotfSingleChannel(electricalColor.r),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user