Lines Matching defs:srcInfo

139     SurfaceDataRasInfo srcInfo;
150 ZeroMemory(&srcInfo, sizeof(SurfaceDataRasInfo));
151 // srcInfo.bounds.x1 = 0;
152 // srcInfo.bounds.y1 = 0;
153 srcInfo.bounds.x2 = srcWidth;
154 srcInfo.bounds.y2 = srcHeight;
155 srcInfo.scanStride = lockedRect.Pitch;
164 srcInfo.pixelStride = 4;
167 &srcInfo, pDstInfo, NULL, NULL);
170 srcInfo.pixelStride = 4;
173 &srcInfo, pDstInfo, NULL, NULL);
176 srcInfo.pixelStride = 4;
179 &srcInfo, pDstInfo, NULL, NULL);
182 srcInfo.pixelStride = 2;
185 &srcInfo, pDstInfo, NULL, NULL);
188 srcInfo.pixelStride = 2;
191 &srcInfo, pDstInfo, NULL, NULL);
560 D3DBlitToSurfaceViaTexture(D3DContext *d3dc, SurfaceDataRasInfo *srcInfo,
629 D3DBL_CopyImageToIntXrgbSurface(srcInfo,
668 SurfaceDataRasInfo *srcInfo, int srctype,
675 return D3DBL_CopyImageToIntXrgbSurface(srcInfo, srctype,
698 SurfaceDataRasInfo srcInfo;
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;
779 res = D3DBlitToSurfaceViaTexture(d3dc, &srcInfo,
808 SurfaceDataRasInfo srcInfo;
829 srcInfo.bounds.x1 = sx1;
830 srcInfo.bounds.y1 = sy1;
831 srcInfo.bounds.x2 = sx2;
832 srcInfo.bounds.y2 = sy2;
837 if (srcOps->Lock(env, srcOps, &srcInfo, lockFlags) != SD_SUCCESS) {
843 if (srcInfo.bounds.x2 > srcInfo.bounds.x1 &&
844 srcInfo.bounds.y2 > srcInfo.bounds.y1)
846 srcOps->GetRasInfo(env, srcOps, &srcInfo);
847 if (srcInfo.rasBase) {
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;
876 res = D3DBlitSwToTexture(d3dc, &srcInfo, srctype, dstOps,
880 res = D3DBlitToSurfaceViaTexture(d3dc, &srcInfo, srctype, NULL,
886 SurfaceData_InvokeRelease(env, srcOps, &srcInfo);
888 SurfaceData_InvokeUnlock(env, srcOps, &srcInfo);
904 SurfaceDataRasInfo srcInfo, dstInfo;
921 srcInfo.bounds.x1 = srcx;
922 srcInfo.bounds.y1 = srcy;
923 srcInfo.bounds.x2 = srcx + width;
924 srcInfo.bounds.y2 = srcy + 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;
957 width = srcInfo.bounds.x2 - srcInfo.bounds.x1;
958 height = srcInfo.bounds.y2 - srcInfo.bounds.y1;