摘要 |
The present disclosure relates to a method and device for color adjustment and relates to the field of computer graphics. The method comprises: acquiring frame data from a frame buffer area; mapping the frame data from an original color space to a linear original color space by means of a de-gamma correction process to produce frame data of the linear original color space; mapping the frame data of the linear original color space to a linear target color space to produce frame data of the linear target color space; using a target gamma coefficient in gamma correction of the frame data of the linear target color space to produce frame data of a target color space. The present disclosure, by means of the de-gamma correction process performed on the frame data, then the mapping of the processed frame data to the linear target color space, and the gamma correction performed with the target gamma coefficient, produces the frame data of the target color space, thus solving the problem in which a same piece of frame data produces inconsistent display effects on different devices, and achieving the effect in which a same piece of frame data produces consistent display effects on different devices. |