• Home
  • Raw
  • Download

Lines Matching refs:srcInfo

18                         const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB,  in rect_memcpy()  argument
21 if (dstInfo.colorType() != srcInfo.colorType()) { in rect_memcpy()
35 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB, in swizzle_or_premul() argument
41 !is_8888(srcInfo.colorType()) || in swizzle_or_premul()
49 const bool swapRB = dstInfo.colorType() != srcInfo.colorType(); in swizzle_or_premul()
71 const SkImageInfo& srcInfo, const void* src, size_t srcRB, in convert_to_alpha8() argument
78 switch (srcInfo.colorType()) { in convert_to_alpha8()
89 for (int y = 0; y < srcInfo.height(); y++) { in convert_to_alpha8()
90 for (int x = 0; x < srcInfo.width(); x++) { in convert_to_alpha8()
107 for (int y = 0; y < srcInfo.height(); ++y) { in convert_to_alpha8()
108 memset(dst, 0xFF, srcInfo.width()); in convert_to_alpha8()
116 for (int y = 0; y < srcInfo.height(); y++) { in convert_to_alpha8()
117 for (int x = 0; x < srcInfo.width(); x++) { in convert_to_alpha8()
130 for (int y = 0; y < srcInfo.height(); y++) { in convert_to_alpha8()
131 for (int x = 0; x < srcInfo.width(); x++) { in convert_to_alpha8()
143 for (int y = 0; y < srcInfo.height(); y++) { in convert_to_alpha8()
144 for (int x = 0; x < srcInfo.width(); x++) { in convert_to_alpha8()
156 for (int y = 0; y < srcInfo.height(); y++) { in convert_to_alpha8()
157 for (int x = 0; x < srcInfo.width(); x++) { in convert_to_alpha8()
168 for (int y = 0; y < srcInfo.height(); y++) { in convert_to_alpha8()
169 for (int x = 0; x < srcInfo.width(); x++) { in convert_to_alpha8()
180 for (int y = 0; y < srcInfo.height(); y++) { in convert_to_alpha8()
181 for (int x = 0; x < srcInfo.width(); x++) { in convert_to_alpha8()
192 for (int y = 0; y < srcInfo.height(); y++) { in convert_to_alpha8()
193 for (int x = 0; x < srcInfo.width(); x++) { in convert_to_alpha8()
207 const SkImageInfo& srcInfo, const void* srcRow, int srcStride, in convert_with_pipeline() argument
213 pipeline.append_load(srcInfo.colorType(), &src); in convert_with_pipeline()
219 pipeline.run(0,0, srcInfo.width(), srcInfo.height()); in convert_with_pipeline()
223 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB) { in SkConvertPixels() argument
224 SkASSERT(dstInfo.dimensions() == srcInfo.dimensions()); in SkConvertPixels()
225 SkASSERT(SkImageInfoValidConversion(dstInfo, srcInfo)); in SkConvertPixels()
227 int srcStride = (int)(srcRB / srcInfo.bytesPerPixel()); in SkConvertPixels()
229 if ((size_t)srcStride * srcInfo.bytesPerPixel() != srcRB || in SkConvertPixels()
234 SkColorSpaceXformSteps steps{srcInfo.colorSpace(), srcInfo.alphaType(), in SkConvertPixels()
238 if (fn(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps)) { in SkConvertPixels()
242 convert_with_pipeline(dstInfo, dstPixels, dstStride, srcInfo, srcPixels, srcStride, steps); in SkConvertPixels()