Home | History | Annotate | Download | only in images

Lines Matching refs:src

28  * Transform 'width' pixels from 'src' buffer into 'dst' buffer,
30 * 'bpp' is bytes per pixel in the 'src' buffer.
32 typedef void (*transform_scanline_proc)(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
36 * Identity transformation: just copy bytes from src to dst.
38 static inline void transform_scanline_memcpy(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
40 memcpy(dst, src, width * bpp);
44 const char* SK_RESTRICT src, int width, int,
47 const uint32_t c = colors[(uint8_t)*src++];
56 const char* SK_RESTRICT src, int width, int,
62 dst32[i] = SkSwizzle_RGBA_to_PMColor(colors[(uint8_t)*src++]);
66 static inline void transform_scanline_gray(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
69 const uint8_t g = (uint8_t) *src++;
82 static inline void transform_scanline_565(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
84 const uint16_t* srcP = (const uint16_t*)src;
97 const char* SK_RESTRICT src,
101 *dst++ = *src++; // alpha
109 static inline void transform_scanline_RGBX(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
111 const uint32_t* srcP = (const SkPMColor*)src;
124 static inline void transform_scanline_BGRX(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
126 const uint32_t* srcP = (const SkPMColor*)src;
139 static inline void transform_scanline_444(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
141 const SkPMColor16* srcP = (const SkPMColor16*)src;
153 static inline void transform_scanline_rgbA(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
155 SkUnpremultiplyRow<false>((uint32_t*) dst, (const uint32_t*) src, width);
161 static inline void transform_scanline_bgrA(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
163 SkUnpremultiplyRow<true>((uint32_t*) dst, (const uint32_t*) src, width);
167 static inline void transform_scanline_unpremultiply_sRGB(void* dst, const void* src, int width) {
168 SkJumper_MemoryCtx src_ctx = { (void*)src, 0 },
188 const char* SK_RESTRICT src,
190 SkOpts::RGBA_to_rgbA((uint32_t*)dst, (const uint32_t*)src, width);
197 const char* SK_RESTRICT src,
199 SkJumper_MemoryCtx src_ctx = { (void*)src, 0 },
213 static inline void transform_scanline_srgbA(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
215 transform_scanline_unpremultiply_sRGB<true>(dst, src, width);
221 static inline void transform_scanline_sbgrA(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
223 transform_scanline_unpremultiply_sRGB<false>(dst, src, width);
229 static inline void transform_scanline_BGRA(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
231 const uint32_t* srcP = (const SkPMColor*)src;
245 static inline void transform_scanline_4444(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
247 const SkPMColor16* srcP = (const SkPMColor16*)src;
271 static inline void transform_scanline_888x(char* dst, const char* src,
274 dst[0] = src[0];
275 dst[1] = src[1];
276 dst[2] = src[2];
278 src += 4;
283 static inline void transform_scanline_101010x(char* dst, const char* src,
286 auto s = (const uint32_t*)src;
307 static inline void transform_scanline_1010102(char* dst, const char* src,
309 SkJumper_MemoryCtx src_ctx = { (void*)src, 0 },
317 static inline void transform_scanline_1010102_premul(char* dst, const char* src,
319 SkJumper_MemoryCtx src_ctx = { (void*)src, 0 },
331 static inline void transform_scanline_F16(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
333 SkJumper_MemoryCtx src_ctx = { (void*)src, 0 },
347 static inline void transform_scanline_F16_premul(char* SK_RESTRICT dst, const char* SK_RESTRICT src,
349 SkJumper_MemoryCtx src_ctx = { (void*)src, 0 },
365 const char* SK_RESTRICT src, int width, int,
367 SkJumper_MemoryCtx src_ctx = { (void*)src, 0 },
382 const char* SK_RESTRICT src, int width,
384 SkJumper_MemoryCtx src_ctx = { (void*)src, 0 },
400 const char* SK_RESTRICT src, int width, int, const SkPMColor*) {
401 SkJumper_MemoryCtx src_ctx = { (void*)src, 0 },