Lines Matching refs:transparent
186 static int tick_type(png_bytep p, bool transparent, const char** outError) in tick_type() argument
190 if (transparent) { in tick_type()
239 png_bytep row, int width, bool transparent, bool required, in get_horizontal_ticks() argument
249 if (TICK_TYPE_TICK == tick_type(row+i*4, transparent, outError)) { in get_horizontal_ticks()
288 png_bytepp rows, int offset, int height, bool transparent, bool required, in get_vertical_ticks() argument
298 if (TICK_TYPE_TICK == tick_type(rows[i]+offset, transparent, outError)) { in get_vertical_ticks()
337 png_bytep row, int width, bool transparent, bool /* required */, in get_horizontal_layout_bounds_ticks() argument
344 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(row + 4, transparent, outError)) { in get_horizontal_layout_bounds_ticks()
350 int tick = tick_type(row + i * 4, transparent, outError); in get_horizontal_layout_bounds_ticks()
358 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(row + (width - 2) * 4, transparent, outError)) { in get_horizontal_layout_bounds_ticks()
364 int tick = tick_type(row+i*4, transparent, outError); in get_horizontal_layout_bounds_ticks()
375 png_bytepp rows, int offset, int height, bool transparent, bool /* required */, in get_vertical_layout_bounds_ticks() argument
382 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[1] + offset, transparent, outError)) { in get_vertical_layout_bounds_ticks()
388 int tick = tick_type(rows[i] + offset, transparent, outError); in get_vertical_layout_bounds_ticks()
396 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[height - 2] + offset, transparent, outError)) { in get_vertical_layout_bounds_ticks()
402 int tick = tick_type(rows[i] + offset, transparent, outError); in get_vertical_layout_bounds_ticks()
573 bool transparent = p[3] == 0; in do_9patch() local
589 if (!transparent && in do_9patch()
596 if (get_horizontal_ticks(p, W, transparent, true, &xDivs[0], in do_9patch()
604 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0], in do_9patch()
616 … if (get_horizontal_ticks(image->rows[H-1], W, transparent, false, &image->info9Patch.paddingLeft, in do_9patch()
624 … if (get_vertical_ticks(image->rows, (W-1)*4, H, transparent, false, &image->info9Patch.paddingTop, in do_9patch()
632 get_horizontal_layout_bounds_ticks(image->rows[H-1], W, transparent, false, in do_9patch()
636 get_vertical_layout_bounds_ticks(image->rows, (W-1)*4, H, transparent, false, in do_9patch()