Lines Matching refs:COEFF
629 #define COEFF(v, r) ((int)(0.5 + (v) * (r) * 256.0)) in color_to_ycbcr() macro
632 { COEFF(0.299, 219), COEFF(0.587, 219), COEFF(0.114, 219) }, in color_to_ycbcr()
633 { COEFF(-0.1687, 224), COEFF(-0.3313, 224), COEFF(0.5, 224) }, in color_to_ycbcr()
634 { COEFF(0.5, 224), COEFF(-0.4187, 224), COEFF(-0.0813, 224) }, in color_to_ycbcr()
637 { COEFF(0.299, 255), COEFF(0.587, 255), COEFF(0.114, 255) }, in color_to_ycbcr()
638 { COEFF(-0.1687, 255), COEFF(-0.3313, 255), COEFF(0.5, 255) }, in color_to_ycbcr()
639 { COEFF(0.5, 255), COEFF(-0.4187, 255), COEFF(-0.0813, 255) }, in color_to_ycbcr()
642 { COEFF(0.2126, 219), COEFF(0.7152, 219), COEFF(0.0722, 219) }, in color_to_ycbcr()
643 { COEFF(-0.1146, 224), COEFF(-0.3854, 224), COEFF(0.5, 224) }, in color_to_ycbcr()
644 { COEFF(0.5, 224), COEFF(-0.4542, 224), COEFF(-0.0458, 224) }, in color_to_ycbcr()
647 { COEFF(0.2126, 255), COEFF(0.7152, 255), COEFF(0.0722, 255) }, in color_to_ycbcr()
648 { COEFF(-0.1146, 255), COEFF(-0.3854, 255), COEFF(0.5, 255) }, in color_to_ycbcr()
649 { COEFF(0.5, 255), COEFF(-0.4542, 255), COEFF(-0.0458, 255) }, in color_to_ycbcr()
652 { COEFF(0.212, 219), COEFF(0.701, 219), COEFF(0.087, 219) }, in color_to_ycbcr()
653 { COEFF(-0.116, 224), COEFF(-0.384, 224), COEFF(0.5, 224) }, in color_to_ycbcr()
654 { COEFF(0.5, 224), COEFF(-0.445, 224), COEFF(-0.055, 224) }, in color_to_ycbcr()
657 { COEFF(0.212, 255), COEFF(0.701, 255), COEFF(0.087, 255) }, in color_to_ycbcr()
658 { COEFF(-0.116, 255), COEFF(-0.384, 255), COEFF(0.5, 255) }, in color_to_ycbcr()
659 { COEFF(0.5, 255), COEFF(-0.445, 255), COEFF(-0.055, 255) }, in color_to_ycbcr()
662 { COEFF(0.2627, 219), COEFF(0.6780, 219), COEFF(0.0593, 219) }, in color_to_ycbcr()
663 { COEFF(-0.1396, 224), COEFF(-0.3604, 224), COEFF(0.5, 224) }, in color_to_ycbcr()
664 { COEFF(0.5, 224), COEFF(-0.4598, 224), COEFF(-0.0402, 224) }, in color_to_ycbcr()
667 { COEFF(0.2627, 255), COEFF(0.6780, 255), COEFF(0.0593, 255) }, in color_to_ycbcr()
668 { COEFF(-0.1396, 255), COEFF(-0.3604, 255), COEFF(0.5, 255) }, in color_to_ycbcr()
669 { COEFF(0.5, 255), COEFF(-0.4598, 255), COEFF(-0.0402, 255) }, in color_to_ycbcr()
672 COEFF(1.0 / 1.9404, 224), COEFF(1.0 / 1.5816, 224), in color_to_ycbcr()
673 COEFF(1.0 / 1.7184, 224), COEFF(1.0 / 0.9936, 224), in color_to_ycbcr()
676 COEFF(1.0 / 1.9404, 255), COEFF(1.0 / 1.5816, 255), in color_to_ycbcr()
677 COEFF(1.0 / 1.7184, 255), COEFF(1.0 / 0.9936, 255), in color_to_ycbcr()
702 lin_y = (COEFF(0.2627, 255) * rec709_to_linear(r) + in color_to_ycbcr()
703 COEFF(0.6780, 255) * rec709_to_linear(g) + in color_to_ycbcr()
704 COEFF(0.0593, 255) * rec709_to_linear(b)) >> 16; in color_to_ycbcr()
743 #undef COEFF in ycbcr_to_color()
744 #define COEFF(v, r) ((int)(0.5 + (v) * ((255.0 * 255.0 * 16.0) / (r)))) in ycbcr_to_color() macro
746 { COEFF(1, 219), COEFF(0, 224), COEFF(1.4020, 224) }, in ycbcr_to_color()
747 { COEFF(1, 219), COEFF(-0.3441, 224), COEFF(-0.7141, 224) }, in ycbcr_to_color()
748 { COEFF(1, 219), COEFF(1.7720, 224), COEFF(0, 224) }, in ycbcr_to_color()
751 { COEFF(1, 255), COEFF(0, 255), COEFF(1.4020, 255) }, in ycbcr_to_color()
752 { COEFF(1, 255), COEFF(-0.3441, 255), COEFF(-0.7141, 255) }, in ycbcr_to_color()
753 { COEFF(1, 255), COEFF(1.7720, 255), COEFF(0, 255) }, in ycbcr_to_color()
756 { COEFF(1, 219), COEFF(0, 224), COEFF(1.5748, 224) }, in ycbcr_to_color()
757 { COEFF(1, 219), COEFF(-0.1873, 224), COEFF(-0.4681, 224) }, in ycbcr_to_color()
758 { COEFF(1, 219), COEFF(1.8556, 224), COEFF(0, 224) }, in ycbcr_to_color()
761 { COEFF(1, 255), COEFF(0, 255), COEFF(1.5748, 255) }, in ycbcr_to_color()
762 { COEFF(1, 255), COEFF(-0.1873, 255), COEFF(-0.4681, 255) }, in ycbcr_to_color()
763 { COEFF(1, 255), COEFF(1.8556, 255), COEFF(0, 255) }, in ycbcr_to_color()
766 { COEFF(1, 219), COEFF(0, 224), COEFF(1.5756, 224) }, in ycbcr_to_color()
767 { COEFF(1, 219), COEFF(-0.2253, 224), COEFF(-0.4767, 224) }, in ycbcr_to_color()
768 { COEFF(1, 219), COEFF(1.8270, 224), COEFF(0, 224) }, in ycbcr_to_color()
771 { COEFF(1, 255), COEFF(0, 255), COEFF(1.5756, 255) }, in ycbcr_to_color()
772 { COEFF(1, 255), COEFF(-0.2253, 255), COEFF(-0.4767, 255) }, in ycbcr_to_color()
773 { COEFF(1, 255), COEFF(1.8270, 255), COEFF(0, 255) }, in ycbcr_to_color()
776 { COEFF(1, 219), COEFF(0, 224), COEFF(1.4746, 224) }, in ycbcr_to_color()
777 { COEFF(1, 219), COEFF(-0.1646, 224), COEFF(-0.5714, 224) }, in ycbcr_to_color()
778 { COEFF(1, 219), COEFF(1.8814, 224), COEFF(0, 224) }, in ycbcr_to_color()
781 { COEFF(1, 255), COEFF(0, 255), COEFF(1.4746, 255) }, in ycbcr_to_color()
782 { COEFF(1, 255), COEFF(-0.1646, 255), COEFF(-0.5714, 255) }, in ycbcr_to_color()
783 { COEFF(1, 255), COEFF(1.8814, 255), COEFF(0, 255) }, in ycbcr_to_color()
786 COEFF(1.9404, 224), COEFF(1.5816, 224), in ycbcr_to_color()
787 COEFF(1.7184, 224), COEFF(0.9936, 224), in ycbcr_to_color()
790 COEFF(1.9404, 255), COEFF(1.5816, 255), in ycbcr_to_color()
791 COEFF(1.7184, 255), COEFF(0.9936, 255), in ycbcr_to_color()
796 int y_fac = full ? COEFF(1.0, 255) : COEFF(1.0, 219); in ycbcr_to_color()
835 lin_g = COEFF(1.0 / 0.6780, 255) * lin_y - in ycbcr_to_color()
836 COEFF(0.2627 / 0.6780, 255) * lin_r - in ycbcr_to_color()
837 COEFF(0.0593 / 0.6780, 255) * lin_b; in ycbcr_to_color()