• Home
  • Raw
  • Download

Lines Matching refs:bitDepth

103     bool decodePalette(png_structp png_ptr, png_infop info_ptr, int bitDepth,
285 int bitDepth, colorType; in onDecodeInit() local
286 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bitDepth, in onDecodeInit()
290 if (bitDepth == 16) { in onDecodeInit()
296 if (bitDepth < 8) { in onDecodeInit()
301 if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) { in onDecodeInit()
324 int bitDepth, pngColorType, interlaceType; in onDecode() local
325 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bitDepth, in onDecode()
356 decodePalette(png_ptr, info_ptr, bitDepth, &hasAlpha, &reallyHasAlpha, &colorTable); in onDecode()
507 int bitDepth, colorType; in getBitmapColorType() local
508 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bitDepth, in getBitmapColorType()
553 if (16 == bitDepth) { in getBitmapColorType()
567 if (16 == bitDepth) { in getBitmapColorType()
663 int bitDepth, bool *hasAlphap, in decodePalette() argument
720 int colorCount = SkTMax(numPalette, 1 << SkTMin(bitDepth, 8)); in decodePalette()
748 int bitDepth, colorType; in onBuildTileIndex() local
749 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bitDepth, in onBuildTileIndex()
777 int bitDepth, pngColorType, interlaceType; in onDecodeSubset() local
778 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bitDepth, in onDecodeSubset()
813 decodePalette(png_ptr, info_ptr, bitDepth, &hasAlpha, &reallyHasAlpha, &colorTable); in onDecodeSubset()
1111 int bitDepth, SkColorType ct,
1122 int bitDepth = 8; // default for color in onEncode() local
1173 bitDepth = computeBitDepth(ctable->count()); in onEncode()
1176 return doEncode(stream, bitmap, hasAlpha, colorType, bitDepth, ct, sig_bit); in onEncode()
1181 int bitDepth, SkColorType ct, in doEncode() argument
1219 bitDepth, colorType, in doEncode()