Adjust color space Constrast,Brightness,Hue,Saturation in YCbCr format.

The formula is :

  Y   = (y - 128) * C /128   + (B - 128)                        + 128. //About add 128 is ture or error ?

  Cb = [ (Cb - 128)*cos(H) + (Cr - 128)*sin(H)] * S/64 + 128.

      Cr = [-(Cb - 128)*sin(H)  + (Cr - 128)*cos(H)]* S/64 + 128.

  If you have any question,you can leave a message for me.I will ask you at the first time.

原文地址:https://www.cnblogs.com/artestlove/p/4674345.html