Lines Matching refs:colorType

111     int colorType, bitDepth, interlaceType, compressionType;
112 png_get_IHDR(readPtr, infoPtr, &outInfo->width, &outInfo->height, &bitDepth, &colorType,
115 if (colorType == PNG_COLOR_TYPE_PALETTE) {
119 if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) {
131 if (!(colorType & PNG_COLOR_MASK_ALPHA)) {
135 if (colorType == PNG_COLOR_TYPE_GRAY || colorType == PNG_COLOR_TYPE_GRAY_ALPHA) {
232 int *paletteEntries, bool *hasTransparency, int *colorType,
348 *colorType = PNG_COLOR_TYPE_GRAY; // 1 byte/pixel
355 *colorType = PNG_COLOR_TYPE_PALETTE; // 1 byte/pixel + 4 bytes/color
357 *colorType = PNG_COLOR_TYPE_GRAY_ALPHA; // 2 bytes per pixel
361 *colorType = PNG_COLOR_TYPE_PALETTE;
367 *colorType = isOpaque ? PNG_COLOR_TYPE_GRAY : PNG_COLOR_TYPE_GRAY_ALPHA;
369 *colorType = isOpaque ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA;
376 if (*colorType == PNG_COLOR_TYPE_PALETTE) {
388 } else if (*colorType == PNG_COLOR_TYPE_GRAY || *colorType == PNG_COLOR_TYPE_GRAY_ALPHA) {
420 int colorType, bitDepth, interlaceType, compressionType;
454 &paletteEntries, &hasTransparency, &colorType, outRows);
458 if (info->is9Patch && (colorType == PNG_COLOR_TYPE_RGB ||
459 colorType == PNG_COLOR_TYPE_GRAY || colorType == PNG_COLOR_TYPE_PALETTE)) {
460 colorType = PNG_COLOR_TYPE_RGB_ALPHA;
464 switch (colorType) {
486 png_set_IHDR(writePtr, infoPtr, info->width, info->height, 8, colorType,
489 if (colorType == PNG_COLOR_TYPE_PALETTE) {
559 if (colorType == PNG_COLOR_TYPE_RGB || colorType == PNG_COLOR_TYPE_RGB_ALPHA) {
560 if (colorType == PNG_COLOR_TYPE_RGB) {
571 //dump_image(info->width, info->height, rows, colorType);
584 png_get_IHDR(writePtr, infoPtr, &width, &height, &bitDepth, &colorType, &interlaceType,
590 << ", d = " << bitDepth << ", colors = " << colorType