NVIDIA 2D Image And Signal Performance Primitives (NPP)  Version 11.7.1.*
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions

Multiplies each pixel of an image by a constant value then scales the result by the maximum value for the data bit width. More...

Functions

NppStatus nppiMulCScale_8u_C1R_Ctx (const Npp8u *pSrc1, int nSrc1Step, const Npp8u nConstant, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 One 8-bit unsigned char channel image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_C1R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u nConstant, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_8u_C1R_Ctx (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pConstant, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 One 8-bit unsigned char channel image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_C1IR_Ctx (const Npp8u nConstant, Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 One 8-bit unsigned char channel in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_C1IR (const Npp8u nConstant, Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_8u_C1IR_Ctx (const Npp8u *pConstant, Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 One 8-bit unsigned char channel in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_C3R_Ctx (const Npp8u *pSrc1, int nSrc1Step, const Npp8u aConstants[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three 8-bit unsigned char channel image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_C3R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u aConstants[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_8u_C3R_Ctx (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pConstants, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three 8-bit unsigned char channel image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_C3IR_Ctx (const Npp8u aConstants[3], Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three 8-bit unsigned char channel 8-bit unsigned char in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_C3IR (const Npp8u aConstants[3], Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_8u_C3IR_Ctx (const Npp8u *pConstants, Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three 8-bit unsigned char channel 8-bit unsigned char in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_AC4R_Ctx (const Npp8u *pSrc1, int nSrc1Step, const Npp8u aConstants[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 8-bit unsigned char channel with unmodified alpha image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_AC4R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u aConstants[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_8u_AC4R_Ctx (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pConstants, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 8-bit unsigned char channel with unmodified alpha image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_AC4IR_Ctx (const Npp8u aConstants[3], Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 8-bit unsigned char channel with unmodified alpha in place image multiply by constant, scale and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_AC4IR (const Npp8u aConstants[3], Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_8u_AC4IR_Ctx (const Npp8u *pConstants, Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 8-bit unsigned char channel with unmodified alpha in place image multiply by constant, scale and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_C4R_Ctx (const Npp8u *pSrc1, int nSrc1Step, const Npp8u aConstants[4], Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 8-bit unsigned char channel image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_C4R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u aConstants[4], Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_8u_C4R_Ctx (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pConstants, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 8-bit unsigned char channel image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_C4IR_Ctx (const Npp8u aConstants[4], Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 8-bit unsigned char channel in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_8u_C4IR (const Npp8u aConstants[4], Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_8u_C4IR_Ctx (const Npp8u *pConstants, Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 8-bit unsigned char channel in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_C1R_Ctx (const Npp16u *pSrc1, int nSrc1Step, const Npp16u nConstant, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 One 16-bit unsigned short channel image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_C1R (const Npp16u *pSrc1, int nSrc1Step, const Npp16u nConstant, Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_16u_C1R_Ctx (const Npp16u *pSrc1, int nSrc1Step, const Npp16u *pConstant, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 One 16-bit unsigned short channel image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_C1IR_Ctx (const Npp16u nConstant, Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 One 16-bit unsigned short channel in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_C1IR (const Npp16u nConstant, Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_16u_C1IR_Ctx (const Npp16u *pConstant, Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 One 16-bit unsigned short channel in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_C3R_Ctx (const Npp16u *pSrc1, int nSrc1Step, const Npp16u aConstants[3], Npp16u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three 16-bit unsigned short channel image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_C3R (const Npp16u *pSrc1, int nSrc1Step, const Npp16u aConstants[3], Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_16u_C3R_Ctx (const Npp16u *pSrc1, int nSrc1Step, const Npp16u *pConstants, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three 16-bit unsigned short channel image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_C3IR_Ctx (const Npp16u aConstants[3], Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three 16-bit unsigned short channel in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_C3IR (const Npp16u aConstants[3], Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_16u_C3IR_Ctx (const Npp16u *pConstants, Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three 16-bit unsigned short channel in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_AC4R_Ctx (const Npp16u *pSrc1, int nSrc1Step, const Npp16u aConstants[3], Npp16u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 16-bit unsigned short channel with unmodified alpha image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_AC4R (const Npp16u *pSrc1, int nSrc1Step, const Npp16u aConstants[3], Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_16u_AC4R_Ctx (const Npp16u *pSrc1, int nSrc1Step, const Npp16u *pConstants, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 16-bit unsigned short channel with unmodified alpha image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_AC4IR_Ctx (const Npp16u aConstants[3], Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 16-bit unsigned short channel with unmodified alpha in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_AC4IR (const Npp16u aConstants[3], Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_16u_AC4IR_Ctx (const Npp16u *pConstants, Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 16-bit unsigned short channel with unmodified alpha in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_C4R_Ctx (const Npp16u *pSrc1, int nSrc1Step, const Npp16u aConstants[4], Npp16u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 16-bit unsigned short channel image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_C4R (const Npp16u *pSrc1, int nSrc1Step, const Npp16u aConstants[4], Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_16u_C4R_Ctx (const Npp16u *pSrc1, int nSrc1Step, const Npp16u *pConstants, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 16-bit unsigned short channel image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_C4IR_Ctx (const Npp16u aConstants[4], Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 16-bit unsigned short channel in place image multiply by constant and scale by max bit width value. More...
 
NppStatus nppiMulCScale_16u_C4IR (const Npp16u aConstants[4], Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI)
 
NppStatus nppiMulDeviceCScale_16u_C4IR_Ctx (const Npp16u *pConstants, Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four 16-bit unsigned short channel in place image multiply by constant and scale by max bit width value. More...
 

Detailed Description

Multiplies each pixel of an image by a constant value then scales the result by the maximum value for the data bit width.

Note: If you use one of the device constant versions of these functions and the function called immediately preceeding that function generates that device constant you MUST either call cudaStreamSynchronize() or cudaDeviceSynchronize() before calling the device constant function.

Function Documentation

NppStatus nppiMulCScale_16u_AC4IR ( const Npp16u  aConstants[3],
Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_16u_AC4IR_Ctx ( const Npp16u  aConstants[3],
Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 16-bit unsigned short channel with unmodified alpha in place image multiply by constant and scale by max bit width value.

Parameters
aConstantsfixed size host memory array of constant values, one per channel.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_16u_AC4R ( const Npp16u pSrc1,
int  nSrc1Step,
const Npp16u  aConstants[3],
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_16u_AC4R_Ctx ( const Npp16u pSrc1,
int  nSrc1Step,
const Npp16u  aConstants[3],
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 16-bit unsigned short channel with unmodified alpha image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
aConstantsfixed size host memory array of constant values, one per channel.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_16u_C1IR ( const Npp16u  nConstant,
Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_16u_C1IR_Ctx ( const Npp16u  nConstant,
Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

One 16-bit unsigned short channel in place image multiply by constant and scale by max bit width value.

Parameters
nConstanthost memory constant.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_16u_C1R ( const Npp16u pSrc1,
int  nSrc1Step,
const Npp16u  nConstant,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_16u_C1R_Ctx ( const Npp16u pSrc1,
int  nSrc1Step,
const Npp16u  nConstant,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

One 16-bit unsigned short channel image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
nConstanthost memory constant.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_16u_C3IR ( const Npp16u  aConstants[3],
Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_16u_C3IR_Ctx ( const Npp16u  aConstants[3],
Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three 16-bit unsigned short channel in place image multiply by constant and scale by max bit width value.

Parameters
aConstantsfixed size host memory array of constant values, one per channel.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_16u_C3R ( const Npp16u pSrc1,
int  nSrc1Step,
const Npp16u  aConstants[3],
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_16u_C3R_Ctx ( const Npp16u pSrc1,
int  nSrc1Step,
const Npp16u  aConstants[3],
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three 16-bit unsigned short channel image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
aConstantsfixed size host memory array of constant values, one per channel.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_16u_C4IR ( const Npp16u  aConstants[4],
Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_16u_C4IR_Ctx ( const Npp16u  aConstants[4],
Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 16-bit unsigned short channel in place image multiply by constant and scale by max bit width value.

Parameters
aConstantsfixed size host memory array of constant values, one per channel.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_16u_C4R ( const Npp16u pSrc1,
int  nSrc1Step,
const Npp16u  aConstants[4],
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_16u_C4R_Ctx ( const Npp16u pSrc1,
int  nSrc1Step,
const Npp16u  aConstants[4],
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 16-bit unsigned short channel image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
aConstantsfixed size host memory array of constant values, one per channel.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_8u_AC4IR ( const Npp8u  aConstants[3],
Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_8u_AC4IR_Ctx ( const Npp8u  aConstants[3],
Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 8-bit unsigned char channel with unmodified alpha in place image multiply by constant, scale and scale by max bit width value.

Parameters
aConstantsfixed size host memory array of constant values, one per channel.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_8u_AC4R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u  aConstants[3],
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_8u_AC4R_Ctx ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u  aConstants[3],
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 8-bit unsigned char channel with unmodified alpha image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
aConstantsfixed size host memory array of constant values, one per channel.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_8u_C1IR ( const Npp8u  nConstant,
Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_8u_C1IR_Ctx ( const Npp8u  nConstant,
Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

One 8-bit unsigned char channel in place image multiply by constant and scale by max bit width value.

Parameters
nConstanthost memory constant.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_8u_C1R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u  nConstant,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_8u_C1R_Ctx ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u  nConstant,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

One 8-bit unsigned char channel image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
nConstanthost memory constant.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_8u_C3IR ( const Npp8u  aConstants[3],
Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_8u_C3IR_Ctx ( const Npp8u  aConstants[3],
Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three 8-bit unsigned char channel 8-bit unsigned char in place image multiply by constant and scale by max bit width value.

Parameters
aConstantsfixed size host memory array of constant values, one per channel.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_8u_C3R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u  aConstants[3],
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_8u_C3R_Ctx ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u  aConstants[3],
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three 8-bit unsigned char channel image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
aConstantsfixed size host memory array of constant values, one per channel.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_8u_C4IR ( const Npp8u  aConstants[4],
Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_8u_C4IR_Ctx ( const Npp8u  aConstants[4],
Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 8-bit unsigned char channel in place image multiply by constant and scale by max bit width value.

Parameters
aConstantsfixed size host memory array of constant values, one per channel.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulCScale_8u_C4R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u  aConstants[4],
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiMulCScale_8u_C4R_Ctx ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u  aConstants[4],
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 8-bit unsigned char channel image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
aConstantsfixed size host memory array of constant values, one per channel.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_16u_AC4IR_Ctx ( const Npp16u pConstants,
Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 16-bit unsigned short channel with unmodified alpha in place image multiply by constant and scale by max bit width value.

Parameters
pConstantsfixed size device memory array of constant values, one per channel.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_16u_AC4R_Ctx ( const Npp16u pSrc1,
int  nSrc1Step,
const Npp16u pConstants,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 16-bit unsigned short channel with unmodified alpha image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pConstantsfixed size device memory array of constant values, one per channel.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_16u_C1IR_Ctx ( const Npp16u pConstant,
Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

One 16-bit unsigned short channel in place image multiply by constant and scale by max bit width value.

Parameters
pConstantdevice memory constant.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_16u_C1R_Ctx ( const Npp16u pSrc1,
int  nSrc1Step,
const Npp16u pConstant,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

One 16-bit unsigned short channel image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pConstantdevice memory constant.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_16u_C3IR_Ctx ( const Npp16u pConstants,
Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three 16-bit unsigned short channel in place image multiply by constant and scale by max bit width value.

Parameters
pConstantsfixed size device memory array of constant values, one per channel.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_16u_C3R_Ctx ( const Npp16u pSrc1,
int  nSrc1Step,
const Npp16u pConstants,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three 16-bit unsigned short channel image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pConstantsfixed size device memory array of constant values, one per channel.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_16u_C4IR_Ctx ( const Npp16u pConstants,
Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 16-bit unsigned short channel in place image multiply by constant and scale by max bit width value.

Parameters
pConstantsfixed size device memory array of constant values, one per channel.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_16u_C4R_Ctx ( const Npp16u pSrc1,
int  nSrc1Step,
const Npp16u pConstants,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 16-bit unsigned short channel image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pConstantsfixed size device memory array of constant values, one per channel.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_8u_AC4IR_Ctx ( const Npp8u pConstants,
Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 8-bit unsigned char channel with unmodified alpha in place image multiply by constant, scale and scale by max bit width value.

Parameters
pConstantsfixed size device memory array of constant values, one per channel.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_8u_AC4R_Ctx ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pConstants,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 8-bit unsigned char channel with unmodified alpha image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pConstantsfixed size device memory array of constant values, one per channel.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_8u_C1IR_Ctx ( const Npp8u pConstant,
Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

One 8-bit unsigned char channel in place image multiply by constant and scale by max bit width value.

Parameters
pConstantdevice memory constant.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_8u_C1R_Ctx ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pConstant,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

One 8-bit unsigned char channel image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pConstantdevice memory constant.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_8u_C3IR_Ctx ( const Npp8u pConstants,
Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three 8-bit unsigned char channel 8-bit unsigned char in place image multiply by constant and scale by max bit width value.

Parameters
pConstantsfixed size device memory array of constant values, one per channel.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_8u_C3R_Ctx ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pConstants,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three 8-bit unsigned char channel image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pConstantsfixed size device memory array of constant values, one per channel.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_8u_C4IR_Ctx ( const Npp8u pConstants,
Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 8-bit unsigned char channel in place image multiply by constant and scale by max bit width value.

Parameters
pConstantsfixed size device memory array of constant values, one per channel.
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMulDeviceCScale_8u_C4R_Ctx ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pConstants,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four 8-bit unsigned char channel image multiply by constant and scale by max bit width value.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pConstantsfixed size device memory array of constant values, one per channel.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes

Copyright © 2009-2022 NVIDIA CORPORATION AND AFFILIATES