Home
last modified time | relevance | path

Searched refs:bt2020c (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c671 static const int bt2020c[4] = { in color_to_ycbcr() local
708 *cb = (((b - yc) * (full ? bt2020c_full[0] : bt2020c[0])) >> 16) + (128 << 4); in color_to_ycbcr()
710 *cb = (((b - yc) * (full ? bt2020c_full[1] : bt2020c[1])) >> 16) + (128 << 4); in color_to_ycbcr()
712 *cr = (((r - yc) * (full ? bt2020c_full[2] : bt2020c[2])) >> 16) + (128 << 4); in color_to_ycbcr()
714 *cr = (((r - yc) * (full ? bt2020c_full[3] : bt2020c[3])) >> 16) + (128 << 4); in color_to_ycbcr()
785 static const int bt2020c[4] = { in ycbcr_to_color() local
822 *b = y_fac * y + (full ? bt2020c_full[0] : bt2020c[0]) * cb; in ycbcr_to_color()
824 *b = y_fac * y + (full ? bt2020c_full[1] : bt2020c[1]) * cb; in ycbcr_to_color()
827 *r = y_fac * y + (full ? bt2020c_full[2] : bt2020c[2]) * cr; in ycbcr_to_color()
829 *r = y_fac * y + (full ? bt2020c_full[3] : bt2020c[3]) * cr; in ycbcr_to_color()