Searched refs:PREMULTIPLY (Results 1 – 3 of 3) sorted by relevance
/external/webp/src/dsp/ |
D | alpha_processing_neon.c | 23 #define PREMULTIPLY(x, m) (((x) * (m)) >> 23) macro 69 rgb[4 * i + 0] = PREMULTIPLY(rgb[4 * i + 0], mult); in ApplyAlphaMultiply_NEON() 70 rgb[4 * i + 1] = PREMULTIPLY(rgb[4 * i + 1], mult); in ApplyAlphaMultiply_NEON() 71 rgb[4 * i + 2] = PREMULTIPLY(rgb[4 * i + 2], mult); in ApplyAlphaMultiply_NEON() 79 #undef PREMULTIPLY
|
D | alpha_processing.c | 217 #define PREMULTIPLY(x, m) (((x) * (m)) >> 23) macro 220 #define PREMULTIPLY(x, m) (((x) * (m) + (1U << 23)) >> 24) macro 234 rgb[4 * i + 0] = PREMULTIPLY(rgb[4 * i + 0], mult); in ApplyAlphaMultiply_C() 235 rgb[4 * i + 1] = PREMULTIPLY(rgb[4 * i + 1], mult); in ApplyAlphaMultiply_C() 236 rgb[4 * i + 2] = PREMULTIPLY(rgb[4 * i + 2], mult); in ApplyAlphaMultiply_C() 244 #undef PREMULTIPLY
|
D | alpha_processing_sse2.c | 150 #define PREMULTIPLY(x, m) (((x) * (m)) >> 23) macro 202 rgb[4 * i + 0] = PREMULTIPLY(rgb[4 * i + 0], mult); in ApplyAlphaMultiply_SSE2() 203 rgb[4 * i + 1] = PREMULTIPLY(rgb[4 * i + 1], mult); in ApplyAlphaMultiply_SSE2() 204 rgb[4 * i + 2] = PREMULTIPLY(rgb[4 * i + 2], mult); in ApplyAlphaMultiply_SSE2() 211 #undef PREMULTIPLY
|