shae
16th March 2007, 12:50
The documentation for Convert*() is misleading. Currently it says (among other things):
matrix: Default unspecified. Controls the colour coefficients
and scaling factors used in RGB - YUV conversions.
unspecified : Use Rec.601 coefficients, scaled to TV range [16,235].
"PC.601" : Use Rec.601 coefficients, keep full range [0,255].
"Rec709" : Use Rec.709 coefficients, scaled to TV range.
"PC.709" : Use Rec.709 coefficients, keep full range.
I think the following is clearer:
matrix: Default Rec601. Controls the colour coefficients
and scaling factors used in RGB - YUV conversions.
"Rec601" : Use Rec.601 coefficients in TV range [Y 16-235, UV 16-240].
"PC.601" : Use Rec.601 coefficients in full range [YUV 0-255].
"Rec709" : Use Rec.709 coefficients in TV range.
"PC.709" : Use Rec.709 coefficients in full range.
What do you think?
Edit: Specifying matrix="rec601" isn't currently valid, but the main point was clarifying the YUV range.
matrix: Default unspecified. Controls the colour coefficients
and scaling factors used in RGB - YUV conversions.
unspecified : Use Rec.601 coefficients, scaled to TV range [16,235].
"PC.601" : Use Rec.601 coefficients, keep full range [0,255].
"Rec709" : Use Rec.709 coefficients, scaled to TV range.
"PC.709" : Use Rec.709 coefficients, keep full range.
I think the following is clearer:
matrix: Default Rec601. Controls the colour coefficients
and scaling factors used in RGB - YUV conversions.
"Rec601" : Use Rec.601 coefficients in TV range [Y 16-235, UV 16-240].
"PC.601" : Use Rec.601 coefficients in full range [YUV 0-255].
"Rec709" : Use Rec.709 coefficients in TV range.
"PC.709" : Use Rec.709 coefficients in full range.
What do you think?
Edit: Specifying matrix="rec601" isn't currently valid, but the main point was clarifying the YUV range.