Lines Matching refs:srcInfo

173 OGLBlitSwToSurface(OGLContext *oglc, SurfaceDataRasInfo *srcInfo,
209 if (srcInfo->scanStride % srcInfo->pixelStride != 0) {
212 GLvoid *pSrc = srcInfo->rasBase;
217 pSrc = PtrAddBytes(pSrc, srcInfo->scanStride);
221 j2d_glDrawPixels(sx2-sx1, sy2-sy1, pf->format, pf->type, srcInfo->rasBase);
258 OGLBlitToSurfaceViaTexture(OGLContext *oglc, SurfaceDataRasInfo *srcInfo,
302 slowPath = srcInfo->scanStride % srcInfo->pixelStride != 0;
318 GLvoid *pSrc = PtrCoord(srcInfo->rasBase,
319 sx, srcInfo->pixelStride,
320 sy, srcInfo->scanStride);
327 pSrc = PtrAddBytes(pSrc, srcInfo->scanStride);
337 srcInfo->rasBase);
392 OGLBlitSwToTexture(SurfaceDataRasInfo *srcInfo, OGLPixelFormat *pf,
408 if (srcInfo->scanStride % srcInfo->pixelStride != 0) {
411 GLvoid *pSrc = srcInfo->rasBase;
417 pSrc = PtrAddBytes(pSrc, srcInfo->scanStride);
423 pf->format, pf->type, srcInfo->rasBase);
453 SurfaceDataRasInfo srcInfo;
471 srcInfo.bounds.x1 = sx1;
472 srcInfo.bounds.y1 = sy1;
473 srcInfo.bounds.x2 = sx2;
474 srcInfo.bounds.y2 = sy2;
476 SurfaceData_IntersectBoundsXYXY(&srcInfo.bounds,
479 if (srcInfo.bounds.x2 > srcInfo.bounds.x1 &&
480 srcInfo.bounds.y2 > srcInfo.bounds.y1)
482 if (srcInfo.bounds.x1 != sx1) {
483 dx1 += (srcInfo.bounds.x1 - sx1) * (dw / sw);
484 sx1 = srcInfo.bounds.x1;
486 if (srcInfo.bounds.y1 != sy1) {
487 dy1 += (srcInfo.bounds.y1 - sy1) * (dh / sh);
488 sy1 = srcInfo.bounds.y1;
490 if (srcInfo.bounds.x2 != sx2) {
491 dx2 += (srcInfo.bounds.x2 - sx2) * (dw / sw);
492 sx2 = srcInfo.bounds.x2;
494 if (srcInfo.bounds.y2 != sy2) {
495 dy2 += (srcInfo.bounds.y2 - sy2) * (dh / sh);
496 sy2 = srcInfo.bounds.y2;
545 OGLBlitToSurfaceViaTexture(oglc, &srcInfo, NULL, srcOps,
574 SurfaceDataRasInfo srcInfo;
594 srcInfo.bounds.x1 = sx1;
595 srcInfo.bounds.y1 = sy1;
596 srcInfo.bounds.x2 = sx2;
597 srcInfo.bounds.y2 = sy2;
599 if (srcOps->Lock(env, srcOps, &srcInfo, SD_LOCK_READ) != SD_SUCCESS) {
605 if (srcInfo.bounds.x2 > srcInfo.bounds.x1 &&
606 srcInfo.bounds.y2 > srcInfo.bounds.y1)
608 srcOps->GetRasInfo(env, srcOps, &srcInfo);
609 if (srcInfo.rasBase) {
610 if (srcInfo.bounds.x1 != sx1) {
611 dx1 += (srcInfo.bounds.x1 - sx1) * (dw / sw);
612 sx1 = srcInfo.bounds.x1;
614 if (srcInfo.bounds.y1 != sy1) {
615 dy1 += (srcInfo.bounds.y1 - sy1) * (dh / sh);
616 sy1 = srcInfo.bounds.y1;
618 if (srcInfo.bounds.x2 != sx2) {
619 dx2 += (srcInfo.bounds.x2 - sx2) * (dw / sw);
620 sx2 = srcInfo.bounds.x2;
622 if (srcInfo.bounds.y2 != sy2) {
623 dy2 += (srcInfo.bounds.y2 - sy2) * (dh / sh);
624 sy2 = srcInfo.bounds.y2;
637 srcInfo.scanStride / srcInfo.pixelStride);
644 OGLBlitSwToTexture(&srcInfo, &pf, dstOps,
673 OGLBlitToSurfaceViaTexture(oglc, &srcInfo, &pf, NULL,
678 OGLBlitSwToSurface(oglc, &srcInfo, &pf,
689 SurfaceData_InvokeRelease(env, srcOps, &srcInfo);
691 SurfaceData_InvokeUnlock(env, srcOps, &srcInfo);
706 SurfaceDataRasInfo srcInfo, dstInfo;
722 srcInfo.bounds.x1 = srcx;
723 srcInfo.bounds.y1 = srcy;
724 srcInfo.bounds.x2 = srcx + width;
725 srcInfo.bounds.y2 = srcy + height;
737 SurfaceData_IntersectBoundsXYXY(&srcInfo.bounds,
739 SurfaceData_IntersectBlitBounds(&dstInfo.bounds, &srcInfo.bounds,
742 if (srcInfo.bounds.x2 > srcInfo.bounds.x1 &&
743 srcInfo.bounds.y2 > srcInfo.bounds.y1)
749 srcx = srcInfo.bounds.x1;
750 srcy = srcInfo.bounds.y1;
753 width = srcInfo.bounds.x2 - srcInfo.bounds.x1;
754 height = srcInfo.bounds.y2 - srcInfo.bounds.y1;