Lines Matching refs:toAttrib
828 const struct attrib *toAttrib; in hwcTestColorConvert() local
829 for (toAttrib = attributes; toAttrib < attributes + NUMA(attributes); in hwcTestColorConvert()
830 toAttrib++) { in hwcTestColorConvert()
831 if (toAttrib->format == toFormat) { break; } in hwcTestColorConvert()
833 if (toAttrib >= attributes + NUMA(attributes)) { in hwcTestColorConvert()
870 if (fromAttrib->rgb && toAttrib->yuv) { in hwcTestColorConvert()
907 if (fromAttrib->yuv && toAttrib->rgb) { in hwcTestColorConvert()
925 c1Val = (toAttrib->c1Low in hwcTestColorConvert()
926 + (float) (toAttrib->c1High - toAttrib->c1Low) * color.c1()); in hwcTestColorConvert()
927 c2Val = (toAttrib->c1Low in hwcTestColorConvert()
928 + (float) (toAttrib->c2High - toAttrib->c2Low) * color.c2()); in hwcTestColorConvert()
929 c3Val = (toAttrib->c1Low in hwcTestColorConvert()
930 + (float) (toAttrib->c3High - toAttrib->c3Low) * color.c3()); in hwcTestColorConvert()
931 color = ColorFract((float) (c1Val - toAttrib->c1Min) in hwcTestColorConvert()
932 / (float) (toAttrib->c1Max - toAttrib->c1Min), in hwcTestColorConvert()
933 (float) (c2Val - toAttrib->c2Min) in hwcTestColorConvert()
934 / (float) (toAttrib->c2Max - toAttrib->c2Min), in hwcTestColorConvert()
935 (float) (c3Val - toAttrib->c3Min) in hwcTestColorConvert()
936 / (float) (toAttrib->c3Max - toAttrib->c3Min)); in hwcTestColorConvert()