Lines Matching refs:pos
153 auto pos = 1.5f * inc; in _updateColorTable() local
163 while (pos <= pColors->offset) { in _updateColorTable()
166 pos += inc; in _updateColorTable()
183 while (pos < next->offset && i < GRADIENT_STOP_SIZE) { in _updateColorTable()
184 auto t = (pos - curr->offset) * delta; in _updateColorTable()
192 pos += inc; in _updateColorTable()
327 static inline uint32_t _clamp(const SwFill* fill, int32_t pos) in _clamp() argument
331 if (pos >= GRADIENT_STOP_SIZE) pos = GRADIENT_STOP_SIZE - 1; in _clamp()
332 else if (pos < 0) pos = 0; in _clamp()
336 pos = pos % GRADIENT_STOP_SIZE; in _clamp()
337 if (pos < 0) pos = GRADIENT_STOP_SIZE + pos; in _clamp()
342 pos = pos % limit; in _clamp()
343 if (pos < 0) pos = limit + pos; in _clamp()
344 if (pos >= GRADIENT_STOP_SIZE) pos = (limit - pos - 1); in _clamp()
348 return pos; in _clamp()
352 static inline uint32_t _fixedPixel(const SwFill* fill, int32_t pos) in _fixedPixel() argument
354 int32_t i = (pos + (FIXPT_SIZE / 2)) >> FIXPT_BITS; in _fixedPixel()
359 static inline uint32_t _pixel(const SwFill* fill, float pos) in _pixel() argument
361 auto i = static_cast<int32_t>(pos * (GRADIENT_STOP_SIZE - 1) + 0.5f); in _pixel()