Lines Matching refs:rows

39     image_info() : rows(NULL), is9Patch(false),
43 if (rows && rows != allocRows) {
44 free(rows);
65 png_bytepp rows;
143 outImageInfo->rows = (png_bytepp)malloc(
146 outImageInfo->allocRows = outImageInfo->rows;
148 png_set_rows(read_ptr, read_info, outImageInfo->rows);
152 outImageInfo->rows[i] = (png_bytep)
156 png_read_image(read_ptr, outImageInfo->rows);
287 png_bytepp rows, int offset, int height, bool transparent, bool required,
297 if (TICK_TYPE_TICK == tick_type(rows[i]+offset, transparent, outError)) {
374 png_bytepp rows, int offset, int height, bool transparent, bool /* required */,
381 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[1] + offset, transparent, outError)) {
387 int tick = tick_type(rows[i] + offset, transparent, outError);
395 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[height - 2] + offset, transparent, outError)) {
401 int tick = tick_type(rows[i] + offset, transparent, outError);
411 static void find_max_opacity(png_byte** rows,
419 png_byte* color = rows[y] + x * 4;
439 static uint8_t max_alpha_over_col(png_byte** rows, int offsetX, int startY, int endY)
443 uint8_t alpha = (rows[y] + offsetX * 4)[3];
458 find_max_opacity(image->rows, 1, midY, midX, -1, 1, 0, &image->outlineInsetsLeft);
459 find_max_opacity(image->rows, endX, midY, midX, -1, -1, 0, &image->outlineInsetsRight);
467 find_max_opacity(image->rows, midX, 1, -1, midY, 0, 1, &image->outlineInsetsTop);
468 find_max_opacity(image->rows, midX, endY, -1, midY, 0, -1, &image->outlineInsetsBottom);
484 max_alpha_over_row(image->rows[innerMidY], innerStartX, innerEndX),
485 max_alpha_over_col(image->rows, innerMidX, innerStartY, innerStartY));
488 find_max_opacity(image->rows, innerStartX, innerStartY, innerMidX, innerMidY, 1, 1,
512 png_bytepp rows, int left, int top, int right, int bottom)
514 png_bytep color = rows[top] + left*4;
522 png_bytep p = rows[top]+i*4;
571 png_bytep p = image->rows[0];
603 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0],
615 if (get_horizontal_ticks(image->rows[H-1], W, transparent, false, &image->info9Patch.paddingLeft,
623 if (get_vertical_ticks(image->rows, (W-1)*4, H, transparent, false, &image->info9Patch.paddingTop,
631 get_horizontal_layout_bounds_ticks(image->rows[H-1], W, transparent, false,
635 get_vertical_layout_bounds_ticks(image->rows, (W-1)*4, H, transparent, false,
680 image->rows = (png_bytepp)malloc((H-2) * sizeof(png_bytep));
682 image->rows[i] = image->allocRows[i+1];
683 memmove(image->rows[i], image->rows[i]+4, (W-2)*4);
690 // Figure out the number of rows and columns in the N-patch
706 // Make sure the amount of rows and columns will fit in the number of
709 errorMsg = "Too many rows and columns in 9-patch perimeter";
757 c = get_color(image->rows, left, top, right - 1, bottom - 1);
822 static void dump_image(int w, int h, png_bytepp rows, int color_type)
839 png_bytep row = rows[j];
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];
1285 png_bytepp rows;
1290 rows = imageInfo.rows;
1292 rows = outRows;
1294 png_write_image(write_ptr, rows);
1298 dump_image(imageInfo.width, imageInfo.height, rows, color_type);