Searched refs:yc (Results 1 – 1 of 1) sorted by relevance
628 int lin_y, yc; in color_to_ycbcr() local651 yc = linear_to_rec709(lin_y); in color_to_ycbcr()652 *y = full ? yc : (yc * 219) / 255 + (16 << 4); in color_to_ycbcr()653 if (b <= yc) in color_to_ycbcr()654 *cb = (((b - yc) * (full ? bt2020c_full[0] : bt2020c[0])) >> 16) + (128 << 4); in color_to_ycbcr()656 *cb = (((b - yc) * (full ? bt2020c_full[1] : bt2020c[1])) >> 16) + (128 << 4); in color_to_ycbcr()657 if (r <= yc) in color_to_ycbcr()658 *cr = (((r - yc) * (full ? bt2020c_full[2] : bt2020c[2])) >> 16) + (128 << 4); in color_to_ycbcr()660 *cr = (((r - yc) * (full ? bt2020c_full[3] : bt2020c[3])) >> 16) + (128 << 4); in color_to_ycbcr()