Lines Matching refs:rows
39 image_info() : rows(NULL), is9Patch(false), in image_info()
43 if (rows && rows != allocRows) { in ~image_info()
44 free(rows); in ~image_info()
65 png_bytepp rows; member
143 outImageInfo->rows = (png_bytepp)malloc( in read_png()
146 outImageInfo->allocRows = outImageInfo->rows; in read_png()
148 png_set_rows(read_ptr, read_info, outImageInfo->rows); in read_png()
152 outImageInfo->rows[i] = (png_bytep) in read_png()
156 png_read_image(read_ptr, outImageInfo->rows); in read_png()
287 png_bytepp rows, int offset, int height, bool transparent, bool required, in get_vertical_ticks() argument
297 if (TICK_TYPE_TICK == tick_type(rows[i]+offset, transparent, outError)) { in get_vertical_ticks()
374 png_bytepp rows, int offset, int height, bool transparent, bool /* required */, in get_vertical_layout_bounds_ticks() argument
381 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[1] + offset, transparent, outError)) { in get_vertical_layout_bounds_ticks()
387 int tick = tick_type(rows[i] + offset, transparent, outError); in get_vertical_layout_bounds_ticks()
395 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[height - 2] + offset, transparent, outError)) { in get_vertical_layout_bounds_ticks()
401 int tick = tick_type(rows[i] + offset, transparent, outError); in get_vertical_layout_bounds_ticks()
411 static void find_max_opacity(png_byte** rows, in find_max_opacity() argument
419 png_byte* color = rows[y] + x * 4; in find_max_opacity()
439 static uint8_t max_alpha_over_col(png_byte** rows, int offsetX, int startY, int endY) in max_alpha_over_col() argument
443 uint8_t alpha = (rows[y] + offsetX * 4)[3]; in max_alpha_over_col()
458 find_max_opacity(image->rows, 1, midY, midX, -1, 1, 0, &image->outlineInsetsLeft); in get_outline()
459 find_max_opacity(image->rows, endX, midY, midX, -1, -1, 0, &image->outlineInsetsRight); in get_outline()
467 find_max_opacity(image->rows, midX, 1, -1, midY, 0, 1, &image->outlineInsetsTop); in get_outline()
468 find_max_opacity(image->rows, midX, endY, -1, midY, 0, -1, &image->outlineInsetsBottom); in get_outline()
484 max_alpha_over_row(image->rows[innerMidY], innerStartX, innerEndX), in get_outline()
485 max_alpha_over_col(image->rows, innerMidX, innerStartY, innerStartY)); in get_outline()
488 find_max_opacity(image->rows, innerStartX, innerStartY, innerMidX, innerMidY, 1, 1, in get_outline()
512 png_bytepp rows, int left, int top, int right, int bottom) in get_color() argument
514 png_bytep color = rows[top] + left*4; in get_color()
522 png_bytep p = rows[top]+i*4; in get_color()
571 png_bytep p = image->rows[0]; in do_9patch()
603 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0], in do_9patch()
615 … if (get_horizontal_ticks(image->rows[H-1], W, transparent, false, &image->info9Patch.paddingLeft, in do_9patch()
623 … if (get_vertical_ticks(image->rows, (W-1)*4, H, transparent, false, &image->info9Patch.paddingTop, in do_9patch()
631 get_horizontal_layout_bounds_ticks(image->rows[H-1], W, transparent, false, in do_9patch()
635 get_vertical_layout_bounds_ticks(image->rows, (W-1)*4, H, transparent, false, in do_9patch()
680 image->rows = (png_bytepp)malloc((H-2) * sizeof(png_bytep)); in do_9patch()
682 image->rows[i] = image->allocRows[i+1]; in do_9patch()
683 memmove(image->rows[i], image->rows[i]+4, (W-2)*4); in do_9patch()
757 c = get_color(image->rows, left, top, right - 1, bottom - 1); in do_9patch()
822 static void dump_image(int w, int h, png_bytepp rows, int color_type) in dump_image() argument
839 png_bytep row = rows[j]; in dump_image()
897 dump_image(w, h, imageInfo.rows, PNG_COLOR_TYPE_RGB_ALPHA); in analyze_image()
901 png_bytep row = imageInfo.rows[j]; in analyze_image()
1034 png_bytep row = imageInfo.rows[j]; in analyze_image()
1200 png_bytepp rows; in write_png() local
1205 rows = imageInfo.rows; in write_png()
1207 rows = outRows; in write_png()
1209 png_write_image(write_ptr, rows); in write_png()
1213 dump_image(imageInfo.width, imageInfo.height, rows, color_type); in write_png()