Lines Matching refs:transparent
604 static TickType tickType(png_bytep p, bool transparent, const char** outError) { in tickType() argument
607 if (transparent) { in tickType()
654 static bool getHorizontalTicks(png_bytep row, int width, bool transparent, bool required, in getHorizontalTicks() argument
662 if (tickType(row + i * 4, transparent, outError) == TickType::kTick) { in getHorizontalTicks()
698 static bool getVerticalTicks(png_bytepp rows, int offset, int height, bool transparent, in getVerticalTicks() argument
706 if (tickType(rows[i] + offset, transparent, outError) == TickType::kTick) { in getVerticalTicks()
742 static bool getHorizontalLayoutBoundsTicks(png_bytep row, int width, bool transparent, in getHorizontalLayoutBoundsTicks() argument
748 if (tickType(row + 4, transparent, outError) == TickType::kLayoutBounds) { in getHorizontalLayoutBoundsTicks()
754 if (tickType(row + i * 4, transparent, outError) != TickType::kLayoutBounds) { in getHorizontalLayoutBoundsTicks()
761 if (tickType(row + (width - 2) * 4, transparent, outError) == TickType::kLayoutBounds) { in getHorizontalLayoutBoundsTicks()
767 if (tickType(row + i * 4, transparent, outError) != TickType::kLayoutBounds) { in getHorizontalLayoutBoundsTicks()
775 static bool getVerticalLayoutBoundsTicks(png_bytepp rows, int offset, int height, bool transparent, in getVerticalLayoutBoundsTicks() argument
781 if (tickType(rows[1] + offset, transparent, outError) == TickType::kLayoutBounds) { in getVerticalLayoutBoundsTicks()
787 if (tickType(rows[i] + offset, transparent, outError) != TickType::kLayoutBounds) { in getVerticalLayoutBoundsTicks()
794 if (tickType(rows[height - 2] + offset, transparent, outError) == TickType::kLayoutBounds) { in getVerticalLayoutBoundsTicks()
800 if (tickType(rows[i] + offset, transparent, outError) != TickType::kLayoutBounds) { in getVerticalLayoutBoundsTicks()
954 bool transparent = p[3] == 0; in do9Patch() local
971 if (!transparent && (p[0] != 0xFF || p[1] != 0xFF || p[2] != 0xFF || p[3] != 0xFF)) { in do9Patch()
977 if (!getHorizontalTicks(p, W, transparent, true, &xDivs[0], &xDivs[1], &errorMsg, &numXDivs, in do9Patch()
985 if (!getVerticalTicks(image->rows.data(), 0, H, transparent, true, &yDivs[0], &yDivs[1], in do9Patch()
997 if (!getHorizontalTicks(image->rows[H - 1], W, transparent, false, &image->info9Patch.paddingLeft, in do9Patch()
1005 if (!getVerticalTicks(image->rows.data(), (W - 1) * 4, H, transparent, false, in do9Patch()
1014 getHorizontalLayoutBoundsTicks(image->rows[H - 1], W, transparent, false, in do9Patch()
1017 getVerticalLayoutBoundsTicks(image->rows.data(), (W - 1) * 4, H, transparent, false, in do9Patch()