Home | History | Annotate | Download | only in aapt

Lines Matching refs:rows

36     image_info() : rows(NULL), is9Patch(false), allocRows(NULL) { }
38 if (rows && rows != allocRows) {
39 free(rows);
54 png_bytepp rows;
104 outImageInfo->rows = (png_bytepp)malloc(
107 outImageInfo->allocRows = outImageInfo->rows;
109 png_set_rows(read_ptr, read_info, outImageInfo->rows);
113 outImageInfo->rows[i] = (png_bytep)
117 png_read_image(read_ptr, outImageInfo->rows);
217 png_bytepp rows, int offset, int height, bool transparent, bool required,
227 if (is_tick(rows[i]+offset, transparent, outError)) {
266 png_bytepp rows, int left, int top, int right, int bottom)
268 png_bytep color = rows[top] + left*4;
276 png_bytep p = rows[top]+i*4;
325 const uint32_t c = get_color(image->rows, left, top, right, bottom);
356 png_bytep p = image->rows[0];
388 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0],
396 if (get_horizontal_ticks(image->rows[H-1], W, transparent, false, &image->info9Patch.paddingLeft,
404 if (get_vertical_ticks(image->rows, (W-1)*4, H, transparent, false, &image->info9Patch.paddingTop,
441 image->rows = (png_bytepp)malloc((H-2) * png_sizeof(png_bytep));
443 image->rows[i] = image->allocRows[i+1];
444 memmove(image->rows[i], image->rows[i]+4, (W-2)*4);
451 // Figure out the number of rows and columns in the N-patch
467 // Make sure the amount of rows and columns will fit in the number of
470 errorMsg = "Too many rows and columns in 9-patch perimeter";
518 c = get_color(image->rows, left, top, right - 1, bottom - 1);
616 static void dump_image(int w, int h, png_bytepp rows, int color_type)
633 png_bytep row = rows[j];
690 // dump_image(w, h, imageInfo.rows, PNG_COLOR_TYPE_RGB_ALPHA);
693 png_bytep row = imageInfo.rows[j];
816 png_bytep row = imageInfo.rows[j];
938 png_bytepp rows;
941 rows = imageInfo.rows;
943 rows = outRows;
945 png_write_image(write_ptr, rows);
948 // dump_image(imageInfo.width, imageInfo.height, rows, color_type);