Video signal processing method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsLe Yuan, Zheng Wang, Renjian Wu, Fang Huang
Life of this patent
Estimating the term…
Abstract
A video signal processing method which includes: performing luminance mapping and color gamut conversion after color space conversion and non-linear space-to-linear space conversion are performed on a to-be-processed video signal, performing linear space-to-non-linear space conversion and color space conversion on the color gamut-converted signal, and then performing saturation mapping on the converted signal, to obtain a video signal that matches a format supported by a display device, so that the to-be-processed video signal can be correctly displayed on the display device.
Claims17
A video signal processing method, comprising:
- performing color space conversion on a to-be-processed video signal to obtain a first non-linear red green blue (RGB) signal;
- converting the first non-linear RGB signal based on an electro-optical transfer function, to obtain a first linear RGB signal;
- performing luminance mapping on the first linear RGB signal to obtain a second linear RGB signal, wherein a luminance value range corresponding to the second linear RGB signal is the same as a luminance value range corresponding to a display device, and the performing luminance mapping comprises:
- calculating a temporary luminance value based on each primary color value of the first linear RGB signal;
- converting the temporary luminance value based on a preset luminance mapping curve, to obtain an adjustment coefficient;
- and
- multiplying each primary color value by the adjustment coefficient to obtain the second linear RGB signal;
- converting the second linear RGB signal based on an optical-electro transfer function, to obtain a second non-linear RGB signal;
- performing color space conversion on the second non-linear RGB signal to obtain a first luminance-chrominance signal;
- and
- performing saturation mapping on a chrominance component of the first luminance-chrominance signal to obtain a second luminance-chrominance signal, wherein the performing saturation mapping comprises:
- converting the temporary luminance value based on a preset saturation mapping curve, to obtain a saturation factor;
- and
- multiplying the saturation factor by a chrominance value of the chrominance component, to obtain an adjusted chrominance value.
A video signal processing apparatus, comprising:
- at least one processor;
- and a memory, coupled to the at least one processor and storing one or more instructions that, when executed by the at least one processor, cause the video signal processing apparatus to:
- perform color space conversion on a to-be-processed video signal to obtain a first non-linear red green blue (RGB) signal;
- convert the first non-linear RGB signal based on an electro-optical transfer function, to obtain a first linear RGB signal;
- perform luminance mapping on the first linear RGB signal to obtain a second linear RGB signal, wherein a luminance value range corresponding to the second linear RGB signal is the same as a luminance value range corresponding to a display device, the performing luminance mapping comprises:
- calculating a temporary luminance value based on each primary color value of the first linear RGB signal;
- converting the temporary luminance value based on a preset luminance mapping curve, to obtain an adjustment coefficient;
- and
- multiplying each primary color value by the adjustment coefficient to obtain the second linear RGB signal;
- convert the second linear RGB signal based on an optical-electro transfer function, to obtain a second non-linear RGB signal;
- perform color space conversion on the second non-linear RGB signal to obtain a first luminance-chrominance signal;
- and
- perform saturation mapping on a chrominance component of the first luminance-chrominance signal to obtain a second luminance-chrominance signal, wherein the performing saturation mapping comprises:
- converting the temporary luminance value based on a preset saturation mapping curve, to obtain a saturation factor;
- and
- multiplying the saturation factor by a chrominance value of the chrominance component, to obtain an adjusted chrominance value.
A non-transitory computer-readable storage medium, wherein the computer-readable storage medium comprises computer-executable instruction, when the instruction is executed by at least one processor, cause an apparatus to:
- perform color space conversion on a to-be-processed video signal to obtain a first non-linear red green blue (RGB) signal;
- convert the first non-linear RGB signal based on an electro-optical transfer function, to obtain a first linear RGB signal;
- perform luminance mapping on the first linear RGB signal to obtain a second linear RGB signal, wherein a luminance value range corresponding to the second linear RGB signal is the same as a luminance value range corresponding to a display device, the performing luminance mapping comprises:
- calculating a temporary luminance value based on each primary color value of the first linear RGB signal;
- converting the temporary luminance value based on a preset luminance mapping curve, to obtain an adjustment coefficient;
- and
- multiplying each primary color value by the adjustment coefficient to obtain the second linear RGB signal;
- convert the second linear RGB signal based on an optical-electro transfer function, to obtain a second non-linear RGB signal;
- perform color space conversion on the second non-linear RGB signal to obtain a first luminance-chrominance signal;
- and
- perform saturation mapping on a chrominance component of the first luminance-chrominance signal to obtain a second luminance-chrominance signal, wherein the performing saturation mapping comprises:
- converting the temporary luminance value based on a preset saturation mapping curve, to obtain a saturation factor;
- and
- multiplying the saturation factor by a chrominance value of the chrominance component, to obtain an adjusted chrominance value.
Dependencies are inferred from the claim text.