Lines Matching full:if
24 #if LV_USE_THORVG_INTERNAL
62 if (region) { in _arrange()
70 if (yStart >= regionBottom) return false; in _arrange()
72 if (yStart < regionTop) yStart = regionTop; in _arrange()
73 if (yEnd > regionBottom) yEnd = regionBottom; in _arrange()
83 #if 0 //Enable it when GRAYSCALE image is supported
98 if (!_arrange(image, region, yStart, yEnd)) return false;
103 if (region) {
120 if (!region) {
125 if (minx > span->x) minx = span->x;
126 if (maxx < span->x + span->len) maxx = span->x + span->len;
131 if (x1 < minx) x1 = minx;
132 if (x2 > maxx) x2 = maxx;
136 if (aaSpans->lines[ay].x[0] > x1) aaSpans->lines[ay].x[0] = x1;
137 if (aaSpans->lines[ay].x[1] < x2) aaSpans->lines[ay].x[1] = x2;
140 if ((x2 - x1) >= 1 && (x1 < maxx) && (x2 > minx)) {
152 if (opacity == 255) {
156 if (uu >= sw) continue;
158 if (vv >= sh) continue;
168 if (iru < sw) {
174 if (irv < sh) {
179 if (iru < sw) {
186 if (direct) {
199 if ((uint32_t)v >= image->h) break;
205 if (uu >= sw) continue;
207 if (vv >= sh) continue;
217 if (iru < sw) {
223 if (irv < sh) {
228 if (iru < sw) {
236 if (direct) {
250 if ((uint32_t)v >= image->h) break;
261 if (!region && spanIdx >= image->rle->size) break;
292 if (!_arrange(image, region, yStart, yEnd)) return; in _rasterBlendingPolygonImageSegment()
297 if (region) { in _rasterBlendingPolygonImageSegment()
314 if (!region) { in _rasterBlendingPolygonImageSegment()
319 if (minx > span->x) minx = span->x; in _rasterBlendingPolygonImageSegment()
320 if (maxx < span->x + span->len) maxx = span->x + span->len; in _rasterBlendingPolygonImageSegment()
325 if (x1 < minx) x1 = minx; in _rasterBlendingPolygonImageSegment()
326 if (x2 > maxx) x2 = maxx; in _rasterBlendingPolygonImageSegment()
330 if (aaSpans->lines[ay].x[0] > x1) aaSpans->lines[ay].x[0] = x1; in _rasterBlendingPolygonImageSegment()
331 if (aaSpans->lines[ay].x[1] < x2) aaSpans->lines[ay].x[1] = x2; in _rasterBlendingPolygonImageSegment()
334 if ((x2 - x1) >= 1 && (x1 < maxx) && (x2 > minx)) { in _rasterBlendingPolygonImageSegment()
345 if (opacity == 255) { in _rasterBlendingPolygonImageSegment()
349 if (uu >= sw) continue; in _rasterBlendingPolygonImageSegment()
351 if (vv >= sh) continue; in _rasterBlendingPolygonImageSegment()
361 if (iru < sw) { in _rasterBlendingPolygonImageSegment()
367 if (irv < sh) { in _rasterBlendingPolygonImageSegment()
372 if (iru < sw) { in _rasterBlendingPolygonImageSegment()
386 if ((uint32_t)v >= image->h) break; in _rasterBlendingPolygonImageSegment()
392 if (uu >= sw) continue; in _rasterBlendingPolygonImageSegment()
394 if (vv >= sh) continue; in _rasterBlendingPolygonImageSegment()
404 if (iru < sw) { in _rasterBlendingPolygonImageSegment()
410 if (irv < sh) { in _rasterBlendingPolygonImageSegment()
415 if (iru < sw) { in _rasterBlendingPolygonImageSegment()
430 if ((uint32_t)v >= image->h) break; in _rasterBlendingPolygonImageSegment()
441 if (!region && spanIdx >= image->rle->size) break; in _rasterBlendingPolygonImageSegment()
474 if (!_arrange(image, region, yStart, yEnd)) return; in _rasterPolygonImageSegment()
479 if (region) { in _rasterPolygonImageSegment()
496 if (!region) { in _rasterPolygonImageSegment()
501 if (minx > span->x) minx = span->x; in _rasterPolygonImageSegment()
502 if (maxx < span->x + span->len) maxx = span->x + span->len; in _rasterPolygonImageSegment()
507 if (x1 < minx) x1 = minx; in _rasterPolygonImageSegment()
508 if (x2 > maxx) x2 = maxx; in _rasterPolygonImageSegment()
512 if (aaSpans->lines[ay].x[0] > x1) aaSpans->lines[ay].x[0] = x1; in _rasterPolygonImageSegment()
513 if (aaSpans->lines[ay].x[1] < x2) aaSpans->lines[ay].x[1] = x2; in _rasterPolygonImageSegment()
516 if ((x2 - x1) >= 1 && (x1 < maxx) && (x2 > minx)) { in _rasterPolygonImageSegment()
527 …if (matting) cmp = &surface->compositor->image.buf8[(y * surface->compositor->image.stride + x1) *… in _rasterPolygonImageSegment()
529 if (opacity == 255) { in _rasterPolygonImageSegment()
533 if (uu >= sw) continue; in _rasterPolygonImageSegment()
535 if (vv >= sh) continue; in _rasterPolygonImageSegment()
545 if (iru < sw) { in _rasterPolygonImageSegment()
551 if (irv < sh) { in _rasterPolygonImageSegment()
556 if (iru < sw) { in _rasterPolygonImageSegment()
564 if (matting) { in _rasterPolygonImageSegment()
577 if ((uint32_t)v >= image->h) break; in _rasterPolygonImageSegment()
590 if (vv >= sh) continue; in _rasterPolygonImageSegment()
595 if (iru < sw) { in _rasterPolygonImageSegment()
601 if (irv < sh) { in _rasterPolygonImageSegment()
606 if (iru < sw) { in _rasterPolygonImageSegment()
614 if (matting) { in _rasterPolygonImageSegment()
627 if ((uint32_t)v >= image->h) break; in _rasterPolygonImageSegment()
638 if (!region && spanIdx >= image->rle->size) break; in _rasterPolygonImageSegment()
663 if (y[0] > y[1]) { in _rasterPolygonImage()
669 if (y[0] > y[2]) { in _rasterPolygonImage()
675 if (y[1] > y[2]) { in _rasterPolygonImage()
685 //Skip drawing if it's too thin to cover any pixels at all. in _rasterPolygonImage()
686 …if ((yi[0] == yi[1] && yi[0] == yi[2]) || ((int) x[0] == (int) x[1] && (int) x[0] == (int) x[2])) … in _rasterPolygonImage()
691 //Skip poly if it's an infinitely thin line in _rasterPolygonImage()
692 if (tvg::zero(denom)) return; in _rasterPolygonImage()
701 if (y[1] > y[0]) dxdy[0] = (x[1] - x[0]) / (y[1] - y[0]); in _rasterPolygonImage()
702 if (y[2] > y[0]) dxdy[1] = (x[2] - x[0]) / (y[2] - y[0]); in _rasterPolygonImage()
703 if (y[2] > y[1]) dxdy[2] = (x[2] - x[1]) / (y[2] - y[1]); in _rasterPolygonImage()
708 if (tvg::equal(y[0], y[1])) side = x[0] > x[1]; in _rasterPolygonImage()
709 if (tvg::equal(y[1], y[2])) side = x[2] > x[1]; in _rasterPolygonImage()
716 if (!side) { in _rasterPolygonImage()
728 //Draw upper segment if possibly visible in _rasterPolygonImage()
729 if (yi[0] < yi[1]) { in _rasterPolygonImage()
739 if (compositing) { in _rasterPolygonImage()
740 …if (_matting(surface)) _rasterPolygonImageSegment(surface, image, region, yi[0], yi[1], aaSpans, o… in _rasterPolygonImage()
742 } else if (blending) { in _rasterPolygonImage()
749 //Draw lower segment if possibly visible in _rasterPolygonImage()
750 if (yi[1] < yi[2]) { in _rasterPolygonImage()
752 if (!upper) { in _rasterPolygonImage()
760 if (compositing) { in _rasterPolygonImage()
761 …if (_matting(surface)) _rasterPolygonImageSegment(surface, image, region, yi[1], yi[2], aaSpans, o… in _rasterPolygonImage()
763 } else if (blending) { in _rasterPolygonImage()
776 //Draw upper segment if possibly visible in _rasterPolygonImage()
777 if (yi[0] < yi[1]) { in _rasterPolygonImage()
790 if (compositing) { in _rasterPolygonImage()
791 …if (_matting(surface)) _rasterPolygonImageSegment(surface, image, region, yi[0], yi[1], aaSpans, o… in _rasterPolygonImage()
793 } else if (blending) { in _rasterPolygonImage()
800 //Draw lower segment if possibly visible in _rasterPolygonImage()
801 if (yi[1] < yi[2]) { in _rasterPolygonImage()
803 if (!upper) xb += (off_y *dxdyb); in _rasterPolygonImage()
814 if (compositing) { in _rasterPolygonImage()
815 …if (_matting(surface)) _rasterPolygonImageSegment(surface, image, region, yi[1], yi[2], aaSpans, o… in _rasterPolygonImage()
817 } else if (blending) { in _rasterPolygonImage()
832 if (!_arrange(image, region, yStart, yEnd)) return nullptr; in _AASpans()
855 if (eidx == 1) reverse = !reverse; in _calcIrregularCoverage()
860 if (tmp < 0) return; in _calcIrregularCoverage()
862 if (reverse) lines[tmp].coverage[eidx] = 255 - (coverage * ry); in _calcIrregularCoverage()
870 if (eidx == 1) reverse = !reverse; in _calcVertCoverage()
875 if (tmp < 0) return; in _calcVertCoverage()
877 if (reverse) lines[tmp].coverage[eidx] = (255 - (coverage * ry)); in _calcVertCoverage()
937 if (y < yEnd) { in _calcAAEdge()
945 if (lines[y].x[0] == INT32_MAX) continue; in _calcAAEdge()
948 if (eidx == 0) { in _calcAAEdge()
959 if (edgeDiff.x > 0) { in _calcAAEdge()
960 if (edgeDiff.y == 1) curDir = DirOutHor; in _calcAAEdge()
962 } else if (edgeDiff.x < 0) { in _calcAAEdge()
963 if (edgeDiff.y == 1) curDir = DirInHor; in _calcAAEdge()
968 if ((curDir == prevDir) && (y < yEnd)) { in _calcAAEdge()
969 if ((abs(edgeDiff.x) == 1) && (edgeDiff.y == 1)) { in _calcAAEdge()
979 if (diagonal > 0) { in _calcAAEdge()
984 if (prevDir == DirOutVer) _calcHorizCoverage(lines, eidx, pEdge.y, ptx[0], ptx[1]); in _calcAAEdge()
987 if (y == 1) _calcHorizCoverage(lines, eidx, pEdge.y, tx[0], tx[1]); in _calcAAEdge()
993 if (diagonal > 0) { in _calcAAEdge()
998 if (prevDir == DirOutHor) _calcHorizCoverage(lines, eidx, pEdge.y, ptx[0], ptx[1]); in _calcAAEdge()
1004 if (diagonal > 0) { in _calcAAEdge()
1009 if (prevDir == DirOutHor) _calcHorizCoverage(lines, eidx, pEdge.y, ptx[0], ptx[1]); in _calcAAEdge()
1015 … if (prevDir == DirOutHor) edgeDiff.y -= 1; //Weird, fine tuning????????????????????? in _calcAAEdge()
1016 if (diagonal > 0) { in _calcAAEdge()
1021 if (prevDir == DirOutHor) _calcHorizCoverage(lines, eidx, pEdge.y, ptx[0], ptx[1]); in _calcAAEdge()
1026 if (curDir != DirNone) prevDir = curDir; in _calcAAEdge()
1030 if ((edgeDiff.y == 1) && (edgeDiff.x != 0)) { in _calcAAEdge()
1031 if (y >= yEnd) y = (yEnd - 1); in _calcAAEdge()
1036 if (y > yEnd) y = yEnd; in _calcAAEdge()
1058 if (width > 0) { in _apply()
1063 if (line->x[0] > 1) pixel = *(dst - 1); in _apply()
1068 if (dst + line->length[0] >= end) { in _apply()
1081 if (line->x[1] < (int32_t)(surface->w - 1)) pixel = *(dst + 1); in _apply()
1086 if (dst - pos < surface->buf32) --pos; in _apply()
1107 If you need better quality, please divide a mesh by more number of triangles.
1116 if (surface->channelSize == sizeof(uint8_t)) { in _rasterTexmapPolygon()
1122 if ((!image->rle && !region) || (image->rle && image->rle->size == 0)) return true; in _rasterTexmapPolygon()
1135 if (vertices[i].pt.y < ys) ys = vertices[i].pt.y; in _rasterTexmapPolygon()
1136 if (vertices[i].pt.y > ye) ye = vertices[i].pt.y; in _rasterTexmapPolygon()
1140 if (!aaSpans) return true; in _rasterTexmapPolygon()
1158 #if 0 in _rasterTexmapPolygon()
1159 if (_compositing(surface) && _masking(surface) && !_direct(surface->compositor->method)) { in _rasterTexmapPolygon()