Lines Matching full:imageinfo
874 static void analyze_image(const char *imageName, image_info &imageInfo, int grayscaleTolerance,
879 int w = imageInfo.width;
880 int h = imageInfo.height;
902 dump_image(w, h, imageInfo.rows, PNG_COLOR_TYPE_RGB_ALPHA);
906 png_bytep row = imageInfo.rows[j];
1088 png_bytep row = imageInfo.rows[j];
1116 png_bytep row = imageInfo.rows[j];
1139 image_info& imageInfo, const Bundle* bundle)
1151 png_bytepp outRows = (png_bytepp) malloc((int) imageInfo.height * sizeof(png_bytep));
1156 for (i = 0; i < (int) imageInfo.height; i++) {
1157 outRows[i] = (png_bytep) malloc(2 * (int) imageInfo.width);
1168 (int) imageInfo.width, (int) imageInfo.height);
1177 analyze_image(imageName, imageInfo, grayscaleTolerance, rgbPalette, alphaPalette,
1187 if (imageInfo.is9Patch && PNG_COLOR_TYPE_PALETTE == color_type) {
1218 png_set_IHDR(write_ptr, write_info, imageInfo.width, imageInfo.height,
1233 if (imageInfo.is9Patch) {
1234 int chunk_count = 2 + (imageInfo.haveLayoutBounds ? 1 : 0);
1235 int p_index = imageInfo.haveLayoutBounds ? 2 : 1;
1240 png_byte *chunk_names = imageInfo.haveLayoutBounds
1249 unknowns[p_index].data = (png_byte*)imageInfo.serialize9patch();
1250 unknowns[p_index].size = imageInfo.info9Patch.serializedSize();
1252 checkNinePatchSerialization(&imageInfo.info9Patch, unknowns[p_index].data);
1259 memcpy(&outputData, &imageInfo.outlineInsetsLeft, 4 * sizeof(png_uint_32));
1260 ((float*) outputData)[4] = imageInfo.outlineRadius;
1261 ((png_uint_32*) outputData)[5] = imageInfo.outlineAlpha;
1266 if (imageInfo.haveLayoutBounds) {
1270 memcpy(unknowns[b_index].data, &imageInfo.layoutBoundsLeft, chunk_size);
1290 rows = imageInfo.rows;
1298 dump_image(imageInfo.width, imageInfo.height, rows, color_type);
1303 for (i = 0; i < (int) imageInfo.height; i++) {
1323 const sp<AaptFile>& file, FILE* fp, image_info* imageInfo) {
1330 read_png(printableName.string(), read_ptr, read_info, imageInfo);
1336 if (do_9patch(printableName.string(), imageInfo) != NO_ERROR) {
1346 image_info* imageInfo, const Bundle* bundle) {
1351 write_png(printableName.string(), write_ptr, write_info, *imageInfo, bundle);
1380 image_info imageInfo;
1404 if (!read_png_protected(read_ptr, printableName, read_info, file, fp, &imageInfo)) {
1424 if (!write_png_protected(write_ptr, printableName, write_info, &imageInfo, bundle)) {
1464 image_info imageInfo;
1509 read_png(source.string(), read_ptr, read_info, &imageInfo);
1521 if (do_9patch(source.string(), &imageInfo) != NO_ERROR) {
1561 write_png(dest.string(), write_ptr, write_info, imageInfo, bundle);