Lines Matching full:srcinfo
143 const SkImageInfo& srcInfo) {
147 const int w = srcInfo.width();
148 const int h = srcInfo.height();
149 const bool isBGRA = (kBGRA_8888_SkColorType == srcInfo.colorType());
171 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB,
173 if (srcInfo.dimensions() != dstInfo.dimensions()) {
177 const int width = srcInfo.width();
178 const int height = srcInfo.height();
181 if ((srcInfo == dstInfo) && !ctable) {
182 size_t bytes = width * srcInfo.bytesPerPixel();
192 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) {
200 srcPI.fColorType = srcInfo.colorType();
201 srcPI.fAlphaType = srcInfo.alphaType();
210 if (srcInfo.colorType() == dstInfo.colorType()) {
211 switch (srcInfo.colorType()) {
218 if (srcInfo.alphaType() != dstInfo.alphaType()) {
225 SkRectMemcpy(dstPixels, dstRB, srcPixels, srcRB, width * srcInfo.bytesPerPixel(), height);
234 if (kGray_8_SkColorType == srcInfo.colorType() && 4 == dstInfo.bytesPerPixel()) {
238 if (kGray_8_SkColorType == dstInfo.colorType() && 4 == srcInfo.bytesPerPixel()) {
239 copy_32_to_g8(dstPixels, dstRB, srcPixels, srcRB, srcInfo);
245 (kN32_SkColorType == srcInfo.colorType() || kIndex_8_SkColorType == srcInfo.colorType())) {
246 if (srcInfo.alphaType() == kUnpremul_SkAlphaType) {
252 if (kIndex_8_SkColorType == srcInfo.colorType()) {
290 if (!bm.installPixels(srcInfo, const_cast<void*>(srcPixels), srcRB, ctable, nullptr, nullptr)) {