396 {
397
398
399 RowProc proc = nullptr;
400 switch (bitsPerPixel) {
401 case 16:
404 if (srcIsOpaque) {
406 } else {
410 break;
413 break;
414 default:
415 break;
416 }
417 }
418 break;
420 if (srcIsOpaque) {
422 } else {
426 break;
429 break;
430 default:
431 break;
432 }
433 }
434 break;
437 break;
438 default:
439 break;
440 }
441 break;
442 case 24:
445 if (srcIsOpaque) {
447 } else {
451 break;
454 break;
455 default:
456 break;
457 }
458 }
459 break;
461 if (srcIsOpaque) {
463 } else {
467 break;
470 break;
471 default:
472 break;
473 }
474 }
475 break;
478 break;
479 default:
480 break;
481 }
482 break;
483 case 32:
486 if (srcIsOpaque) {
488 } else {
492 break;
495 break;
496 default:
497 break;
498 }
499 }
500 break;
502 if (srcIsOpaque) {
504 } else {
508 break;
511 break;
512 default:
513 break;
514 }
515 }
516 break;
519 break;
520 default:
521 break;
522 }
523 break;
524 default:
526 return nullptr;
527 }
528
529 int srcOffset = 0;
530 int srcWidth = dstInfo.
width();
532 srcOffset =
options.fSubset->left();
533 srcWidth =
options.fSubset->width();
534 }
535
537}
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kBGRA_8888_SkColorType
pixel with 8 bits for blue, green, red, alpha; in 32-bit word
@ kRGB_565_SkColorType
pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
static void swizzle_mask32_to_rgba_opaque(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask16_to_rgba_opaque(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask24_to_rgba_premul(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask32_to_rgba_premul(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask32_to_rgba_unpremul(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask24_to_rgba_unpremul(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask32_to_bgra_opaque(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask24_to_rgba_opaque(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask16_to_rgba_premul(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask32_to_bgra_premul(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask24_to_bgra_premul(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask16_to_bgra_premul(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask24_to_bgra_unpremul(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask16_to_bgra_opaque(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask24_to_bgra_opaque(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask16_to_rgba_unpremul(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask32_to_bgra_unpremul(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask16_to_bgra_unpremul(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask24_to_565(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask16_to_565(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
static void swizzle_mask32_to_565(void *dstRow, const uint8_t *srcRow, int width, SkMasks *masks, uint32_t startX, uint32_t sampleX)
SkAlphaType alphaType() const
SkColorType colorType() const