Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Removing excessive debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
rarzumanyan committed Sep 17, 2021
1 parent 783e637 commit b896bef
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions PyNvCodec/TC/src/TasksColorCvt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,19 +881,14 @@ struct rbg8_rgb32f final : public NppConvertSurface_Impl {
oSizeRoi.width = pSurface->Width();
Npp32f nMin = 0.0;
Npp32f nMax = 1.0;
// rgb8 to rgb32f
const int aDstOrder[3] = {2, 1, 0};

CudaCtxPush ctxPush(cu_ctx);

// auto err = nppiConvert_8u32f_C3R_Ctx(pSrc, nSrcStep, pDst, nDstStep,
// oSizeRoi, nppCtx);
auto err = nppiScale_8u32f_C3R_Ctx(pSrc, nSrcStep, pDst, nDstStep,
oSizeRoi, nMin, nMax, nppCtx);
if (NPP_NO_ERROR != err) {
cerr << "Failed to convert surface. Error code: " << err << endl;
std::cout << "in height " << pInputRGB8->Height() << " out height " << pSurface->Height() << " in width_in_bytes: " << pInputRGB8->WidthInBytes() << " nSrcStep: " << nSrcStep << " nDstStep: " << nDstStep << std::endl;
std::cout << "in width " << pInputRGB8->Width() << " out width " << pSurface->Width() << " out width_in_bytes: " << pSurface->WidthInBytes() << " element size: " << pSurface->ElemSize() << std::endl;
return nullptr;
}

Expand Down

0 comments on commit b896bef

Please sign in to comment.