Lines Matching refs:dstInfo
17 static bool rect_memcpy(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in rect_memcpy() argument
21 if (dstInfo.colorType() != srcInfo.colorType()) { in rect_memcpy()
24 if (dstInfo.colorType() != kAlpha_8_SkColorType in rect_memcpy()
30 srcPixels, srcRB, dstInfo.minRowBytes(), dstInfo.height()); in rect_memcpy()
34 static bool swizzle_or_premul(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in swizzle_or_premul() argument
40 if (!is_8888(dstInfo.colorType()) || in swizzle_or_premul()
49 const bool swapRB = dstInfo.colorType() != srcInfo.colorType(); in swizzle_or_premul()
62 for (int y = 0; y < dstInfo.height(); y++) { in swizzle_or_premul()
63 fn((uint32_t*)dstPixels, (const uint32_t*)srcPixels, dstInfo.width()); in swizzle_or_premul()
70 static bool convert_to_alpha8(const SkImageInfo& dstInfo, void* vdst, size_t dstRB, in convert_to_alpha8() argument
73 if (dstInfo.colorType() != kAlpha_8_SkColorType) { in convert_to_alpha8()
164 static void convert_with_pipeline(const SkImageInfo& dstInfo, void* dstRow, size_t dstRB, in convert_with_pipeline() argument
169 dst = { (void*)dstRow, (int)(dstRB / dstInfo.bytesPerPixel()) }; in convert_with_pipeline()
175 pipeline.append_gamut_clamp_if_normalized(dstInfo); in convert_with_pipeline()
177 pipeline.append_store(dstInfo.colorType(), &dst); in convert_with_pipeline()
181 void SkConvertPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in SkConvertPixels() argument
183 SkASSERT(dstInfo.dimensions() == srcInfo.dimensions()); in SkConvertPixels()
184 SkASSERT(SkImageInfoValidConversion(dstInfo, srcInfo)); in SkConvertPixels()
187 dstInfo.colorSpace(), dstInfo.alphaType()}; in SkConvertPixels()
190 if (fn(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps)) { in SkConvertPixels()
194 convert_with_pipeline(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps); in SkConvertPixels()