• Home
  • Raw
  • Download

Lines Matching refs:rows

40     for (png_bytep row : rows) {  in ~PngInfo()
59 std::vector<png_bytep> rows; member
150 outInfo->rows.resize(outInfo->height); in readPng()
152 outInfo->rows[i] = new png_byte[rowBytes]; in readPng()
155 png_read_image(readPtr, outInfo->rows.data()); in readPng()
275 const png_byte* row = imageInfo.rows[j]; in analyze_image()
413 const png_byte* row = imageInfo.rows[j]; in analyze_image()
586 png_bytepp rows; in writePng() local
592 rows = info->rows.data(); in writePng()
594 rows = outRows; in writePng()
596 png_write_image(writePtr, rows); in writePng()
728 static bool getVerticalTicks(png_bytepp rows, int offset, int height, in getVerticalTicks() argument
737 if (tickType(rows[i] + offset, transparent, outError) == TickType::kTick) { in getVerticalTicks()
812 static bool getVerticalLayoutBoundsTicks(png_bytepp rows, int offset, in getVerticalLayoutBoundsTicks() argument
820 if (tickType(rows[1] + offset, transparent, outError) == in getVerticalLayoutBoundsTicks()
827 if (tickType(rows[i] + offset, transparent, outError) != in getVerticalLayoutBoundsTicks()
835 if (tickType(rows[height - 2] + offset, transparent, outError) == in getVerticalLayoutBoundsTicks()
842 if (tickType(rows[i] + offset, transparent, outError) != in getVerticalLayoutBoundsTicks()
851 static void findMaxOpacity(png_bytepp rows, int startX, int startY, int endX, in findMaxOpacity() argument
858 png_byte* color = rows[y] + x * 4; in findMaxOpacity()
877 static uint8_t maxAlphaOverCol(png_bytepp rows, int offsetX, int startY, in maxAlphaOverCol() argument
881 uint8_t alpha = (rows[y] + offsetX * 4)[3]; in maxAlphaOverCol()
895 findMaxOpacity(image->rows.data(), 1, midY, midX, -1, 1, 0, in getOutline()
897 findMaxOpacity(image->rows.data(), endX, midY, midX, -1, -1, 0, in getOutline()
906 findMaxOpacity(image->rows.data(), midX, 1, -1, midY, 0, 1, in getOutline()
908 findMaxOpacity(image->rows.data(), midX, endY, -1, midY, 0, -1, in getOutline()
925 maxAlphaOverRow(image->rows[innerMidY], innerStartX, innerEndX), in getOutline()
926 maxAlphaOverCol(image->rows.data(), innerMidX, innerStartY, innerStartY)); in getOutline()
929 findMaxOpacity(image->rows.data(), innerStartX, innerStartY, innerMidX, in getOutline()
948 static uint32_t getColor(png_bytepp rows, int left, int top, int right, in getColor() argument
950 png_bytep color = rows[top] + left * 4; in getColor()
958 png_bytep p = rows[top] + i * 4; in getColor()
1005 png_bytep p = image->rows[0]; in do9Patch()
1038 if (!getVerticalTicks(image->rows.data(), 0, H, transparent, true, &yDivs[0], in do9Patch()
1050 if (!getHorizontalTicks(image->rows[H - 1], W, transparent, false, in do9Patch()
1060 if (!getVerticalTicks(image->rows.data(), (W - 1) * 4, H, transparent, false, in do9Patch()
1070 getHorizontalLayoutBoundsTicks(image->rows[H - 1], W, transparent, false, in do9Patch()
1074 getVerticalLayoutBoundsTicks(image->rows.data(), (W - 1) * 4, H, transparent, in do9Patch()
1122 newRows[i] = image->rows[i + 1]; in do9Patch()
1125 image->rows.swap(newRows); in do9Patch()
1195 c = getColor(image->rows.data(), left, top, right - 1, bottom - 1); in do9Patch()