Home | History | Annotate | Download | only in aapt

Lines Matching refs:transparent

185 static int tick_type(png_bytep p, bool transparent, const char** outError)
189 if (transparent) {
202 *outError = "Frame pixels must be either solid or transparent (not intermediate alphas)";
206 *outError = "Ticks in transparent frame must be black or red";
238 png_bytep row, int width, bool transparent, bool required,
248 if (TICK_TYPE_TICK == tick_type(row+i*4, transparent, outError)) {
287 png_bytepp rows, int offset, int height, bool transparent, bool required,
297 if (TICK_TYPE_TICK == tick_type(rows[i]+offset, transparent, outError)) {
336 png_bytep row, int width, bool transparent, bool /* required */,
343 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(row + 4, transparent, outError)) {
349 int tick = tick_type(row + i * 4, transparent, outError);
357 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(row + (width - 2) * 4, transparent, outError)) {
363 int tick = tick_type(row+i*4, 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);
572 bool transparent = p[3] == 0;
588 if (!transparent &&
590 errorMsg = "Must have one-pixel frame that is either transparent or white";
595 if (get_horizontal_ticks(p, W, transparent, true, &xDivs[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,