Lines Matching refs:ct
14 static inline uint32_t SkColorTypeChannelFlags(SkColorType ct) { in SkColorTypeChannelFlags() argument
15 switch (ct) { in SkColorTypeChannelFlags()
42 static inline bool SkColorTypeIsAlphaOnly(SkColorType ct) { in SkColorTypeIsAlphaOnly() argument
43 return SkColorTypeChannelFlags(ct) == kAlpha_SkColorChannelFlag; in SkColorTypeIsAlphaOnly()
50 static int SkColorTypeShiftPerPixel(SkColorType ct) { in SkColorTypeShiftPerPixel() argument
51 switch (ct) { in SkColorTypeShiftPerPixel()
78 static inline size_t SkColorTypeMinRowBytes(SkColorType ct, int width) { in SkColorTypeMinRowBytes() argument
79 return (size_t)(width * SkColorTypeBytesPerPixel(ct)); in SkColorTypeMinRowBytes()
86 static inline size_t SkColorTypeComputeOffset(SkColorType ct, int x, int y, size_t rowBytes) { in SkColorTypeComputeOffset() argument
87 if (kUnknown_SkColorType == ct) { in SkColorTypeComputeOffset()
90 return (size_t)y * rowBytes + ((size_t)x << SkColorTypeShiftPerPixel(ct)); in SkColorTypeComputeOffset()
93 static inline bool SkColorTypeIsNormalized(SkColorType ct) { in SkColorTypeIsNormalized() argument
94 switch (ct) { in SkColorTypeIsNormalized()
122 static inline int SkColorTypeMaxBitsPerChannel(SkColorType ct) { in SkColorTypeMaxBitsPerChannel() argument
123 switch (ct) { in SkColorTypeMaxBitsPerChannel()