Lines Matching defs:pRects

174 static int crFbTexDataGetContents(CR_TEXDATA *pTex, const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects, CR_BLITTER_IMG *pDst)
184 CrMBltImg(pSrcImg, pPos, cRects, pRects, pDst);
191 static int crFbBltGetContentsScaledDirect(HCR_FRAMEBUFFER hFb, const RTRECTSIZE *pSrcRectSize, const RTRECT *pDstRect, uint32_t cRects, const RTRECT *pRects, CR_BLITTER_IMG *pDst)
257 const RTRECT * pRect = &pRects[i];
399 static int crFbBltGetContentsScaledCPU(HCR_FRAMEBUFFER hFb, const RTRECTSIZE *pSrcRectSize, const RTRECT *pDstRect, uint32_t cRects, const RTRECT *pRects, CR_BLITTER_IMG *pImg)
432 int rc = CrFbBltGetContents(hFb, &UnscaledPos, cRects, pRects, &Img);
451 int CrFbBltGetContents(HCR_FRAMEBUFFER hFb, const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects, CR_BLITTER_IMG *pDst)
502 const RTRECT * pRect = &pRects[i];
626 int CrFbBltGetContentsEx(HCR_FRAMEBUFFER hFb, const RTRECTSIZE *pSrcRectSize, const RTRECT *pDstRect, uint32_t cRects, const RTRECT *pRects, CR_BLITTER_IMG *pImg)
636 return CrFbBltGetContents(hFb, &Pos, cRects, pRects, pImg);
640 return crFbBltGetContentsScaledDirect(hFb, pSrcRectSize, pDstRect, cRects, pRects, pImg);
642 return crFbBltGetContentsScaledCPU(hFb, pSrcRectSize, pDstRect, cRects, pRects, pImg);
645 static void crFbBltPutContentsFbVram(HCR_FRAMEBUFFER hFb, const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects, CR_BLITTER_IMG *pSrc)
653 CrMBltImg(pSrc, pPos, cRects, pRects, &FbImg);
656 static void crFbClrFillFbVram(HCR_FRAMEBUFFER hFb, uint32_t cRects, const RTRECT *pRects, uint32_t u32Color)
662 CrMClrFillImg(&FbImg, cRects, pRects, u32Color);
665 int CrFbClrFill(HCR_FRAMEBUFFER hFb, uint32_t cRects, const RTRECT *pRects, uint32_t u32Color)
673 crFbClrFillFbVram(hFb, cRects, pRects, u32Color);
677 int rc = CrFbEntryRegionsAdd(hFb, NULL, &DstPoint, cRects, pRects, false);
687 static int crFbBltPutContents(HCR_FRAMEBUFFER hFb, const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects, CR_BLITTER_IMG *pImg)
689 crFbBltPutContentsFbVram(hFb, pPos, cRects, pRects, pImg);
691 int rc = CrFbEntryRegionsAdd(hFb, NULL, pPos, cRects, pRects, false);
701 int CrFbBltPutContents(HCR_FRAMEBUFFER hFb, const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects, CR_BLITTER_IMG *pImg)
709 return crFbBltPutContents(hFb, pPos, cRects, pRects, pImg);
712 static int crFbRegionsIsIntersectRects(HCR_FRAMEBUFFER hFb, uint32_t cRects, const RTRECT *pRects, bool *pfRegChanged)
729 const RTRECT *pRect = &pRects[j];
742 int CrFbBltPutContentsNe(HCR_FRAMEBUFFER hFb, const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects, CR_BLITTER_IMG *pImg)
745 int rc = crFbRegionsIsIntersectRects(hFb, cRects, pRects, &fRegChanged);
757 rc = CrFbBltPutContents(hFb, pPos, cRects, pRects, pImg);
768 crFbBltPutContentsFbVram(hFb, pPos, cRects, pRects, pImg);
772 int CrFbClrFillNe(HCR_FRAMEBUFFER hFb, uint32_t cRects, const RTRECT *pRects, uint32_t u32Color)
775 int rc = crFbRegionsIsIntersectRects(hFb, cRects, pRects, &fRegChanged);
787 rc = CrFbClrFill(hFb, cRects, pRects, u32Color);
798 crFbClrFillFbVram(hFb, cRects, pRects, u32Color);
1235 static int8_t crVBoxServerCrCmdBltPrimaryVramGenericProcess(uint32_t u32PrimaryID, VBOXCMDVBVAOFFSET offVRAM, uint32_t width, uint32_t height, const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects, bool fToPrimary);
2948 RTRECT * pRects = NULL;
2951 pRects = (RTRECT *)crAlloc(cRects * sizeof (*pRects));
2952 AssertReturn(pRects, VERR_NO_MEMORY);
2954 rc = SSMR3GetMem(pSSM, pRects, cRects * sizeof (*pRects));
2958 rc = CrFbEntryRegionsSet(pFb, hEntry, &Point, cRects, pRects, false);
2961 if (pRects)
2962 crFree(pRects);
3128 crServerDispatchVBoxTexPresent(GLuint texture, GLuint cfg, GLint xPos, GLint yPos, GLint cRects, const GLint *pRects)
3173 rc = CrFbEntryRegionsAdd(hFb, hEntry, &Point, (uint32_t)cRects, (const RTRECT*)pRects, false);
3225 RTRECT *pRects = (RTRECT *)g_CrPresenter.pvTmpBuf;
3226 crVBoxPRectUnpacks(pPRects, pRects, cRects);
3228 return pRects;
3231 static void crPMgrPrimaryUpdateScreen(HCR_FRAMEBUFFER hFb, uint32_t idScreen, uint32_t cRects, const RTRECT *pRects)
3242 hdr.x = pRects[i].xLeft;
3243 hdr.y = pRects[i].yTop;
3244 hdr.w = hdr.x + pRects[i].xRight;
3245 hdr.h = hdr.y + pRects[i].yBottom;
3252 dirtyRect.xLeft = pRects[i].xLeft;
3253 dirtyRect.yTop = pRects[i].yTop;
3254 dirtyRect.xRight = pRects[i].xRight;
3255 dirtyRect.yBottom = pRects[i].yBottom;
3261 if (dirtyRect.xLeft > pRects[i].xLeft)
3263 dirtyRect.xLeft = pRects[i].xLeft;
3266 if (dirtyRect.yTop > pRects[i].yTop)
3268 dirtyRect.yTop = pRects[i].yTop;
3271 if (dirtyRect.xRight < pRects[i].xRight)
3273 dirtyRect.xRight = pRects[i].xRight;
3276 if (dirtyRect.yBottom < pRects[i].yBottom)
3278 dirtyRect.yBottom = pRects[i].yBottom;
3295 static void crPMgrPrimaryUpdate(HCR_FRAMEBUFFER hFb, uint32_t cRects, const RTRECT *pRects)
3309 crPMgrPrimaryUpdateScreen(hFb, i, cRects, pRects);
3313 static int8_t crVBoxServerCrCmdBltPrimaryVramGenericProcess(uint32_t u32PrimaryID, VBOXCMDVBVAOFFSET offVRAM, uint32_t width, uint32_t height, const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects, bool fToPrimary)
3332 int rc = CrFbBltGetContents(hFb, pPos, cRects, pRects, &Img);
3342 int rc = CrFbBltPutContentsNe(hFb, pPos, cRects, pRects, &Img);
3372 RTRECT *pRects = crVBoxServerCrCmdBltRecsUnpack(pPRects, cRects);
3373 if (!pRects)
3396 crServerDispatchVBoxTexPresent(texId, u32PrimaryID, pCmd->Hdr.Pos.x, pCmd->Hdr.Pos.y, cRects, (const GLint*)pRects);
3408 int8_t i8Result = crVBoxServerCrCmdBltPrimaryVramGenericProcess(u32PrimaryID, offVRAM, width, height, &Pos, cRects, pRects, fToPrymary);
3419 crPMgrPrimaryUpdate(hFb, cRects, pRects);
3424 static int8_t crVBoxServerCrCmdBltIdToVramMem(uint32_t hostId, VBOXCMDVBVAOFFSET offVRAM, uint32_t width, uint32_t height, const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects)
3455 rc = crFbTexDataGetContents(pTex, pPos, cRects, pRects, &Img);
3470 static int8_t crVBoxServerCrCmdBltIdToVram(uint32_t hostId, VBOXCMDVBVAOFFSET offVRAM, uint32_t width, uint32_t height, const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects)
3479 crServerDispatchVBoxTexPresent(hostId, pScreen->u32ViewIndex, pPos->x, pPos->y, cRects, (const GLint*)pRects);
3483 return crVBoxServerCrCmdBltIdToVramMem(hostId, offVRAM, width, height, pPos, cRects, pRects);
3486 static int8_t crVBoxServerCrCmdBltVramToVramMem(VBOXCMDVBVAOFFSET offSrcVRAM, uint32_t srcWidth, uint32_t srcHeight, VBOXCMDVBVAOFFSET offDstVRAM, uint32_t dstWidth, uint32_t dstHeight, const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects)
3503 CrMBltImg(&srcImg, pPos, cRects, pRects, &dstImg);
3510 const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects)
3543 int rc = CrFbBltPutContentsNe(hDstFb, pPos, cRects, pRects, &Img);
3562 rc = crVBoxServerCrCmdBltVramToVramMem(offSrcVRAM, srcWidth, srcHeight, offDstVRAM, dstWidth, dstHeight, pPos, cRects, pRects);
3570 crPMgrPrimaryUpdate(hDstFb, cRects, pRects);
3587 int rc = CrFbBltGetContents(hSrcFb, pPos, cRects, pRects, &Img);
3606 rc = crVBoxServerCrCmdBltVramToVramMem(offSrcVRAM, srcWidth, srcHeight, offDstVRAM, dstWidth, dstHeight, pPos, cRects, pRects);
3617 return crVBoxServerCrCmdBltVramToVramMem(offSrcVRAM, srcWidth, srcHeight, offDstVRAM, dstWidth, dstHeight, pPos, cRects, pRects);
3633 RTRECT *pRects = crVBoxServerCrCmdBltRecsUnpack(pPRects, cRects);
3634 if (!pRects)
3666 return crVBoxServerCrCmdBltIdToVram(hostId, offVRAM, 0, 0, &Pos, cRects, pRects);
3681 RTRECT *pRects = crVBoxServerCrCmdBltRecsUnpack(pPRects, cRects);
3682 if (!pRects)
3716 return crVBoxServerCrCmdBltIdToVram(hostId, offVRAM, width, height, &Pos, cRects, pRects);
3727 return crVBoxServerCrCmdBltIdToVram(pCmd->alloc1.Info.u.id, pCmd->info2.u.offVRAM, width, height, &Pos, cRects, pRects);
3731 crVBoxServerCrCmdBltVramToVram(offVRAM, width, height, pCmd->info2.u.offVRAM, width, height, &Pos, cRects, pRects);
3733 crVBoxServerCrCmdBltVramToVram(pCmd->info2.u.offVRAM, width, height, offVRAM, width, height, &Pos, cRects, pRects);
3750 RTRECT *pRects = crVBoxServerCrCmdBltRecsUnpack(pPRects, cRects);
3751 if (!pRects)
3774 return crVBoxServerCrCmdBltIdToVram(pCmd->alloc2.Info.u.id, pCmd->alloc1.Info.u.offVRAM, pCmd->alloc1.u16Width, pCmd->alloc1.u16Height, &Pos, cRects, pRects);
3787 return crVBoxServerCrCmdBltIdToVram(pCmd->alloc1.Info.u.id, pCmd->alloc2.Info.u.offVRAM, pCmd->alloc2.u16Width, pCmd->alloc2.u16Height, &Pos, cRects, pRects);
3791 crVBoxServerCrCmdBltVramToVram(pCmd->alloc1.Info.u.offVRAM, pCmd->alloc1.u16Width, pCmd->alloc1.u16Height, pCmd->alloc2.Info.u.offVRAM, pCmd->alloc2.u16Width, pCmd->alloc2.u16Height, &Pos, cRects, pRects);
3793 crVBoxServerCrCmdBltVramToVram(pCmd->alloc2.Info.u.offVRAM, pCmd->alloc2.u16Width, pCmd->alloc2.u16Height, pCmd->alloc1.Info.u.offVRAM, pCmd->alloc1.u16Width, pCmd->alloc1.u16Height, &Pos, cRects, pRects);
3799 static int8_t crVBoxServerCrCmdClrFillPrimaryGenericProcess(uint32_t u32PrimaryID, const RTRECT *pRects, uint32_t cRects, uint32_t u32Color)
3808 int rc = CrFbClrFillNe(hFb, cRects, pRects, u32Color);
3818 static int8_t crVBoxServerCrCmdClrFillVramGenericProcess(VBOXCMDVBVAOFFSET offVRAM, uint32_t width, uint32_t height, const RTRECT *pRects, uint32_t cRects, uint32_t u32Color)
3828 CrMClrFillImg(&Img, cRects, pRects, u32Color);
3845 RTRECT *pRects = crVBoxServerCrCmdBltRecsUnpack(pPRects, cRects);
3846 if (!pRects)
3853 int8_t i8Result = crVBoxServerCrCmdClrFillVramGenericProcess(pCmd->dst.Info.u.offVRAM, pCmd->dst.u16Width, pCmd->dst.u16Height, pRects, cRects, pCmd->Hdr.u32Color);