Lines Matching refs:imageInfo

875 static void analyze_image(const char *imageName, image_info &imageInfo, int grayscaleTolerance,  in analyze_image()  argument
880 int w = imageInfo.width; in analyze_image()
881 int h = imageInfo.height; in analyze_image()
903 dump_image(w, h, imageInfo.rows, PNG_COLOR_TYPE_RGB_ALPHA); in analyze_image()
907 png_bytep row = imageInfo.rows[j]; in analyze_image()
1089 png_bytep row = imageInfo.rows[j]; in analyze_image()
1117 png_bytep row = imageInfo.rows[j]; in analyze_image()
1140 image_info& imageInfo, const Bundle* bundle) in write_png() argument
1152 png_bytepp outRows = (png_bytepp) malloc((int) imageInfo.height * sizeof(png_bytep)); in write_png()
1157 for (i = 0; i < (int) imageInfo.height; i++) { in write_png()
1158 outRows[i] = (png_bytep) malloc(2 * (int) imageInfo.width); in write_png()
1169 (int) imageInfo.width, (int) imageInfo.height); in write_png()
1178 analyze_image(imageName, imageInfo, grayscaleTolerance, rgbPalette, alphaPalette, in write_png()
1188 if (imageInfo.is9Patch && PNG_COLOR_TYPE_PALETTE == color_type) { in write_png()
1219 png_set_IHDR(write_ptr, write_info, imageInfo.width, imageInfo.height, in write_png()
1234 if (imageInfo.is9Patch) { in write_png()
1235 int chunk_count = 2 + (imageInfo.haveLayoutBounds ? 1 : 0); in write_png()
1236 int p_index = imageInfo.haveLayoutBounds ? 2 : 1; in write_png()
1241 png_byte *chunk_names = imageInfo.haveLayoutBounds in write_png()
1250 unknowns[p_index].data = (png_byte*)imageInfo.serialize9patch(); in write_png()
1251 unknowns[p_index].size = imageInfo.info9Patch.serializedSize(); in write_png()
1253 checkNinePatchSerialization(&imageInfo.info9Patch, unknowns[p_index].data); in write_png()
1260 memcpy(&outputData, &imageInfo.outlineInsetsLeft, 4 * sizeof(png_uint_32)); in write_png()
1261 ((float*) outputData)[4] = imageInfo.outlineRadius; in write_png()
1262 ((png_uint_32*) outputData)[5] = imageInfo.outlineAlpha; in write_png()
1267 if (imageInfo.haveLayoutBounds) { in write_png()
1271 memcpy(unknowns[b_index].data, &imageInfo.layoutBoundsLeft, chunk_size); in write_png()
1291 rows = imageInfo.rows; in write_png()
1299 dump_image(imageInfo.width, imageInfo.height, rows, color_type); in write_png()
1304 for (i = 0; i < (int) imageInfo.height; i++) { in write_png()
1324 const sp<AaptFile>& file, FILE* fp, image_info* imageInfo) { in read_png_protected() argument
1331 read_png(printableName.string(), read_ptr, read_info, imageInfo); in read_png_protected()
1337 if (do_9patch(printableName.string(), imageInfo) != NO_ERROR) { in read_png_protected()
1347 image_info* imageInfo, const Bundle* bundle) { in write_png_protected() argument
1352 write_png(printableName.string(), write_ptr, write_info, *imageInfo, bundle); in write_png_protected()
1381 image_info imageInfo; in preProcessImage() local
1405 if (!read_png_protected(read_ptr, printableName, read_info, file, fp, &imageInfo)) { in preProcessImage()
1425 if (!write_png_protected(write_ptr, printableName, write_info, &imageInfo, bundle)) { in preProcessImage()
1465 image_info imageInfo; in preProcessImageToCache() local
1510 read_png(source.string(), read_ptr, read_info, &imageInfo); in preProcessImageToCache()
1522 if (do_9patch(source.string(), &imageInfo) != NO_ERROR) { in preProcessImageToCache()
1562 write_png(dest.string(), write_ptr, write_info, imageInfo, bundle); in preProcessImageToCache()