mpeg4标准对亮度色度范围的限制video_range
mpeg4标准中,专门有码字对亮度和色度的范围做限制。
video_range: This one-bit flag indicates the black level and range of the luminance and chrominance signals.
matrix_coefficients: This 8-bit integer describes the matrix coefficients used in deriving luminance and
chrominance signals from the green, blue, and red primaries, and is defined in Table 6-9.
for 8 bit video,
video_range=0 gives a range of Y from 16 to 235, Cb and Cr from 16 to 240;
video_range=1 gives a range of Y from 0 to 255, Cb and Cr from 0 to 255.
如果码流中没有此两个参数:
In the case that video_signal_type() is not present in the bitstream or colour_description is zero the matrix
coefficients are assumed to be those corresponding to matrix_coefficients having the value 1.
In the case that video_signal_type() is not present in the bitstream, video_range is assumed to have the value 0 (a
range of Y from 16 to 235 for 8-bit video).
由于默认值为0,因此,如果码流中不编码此比特的话,标准的解码器会按照16~235的范围进行限制。