• Home
  • Raw
  • Download

Lines Matching refs:imageInfo

803 static void analyze_image(const char *imageName, image_info &imageInfo, int grayscaleTolerance,  in analyze_image()  argument
808 int w = imageInfo.width; in analyze_image()
809 int h = imageInfo.height; in analyze_image()
828 png_bytep row = imageInfo.rows[j]; in analyze_image()
951 png_bytep row = imageInfo.rows[j]; in analyze_image()
975 image_info& imageInfo, int grayscaleTolerance) in write_png() argument
987 png_bytepp outRows = (png_bytepp) malloc((int) imageInfo.height * png_sizeof(png_bytep)); in write_png()
992 for (i = 0; i < (int) imageInfo.height; i++) { in write_png()
993 outRows[i] = (png_bytep) malloc(2 * (int) imageInfo.width); in write_png()
1003 (int) imageInfo.width, (int) imageInfo.height)); in write_png()
1010 analyze_image(imageName, imageInfo, grayscaleTolerance, rgbPalette, alphaPalette, in write_png()
1015 if (imageInfo.is9Patch && (color_type == PNG_COLOR_TYPE_RGB || in write_png()
1040 png_set_IHDR(write_ptr, write_info, imageInfo.width, imageInfo.height, in write_png()
1054 if (imageInfo.is9Patch) { in write_png()
1055 int chunk_count = 1 + (imageInfo.haveLayoutBounds ? 1 : 0); in write_png()
1056 int p_index = imageInfo.haveLayoutBounds ? 1 : 0; in write_png()
1058 png_byte *chunk_names = imageInfo.haveLayoutBounds in write_png()
1063 unknowns[p_index].data = (png_byte*)imageInfo.info9Patch.serialize(); in write_png()
1064 unknowns[p_index].size = imageInfo.info9Patch.serializedSize(); in write_png()
1066 checkNinePatchSerialization(&imageInfo.info9Patch, unknowns[p_index].data); in write_png()
1068 if (imageInfo.haveLayoutBounds) { in write_png()
1072 memcpy(unknowns[b_index].data, &imageInfo.layoutBoundsLeft, chunk_size); in write_png()
1085 if (imageInfo.haveLayoutBounds) { in write_png()
1096 rows = imageInfo.rows; in write_png()
1107 for (i = 0; i < (int) imageInfo.height; i++) { in write_png()
1147 image_info imageInfo; in preProcessImage() local
1179 read_png(printableName.string(), read_ptr, read_info, &imageInfo); in preProcessImage()
1184 if (do_9patch(printableName.string(), &imageInfo) != NO_ERROR) { in preProcessImage()
1211 write_png(printableName.string(), write_ptr, write_info, imageInfo, in preProcessImage()
1250 image_info imageInfo; in preProcessImageToCache() local
1295 read_png(source.string(), read_ptr, read_info, &imageInfo); in preProcessImageToCache()
1307 if (do_9patch(source.string(), &imageInfo) != NO_ERROR) { in preProcessImageToCache()
1347 write_png(dest.string(), write_ptr, write_info, imageInfo, in preProcessImageToCache()