Home
last modified time | relevance | path

Searched refs:PREMULTIPLY (Results 1 – 3 of 3) sorted by relevance

/external/webp/src/dsp/
Dalpha_processing_neon.c23 #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
Dalpha_processing.c217 #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
Dalpha_processing_sse2.c150 #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