Bug 5034785: Update all non-ctx nppi APIs to ctx APIs as per latest change on NPP

This commit is contained in:
shawnz
2025-02-27 18:43:53 +08:00
parent 3e8f91d1a1
commit a9869fd6ea
18 changed files with 279 additions and 173 deletions

View File

@@ -328,9 +328,10 @@ main( int argc, char** argv )
int nCompressedLabelCount = 0;
nppStatus = nppiCompressMarkerLabelsUF_32u_C1IR(pSegmentLabelsOutputBufferDev[nImage], oSizeROI[nImage].width * sizeof(Npp32u), oSizeROI[nImage],
oSizeROI[nImage].width * oSizeROI[nImage].height, &nCompressedLabelCount,
pCompressedLabelsScratchBufferDev);
nppStatus = nppiCompressMarkerLabelsUF_32u_C1IR_Ctx(pSegmentLabelsOutputBufferDev[nImage], oSizeROI[nImage].width * sizeof(Npp32u), oSizeROI[nImage],
oSizeROI[nImage].width * oSizeROI[nImage].height, &nCompressedLabelCount,
pCompressedLabelsScratchBufferDev,
nppStreamCtx);
if (nppStatus != NPP_SUCCESS)
{
@@ -539,6 +540,3 @@ main( int argc, char** argv )
return 0;
}