Lines Matching refs:FIX
28 #define FIX(x) ((int) ((x) * (1 << SCALEBITS) + 0.5)) macro
56 lum[0] = (FIX(0.29900) * r + FIX(0.58700) * g + in rgb24_to_yuv420p()
57 FIX(0.11400) * b + ONE_HALF) >> SCALEBITS; in rgb24_to_yuv420p()
64 lum[1] = (FIX(0.29900) * r + FIX(0.58700) * g + in rgb24_to_yuv420p()
65 FIX(0.11400) * b + ONE_HALF) >> SCALEBITS; in rgb24_to_yuv420p()
75 lum[0] = (FIX(0.29900) * r + FIX(0.58700) * g + in rgb24_to_yuv420p()
76 FIX(0.11400) * b + ONE_HALF) >> SCALEBITS; in rgb24_to_yuv420p()
83 lum[1] = (FIX(0.29900) * r + FIX(0.58700) * g + in rgb24_to_yuv420p()
84 FIX(0.11400) * b + ONE_HALF) >> SCALEBITS; in rgb24_to_yuv420p()
86 cb[0] = ((- FIX(0.16874) * r1 - FIX(0.33126) * g1 + in rgb24_to_yuv420p()
87 FIX(0.50000) * b1 + 4 * ONE_HALF - 1) >> (SCALEBITS + 2)) + 128; in rgb24_to_yuv420p()
88 cr[0] = ((FIX(0.50000) * r1 - FIX(0.41869) * g1 - in rgb24_to_yuv420p()
89 FIX(0.08131) * b1 + 4 * ONE_HALF - 1) >> (SCALEBITS + 2)) + 128; in rgb24_to_yuv420p()