Lines Matching defs:bounds

74 SurfaceData_IntersectBoundsXYXY(SurfaceDataBounds *bounds,
78 GETMAX(bounds->x1, x1);
79 GETMAX(bounds->y1, y1);
80 GETMIN(bounds->x2, x2);
81 GETMIN(bounds->y2, y2);
85 SurfaceData_IntersectBoundsXYWH(SurfaceDataBounds *bounds,
92 if (bounds->x1 < x) {
93 bounds->x1 = x;
95 if (bounds->x2 > w) {
96 bounds->x2 = w;
102 if (bounds->y1 < y) {
103 bounds->y1 = y;
105 if (bounds->y2 > h) {
106 bounds->y2 = h;
151 // srcInfo.bounds.x1 = 0;
152 // srcInfo.bounds.y1 = 0;
153 srcInfo.bounds.x2 = srcWidth;
154 srcInfo.bounds.y2 = srcHeight;
241 // dstInfo.bounds.x1 = 0;
242 // dstInfo.bounds.y1 = 0;
243 dstInfo.bounds.x2 = srcWidth;
244 dstInfo.bounds.y2 = srcHeight;
348 // need to clip the destination bounds,
416 * When the image bounds are smaller than the bounds of the
418 * from outside the valid image bounds, which could result in garbage
421 * for the top and left edges. But when the source bounds do not
422 * match the texture bounds, we need to perform this as a four-part
427 * bounds are equal to the actual image bounds. If the source bounds
428 * fall within the image bounds there is no need to apply this hack
430 * Likewise, if the image bounds are equal to the texture bounds,
472 * - the source bounds are sufficiently inside the texture bounds or
473 * - the image bounds are equal to the texture bounds (as is the
529 // convert the source bounds into the range [0,1]
717 srcInfo.bounds.x1 = sx1;
718 srcInfo.bounds.y1 = sy1;
719 srcInfo.bounds.x2 = sx2;
720 srcInfo.bounds.y2 = sy2;
722 SurfaceData_IntersectBoundsXYXY(&srcInfo.bounds,
727 if (srcInfo.bounds.x2 > srcInfo.bounds.x1 &&
728 srcInfo.bounds.y2 > srcInfo.bounds.y1)
730 if (srcInfo.bounds.x1 != sx1) {
731 dx1 += (srcInfo.bounds.x1 - sx1) * (dw / sw);
732 sx1 = srcInfo.bounds.x1;
734 if (srcInfo.bounds.y1 != sy1) {
735 dy1 += (srcInfo.bounds.y1 - sy1) * (dh / sh);
736 sy1 = srcInfo.bounds.y1;
738 if (srcInfo.bounds.x2 != sx2) {
739 dx2 += (srcInfo.bounds.x2 - sx2) * (dw / sw);
740 sx2 = srcInfo.bounds.x2;
742 if (srcInfo.bounds.y2 != sy2) {
743 dy2 += (srcInfo.bounds.y2 - sy2) * (dh / sh);
744 sy2 = srcInfo.bounds.y2;
829 srcInfo.bounds.x1 = sx1;
830 srcInfo.bounds.y1 = sy1;
831 srcInfo.bounds.x2 = sx2;
832 srcInfo.bounds.y2 = sy2;
843 if (srcInfo.bounds.x2 > srcInfo.bounds.x1 &&
844 srcInfo.bounds.y2 > srcInfo.bounds.y1)
848 if (srcInfo.bounds.x1 != sx1) {
849 dx1 += (srcInfo.bounds.x1 - sx1) * (dw / sw);
850 sx1 = srcInfo.bounds.x1;
852 if (srcInfo.bounds.y1 != sy1) {
853 dy1 += (srcInfo.bounds.y1 - sy1) * (dh / sh);
854 sy1 = srcInfo.bounds.y1;
856 if (srcInfo.bounds.x2 != sx2) {
857 dx2 += (srcInfo.bounds.x2 - sx2) * (dw / sw);
858 sx2 = srcInfo.bounds.x2;
860 if (srcInfo.bounds.y2 != sy2) {
861 dy2 += (srcInfo.bounds.y2 - sy2) * (dh / sh);
862 sy2 = srcInfo.bounds.y2;
921 srcInfo.bounds.x1 = srcx;
922 srcInfo.bounds.y1 = srcy;
923 srcInfo.bounds.x2 = srcx + width;
924 srcInfo.bounds.y2 = srcy + height;
925 dstInfo.bounds.x1 = dstx;
926 dstInfo.bounds.y1 = dsty;
927 dstInfo.bounds.x2 = dstx + width;
928 dstInfo.bounds.y2 = dsty + height;
936 SurfaceData_IntersectBoundsXYXY(&srcInfo.bounds,
938 SurfaceData_IntersectBlitBounds(&dstInfo.bounds, &srcInfo.bounds,
941 if (srcInfo.bounds.x2 > srcInfo.bounds.x1 &&
942 srcInfo.bounds.y2 > srcInfo.bounds.y1)
953 srcx = srcInfo.bounds.x1;
954 srcy = srcInfo.bounds.y1;
955 dstx = dstInfo.bounds.x1;
956 dsty = dstInfo.bounds.y1;
957 width = srcInfo.bounds.x2 - srcInfo.bounds.x1;
958 height = srcInfo.bounds.y2 - srcInfo.bounds.y1;