Document BT.709 v210 conversion
This commit is contained in:
@@ -62,6 +62,8 @@ void main()
|
||||
default: y10 = y5; cb10 = cb4; cr10 = cr4; break;
|
||||
}
|
||||
|
||||
// BT.709 limited-range YCbCr to RGB. v210 stores 10-bit video-range
|
||||
// samples: Y [64, 940], Cb/Cr centered at 512.
|
||||
int yp = int(y10) - 64;
|
||||
int cbp = int(cb10) - 512;
|
||||
int crp = int(cr10) - 512;
|
||||
@@ -79,4 +81,4 @@ void main()
|
||||
b = clamp(b, 0, 255);
|
||||
|
||||
imageStore(dstImage, dstPos, vec4(float(r) / 255.0, float(g) / 255.0, float(b) / 255.0, 1.0));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user