Home | History | Annotate | Download | only in aapt

Lines Matching full:rows

36     image_info() : rows(NULL), is9Patch(false), allocRows(NULL) { }
38 if (rows && rows != allocRows) {
39 free(rows);
54 png_bytepp rows;
111 outImageInfo->rows = (png_bytepp)malloc(
114 outImageInfo->allocRows = outImageInfo->rows;
116 png_set_rows(read_ptr, read_info, outImageInfo->rows);
120 outImageInfo->rows[i] = (png_bytep)
124 png_read_image(read_ptr, outImageInfo->rows);
253 png_bytepp rows, int offset, int height, bool transparent, bool required,
263 if (TICK_TYPE_TICK == tick_type(rows[i]+offset, transparent, outError)) {
340 png_bytepp rows, int offset, int height, bool transparent, bool required,
347 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[1] + offset, transparent, outError)) {
353 int tick = tick_type(rows[i] + offset, transparent, outError);
361 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[height - 2] + offset, transparent, outError)) {
367 int tick = tick_type(rows[i] + offset, transparent, outError);
379 png_bytepp rows, int left, int top, int right, int bottom)
381 png_bytep color = rows[top] + left*4;
389 png_bytep p = rows[top]+i*4;
438 const uint32_t c = get_color(image->rows, left, top, right, bottom);
472 png_bytep p = image->rows[0];
504 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0],
512 if (get_horizontal_ticks(image->rows[H-1], W, transparent, false, &image->info9Patch.paddingLeft,
520 if (get_vertical_ticks(image->rows, (W-1)*4, H, transparent, false, &image->info9Patch.paddingTop,
528 get_horizontal_layout_bounds_ticks(image->rows[H-1], W, transparent, false,
532 get_vertical_layout_bounds_ticks(image->rows, (W-1)*4, H, transparent, false,
576 image->rows = (png_bytepp)malloc((H-2) * png_sizeof(png_bytep));
578 image->rows[i] = image->allocRows[i+1];
579 memmove(image->rows[i], image->rows[i]+4, (W-2)*4);
586 // Figure out the number of rows and columns in the N-patch
602 // Make sure the amount of rows and columns will fit in the number of
605 errorMsg = "Too many rows and columns in 9-patch perimeter";
653 c = get_color(image->rows, left, top, right - 1, bottom - 1);
751 static void dump_image(int w, int h, png_bytepp rows, int color_type)
768 png_bytep row = rows[j];
825 // dump_image(w, h, imageInfo.rows, PNG_COLOR_TYPE_RGB_ALPHA);
828 png_bytep row = imageInfo.rows[j];
951 png_bytep row = imageInfo.rows[j];
1093 png_bytepp rows;
1096 rows = imageInfo.rows;
1098 rows = outRows;
1100 png_write_image(write_ptr, rows);
1103 // dump_image(imageInfo.width, imageInfo.height, rows, color_type);