Lines Matching refs:ct
26 static inline uint32_t SkColorTypeComponentFlags(SkColorType ct) { in SkColorTypeComponentFlags() argument
27 switch (ct) { in SkColorTypeComponentFlags()
45 static inline bool SkColorTypeIsAlphaOnly(SkColorType ct) { in SkColorTypeIsAlphaOnly() argument
46 return kAlpha_SkColorTypeComponentFlag == SkColorTypeComponentFlags(ct); in SkColorTypeIsAlphaOnly()
53 static inline bool SkColorTypeIsGray(SkColorType ct) { in SkColorTypeIsGray() argument
54 auto flags = SkColorTypeComponentFlags(ct); in SkColorTypeIsGray()
60 static int SkColorTypeShiftPerPixel(SkColorType ct) { in SkColorTypeShiftPerPixel() argument
61 switch (ct) { in SkColorTypeShiftPerPixel()
79 static inline size_t SkColorTypeMinRowBytes(SkColorType ct, int width) { in SkColorTypeMinRowBytes() argument
80 return width * SkColorTypeBytesPerPixel(ct); in SkColorTypeMinRowBytes()
87 static inline size_t SkColorTypeComputeOffset(SkColorType ct, int x, int y, size_t rowBytes) { in SkColorTypeComputeOffset() argument
88 if (kUnknown_SkColorType == ct) { in SkColorTypeComputeOffset()
91 return y * rowBytes + (x << SkColorTypeShiftPerPixel(ct)); in SkColorTypeComputeOffset()