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

Calculates the number of zero crossings in a signal. More...

Functions

NppStatus nppsZeroCrossingGetBufferSize_16s32f_Ctx (int nLength, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Device-buffer size (in bytes) for nppsZeroCrossing_16s32f. More...
 
NppStatus nppsZeroCrossingGetBufferSize_16s32f (int nLength, int *hpBufferSize)
 
NppStatus nppsZeroCrossing_16s32f_Ctx (const Npp16s *pSrc, int nLength, Npp32f *pValZC, NppsZCType tZCType, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
 16-bit signed short integer zero crossing method, return value is 32-bit floating point. More...
 
NppStatus nppsZeroCrossing_16s32f (const Npp16s *pSrc, int nLength, Npp32f *pValZC, NppsZCType tZCType, Npp8u *pDeviceBuffer)
 
NppStatus nppsZeroCrossingGetBufferSize_32f_Ctx (int nLength, int *hpBufferSize, NppStreamContext nppStreamCtx)
 Device-buffer size (in bytes) for nppsZeroCrossing_32f. More...
 
NppStatus nppsZeroCrossingGetBufferSize_32f (int nLength, int *hpBufferSize)
 
NppStatus nppsZeroCrossing_32f_Ctx (const Npp32f *pSrc, int nLength, Npp32f *pValZC, NppsZCType tZCType, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
 32-bit floating-point zero crossing method, return value is 32-bit floating point. More...
 
NppStatus nppsZeroCrossing_32f (const Npp32f *pSrc, int nLength, Npp32f *pValZC, NppsZCType tZCType, Npp8u *pDeviceBuffer)
 

Detailed Description

Calculates the number of zero crossings in a signal.

Function Documentation

NppStatus nppsZeroCrossing_16s32f ( const Npp16s pSrc,
int  nLength,
Npp32f pValZC,
NppsZCType  tZCType,
Npp8u pDeviceBuffer 
)
NppStatus nppsZeroCrossing_16s32f_Ctx ( const Npp16s pSrc,
int  nLength,
Npp32f pValZC,
NppsZCType  tZCType,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

16-bit signed short integer zero crossing method, return value is 32-bit floating point.

Parameters
pSrcSource Signal Pointer.
nLengthSignal Length.
pValZCPointer to the output result.
tZCTypeType of the zero crossing measure: nppZCR, nppZCXor or nppZCC.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsZeroCrossingGetBufferSize_16s32f to determine the minium number of bytes required.
nppStreamCtxApplication Managed Stream Context.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsZeroCrossing_32f ( const Npp32f pSrc,
int  nLength,
Npp32f pValZC,
NppsZCType  tZCType,
Npp8u pDeviceBuffer 
)
NppStatus nppsZeroCrossing_32f_Ctx ( const Npp32f pSrc,
int  nLength,
Npp32f pValZC,
NppsZCType  tZCType,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

32-bit floating-point zero crossing method, return value is 32-bit floating point.

Parameters
pSrcSource Signal Pointer.
nLengthSignal Length.
pValZCPointer to the output result.
tZCTypeType of the zero crossing measure: nppZCR, nppZCXor or nppZCC.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer. Use nppsZeroCrossingGetBufferSize_32f to determine the minium number of bytes required.
nppStreamCtxApplication Managed Stream Context.
Returns
Signal Data Related Error Codes, Length Related Error Codes.
NppStatus nppsZeroCrossingGetBufferSize_16s32f ( int  nLength,
int *  hpBufferSize 
)
NppStatus nppsZeroCrossingGetBufferSize_16s32f_Ctx ( int  nLength,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Device-buffer size (in bytes) for nppsZeroCrossing_16s32f.

Parameters
nLengthSignal Length.
hpBufferSizeRequired buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtxApplication Managed Stream Context.
Returns
NPP_SUCCESS
NppStatus nppsZeroCrossingGetBufferSize_32f ( int  nLength,
int *  hpBufferSize 
)
NppStatus nppsZeroCrossingGetBufferSize_32f_Ctx ( int  nLength,
int *  hpBufferSize,
NppStreamContext  nppStreamCtx 
)

Device-buffer size (in bytes) for nppsZeroCrossing_32f.

Parameters
nLengthSignal Length.
hpBufferSizeRequired buffer size. Important: hpBufferSize is a host pointer.
nppStreamCtxApplication Managed Stream Context.
Returns
NPP_SUCCESS

Copyright © 2009-2022 NVIDIA CORPORATION AND AFFILIATES