Home | History | Annotate | Download | only in images

Lines Matching refs:bitDepth

87     bool decodePalette(png_structp png_ptr, png_infop info_ptr, int bitDepth,
257 int bitDepth, colorType;
258 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bitDepth,
262 if (bitDepth == 16) {
268 if (bitDepth < 8) {
273 if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) {
296 int bitDepth, pngColorType, interlaceType;
297 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bitDepth,
328 decodePalette(png_ptr, info_ptr, bitDepth, &hasAlpha, &reallyHasAlpha, &colorTable);
479 int bitDepth, colorType;
480 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bitDepth,
525 if (16 == bitDepth) {
532 and (bitDepth == 8), for certain versions of libpng. */
539 if (16 == bitDepth) {
546 255) and (bitDepth == 8), for certain versions
635 int bitDepth, bool *hasAlphap,
689 addressed by the bitdepth of the image and fill it with the last palette color or black if
692 int colorCount = SkTMax(numPalette, 1 << SkTMin(bitDepth, 8));
744 // return the minimum legal bitdepth (by png standards) for this many colortable
754 // for the moment, we don't know how to pack bitdepth < 8
822 int bitDepth, SkColorType ct,
851 int bitDepth = 8; // default for color
902 bitDepth = computeBitDepth(ctable->count());
905 return doEncode(stream, *bitmap, hasAlpha, colorType, bitDepth, ct, sig_bit);
910 int bitDepth, SkColorType ct,
948 bitDepth, colorType,