H A D | v4l2-tpg-colors.c | 179 808, 809, 810, 811, 812, 812, 813, 814, 815, 816, 817, 817, 818, 819, 820, 821, 343 811, 813, 816, 818, 821, 823, 825, 828, 830, 833, 835, 837, 840, 842, 844, 847, 1051 [V4L2_COLORSPACE_DCI_P3][V4L2_XFER_FUNC_SRGB][6] = { 816, 823, 2940 }, 1165 static double transfer_srgb_to_rgb(double v) in transfer_srgb_to_rgb() argument 1167 if (v < -0.04045) in transfer_srgb_to_rgb() 1168 return pow((-v + 0.055) / 1.055, 2.4); in transfer_srgb_to_rgb() 1169 return (v <= 0.04045) ? v / 12.92 : pow((v + 0.055) / 1.055, 2.4); in transfer_srgb_to_rgb() 1172 static double transfer_rgb_to_srgb(double v) in transfer_rgb_to_srgb() argument 1174 if (v <= -0.0031308) in transfer_rgb_to_srgb() 1175 return -1.055 * pow(-v, 1.0 / 2.4) + 0.055; in transfer_rgb_to_srgb() [all …]
|