00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef NV_NPPS_H
00030 #define NV_NPPS_H
00031
00037 #include "nppdefs.h"
00038
00039
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043
00064
00071 Npp8u *
00072 nppsMalloc_8u(int nSize);
00073
00080 Npp16u *
00081 nppsMalloc_16u(int nSize);
00082
00089 Npp16s *
00090 nppsMalloc_16s(int nSize);
00091
00098 Npp16sc *
00099 nppsMalloc_16sc(int nSize);
00100
00107 Npp32u *
00108 nppsMalloc_32u(int nSize);
00109
00116 Npp32s *
00117 nppsMalloc_32s(int nSize);
00118
00125 Npp32sc *
00126 nppsMalloc_32sc(int nSize);
00127
00134 Npp32f *
00135 nppsMalloc_32f(int nSize);
00136
00143 Npp32fc *
00144 nppsMalloc_32fc(int nSize);
00145
00152 Npp64s *
00153 nppsMalloc_64s(int nSize);
00154
00161 Npp64sc *
00162 nppsMalloc_64sc(int nSize);
00163
00170 Npp64f *
00171 nppsMalloc_64f(int nSize);
00172
00179 Npp64fc *
00180 nppsMalloc_64fc(int nSize);
00181
00188 void nppsFree(void * pValues);
00189
00190
00192
00199
00207 NppStatus
00208 nppsSet_8u(Npp8u nValue, Npp8u * pDst, int nLength);
00209
00217 NppStatus
00218 nppsSet_16s(Npp16s nValue, Npp16s * pDst, int nLength);
00219
00227 NppStatus
00228 nppsSet_16sc(Npp16sc nValue, Npp16sc * pDst, int nLength);
00229
00237 NppStatus
00238 nppsSet_32s(Npp32s nValue, Npp32s * pDst, int nLength);
00239
00247 NppStatus
00248 nppsSet_32sc(Npp32sc nValue, Npp32sc * pDst, int nLength);
00249
00257 NppStatus
00258 nppsSet_32f(Npp32f nValue, Npp32f * pDst, int nLength);
00259
00267 NppStatus
00268 nppsSet_32fc(Npp32fc nValue, Npp32fc * pDst, int nLength);
00269
00277 NppStatus
00278 nppsSet_64s(Npp64s nValue, Npp64s * pDst, int nLength);
00279
00287 NppStatus
00288 nppsSet_64sc(Npp64sc nValue, Npp64sc * pDst, int nLength);
00289
00297 NppStatus
00298 nppsSet_64f(Npp64f nValue, Npp64f * pDst, int nLength);
00299
00307 NppStatus
00308 nppsSet_64fc(Npp64fc nValue, Npp64fc * pDst, int nLength);
00309
00310
00312
00317
00324 NppStatus
00325 nppsZero_8u(Npp8u * pDst, int nLength);
00326
00333 NppStatus
00334 nppsZero_16s(Npp16s * pDst, int nLength);
00335
00342 NppStatus
00343 nppsZero_16sc(Npp16sc * pDst, int nLength);
00344
00351 NppStatus
00352 nppsZero_32s(Npp32s * pDst, int nLength);
00353
00360 NppStatus
00361 nppsZero_32sc(Npp32sc * pDst, int nLength);
00362
00369 NppStatus
00370 nppsZero_32f(Npp32f * pDst, int nLength);
00371
00378 NppStatus
00379 nppsZero_32fc(Npp32fc * pDst, int nLength);
00380
00387 NppStatus
00388 nppsZero_64s(Npp64s * pDst, int nLength);
00389
00396 NppStatus
00397 nppsZero_64sc(Npp64sc * pDst, int nLength);
00398
00405 NppStatus
00406 nppsZero_64f(Npp64f * pDst, int nLength);
00407
00414 NppStatus
00415 nppsZero_64fc(Npp64fc * pDst, int nLength);
00416
00417
00419
00427
00435 NppStatus
00436 nppsCopy_8u(const Npp8u * pSrc, Npp8u * pDst, int len);
00437
00445 NppStatus
00446 nppsCopy_16s(const Npp16s * pSrc, Npp16s * pDst, int len);
00447
00455 NppStatus
00456 nppsCopy_32s(const Npp32s * pSrc, Npp32s * pDst, int nLength);
00457
00465 NppStatus
00466 nppsCopy_32f(const Npp32f * pSrc, Npp32f * pDst, int len);
00467
00475 NppStatus
00476 nppsCopy_64s(const Npp64s * pSrc, Npp64s * pDst, int len);
00477
00485 NppStatus
00486 nppsCopy_16sc(const Npp16sc * pSrc, Npp16sc * pDst, int len);
00487
00495 NppStatus
00496 nppsCopy_32sc(const Npp32sc * pSrc, Npp32sc * pDst, int len);
00497
00505 NppStatus
00506 nppsCopy_32fc(const Npp32fc * pSrc, Npp32fc * pDst, int len);
00507
00515 NppStatus
00516 nppsCopy_64sc(const Npp64sc * pSrc, Npp64sc * pDst, int len);
00517
00525 NppStatus
00526 nppsCopy_64fc(const Npp64fc * pSrc, Npp64fc * pDst, int len);
00527
00528
00530
00531
00537
00547 NppStatus
00548 nppsReductionGetBufferSize_8u(int nLength, int * hpBufferSize );
00549
00559 NppStatus
00560 nppsReductionGetBufferSize_16s(int nLength, int * hpBufferSize );
00561
00571 inline
00572 NppStatus
00573 nppsReductionGetBufferSize_16u(int nLength, int * hpBufferSize )
00574 {
00575 return nppsReductionGetBufferSize_16s(nLength, hpBufferSize);
00576 }
00577
00586 NppStatus
00587 nppsReductionGetBufferSize_16s_Sfs(int nLength, int * hpBufferSize );
00588
00598 NppStatus
00599 nppsReductionGetBufferSize_16sc(int nLength, int * hpBufferSize );
00600
00609 NppStatus
00610 nppsReductionGetBufferSize_16sc_Sfs(int nLength, int * hpBufferSize );
00611
00621 NppStatus
00622 nppsReductionGetBufferSize_32s(int nLength, int * hpBufferSize );
00623
00633 inline
00634 NppStatus
00635 nppsReductionGetBufferSize_32u(int nLength, int * hpBufferSize )
00636 {
00637 return nppsReductionGetBufferSize_32s(nLength, hpBufferSize);
00638 }
00639
00648 NppStatus
00649 nppsReductionGetBufferSize_32s_Sfs(int nLength, int * hpBufferSize );
00650
00660 NppStatus
00661 nppsReductionGetBufferSize_32sc(int nLength, int * hpBufferSize );
00662
00672 NppStatus
00673 nppsReductionGetBufferSize_32f(int nLength, int * hpBufferSize );
00674
00684 NppStatus
00685 nppsReductionGetBufferSize_32fc(int nLength, int * hpBufferSize );
00686
00696 NppStatus
00697 nppsReductionGetBufferSize_64s(int nLength, int * hpBufferSize );
00698
00708 NppStatus
00709 nppsReductionGetBufferSize_64f(int nLength, int * hpBufferSize );
00710
00720 NppStatus
00721 nppsReductionGetBufferSize_64fc(int nLength, int * hpBufferSize );
00722
00732 NppStatus
00733 nppsSum_32f(const Npp32f * pSrc, int nLength, Npp32f * pSum, NppHintAlgorithm eHint,
00734 Npp8u * pDeviceBuffer);
00735
00745 NppStatus
00746 nppsSum_32fc(const Npp32fc * pSrc, int nLength, Npp32fc * pSum, NppHintAlgorithm eHint,
00747 Npp8u * pDeviceBuffer);
00748
00757 NppStatus
00758 nppsSum_64f(const Npp64f * pSrc, int nLength, Npp64f * pSum, Npp8u * pDeviceBuffer);
00759
00768 NppStatus
00769 nppsSum_64fc(const Npp64fc * pSrc, int nLength, Npp64fc * pSum, Npp8u * pDeviceBuffer);
00770
00780 NppStatus
00781 nppsSum_16s_Sfs(const Npp16s * pSrc, int nLength, Npp16s * pSum, int nScaleFactor,
00782 Npp8u * pDeviceBuffer);
00783
00793 NppStatus
00794 nppsSum_32s_Sfs(const Npp32s * pSrc, int nLength, Npp32s * pSum, int nScaleFactor,
00795 Npp8u * pDeviceBuffer);
00796
00806 NppStatus
00807 nppsSum_16sc_Sfs(const Npp16sc * pSrc, int nLength, Npp16sc * pSum, int nScaleFactor,
00808 Npp8u * pDeviceBuffer);
00809
00820 NppStatus
00821 nppsSum_16sc32sc_Sfs(const Npp16sc * pSrc, int nLength, Npp32sc * pSum, int nScaleFactor,
00822 Npp8u * pDeviceBuffer);
00823
00833 NppStatus
00834 nppsSum_16s32s_Sfs(const Npp16s * pSrc, int nLength, Npp32s * pSum, int nScaleFactor,
00835 Npp8u * pDeviceBuffer);
00836
00845 NppStatus
00846 nppsMax_16s(const Npp16s * pSrc, int nLength, Npp16s * pMax, Npp8u * pDeviceBuffer);
00847
00856 NppStatus
00857 nppsMax_32s(const Npp32s * pSrc, int nLength, Npp32s * pMax, Npp8u * pDeviceBuffer);
00858
00867 NppStatus
00868 nppsMax_32f(const Npp32f * pSrc, int nLength, Npp32f * pMax, Npp8u * pDeviceBuffer);
00869
00878 NppStatus
00879 nppsMax_64f(const Npp64f * pSrc, int nLength, Npp64f * pMax, Npp8u * pDeviceBuffer);
00880
00889 NppStatus
00890 nppsMin_16s(const Npp16s * pSrc, int nLength, Npp16s * pMin, Npp8u * pDeviceBuffer);
00891
00900 NppStatus
00901 nppsMin_32s(const Npp32s * pSrc, int nLength, Npp32s * pMin, Npp8u * pDeviceBuffer);
00902
00911 NppStatus
00912 nppsMin_32f(const Npp32f * pSrc, int nLength, Npp32f * pMin, Npp8u * pDeviceBuffer);
00913
00922 NppStatus
00923 nppsMin_64f(const Npp64f * pSrc, int nLength, Npp64f * pMin, Npp8u * pDeviceBuffer);
00924
00932 NppStatus
00933 nppsMinMaxGetBufferSize_8u(int nLength, int * hpBufferSize);
00934
00942 NppStatus
00943 nppsMinMaxGetBufferSize_16s(int nLength, int * hpBufferSize);
00944
00952 NppStatus
00953 nppsMinMaxGetBufferSize_16u(int nLength, int * hpBufferSize);
00954
00962 NppStatus
00963 nppsMinMaxGetBufferSize_32s(int nLength, int * hpBufferSize);
00964
00972 NppStatus
00973 nppsMinMaxGetBufferSize_32u(int nLength, int * hpBufferSize);
00974
00982 NppStatus
00983 nppsMinMaxGetBufferSize_32f(int nLength, int * hpBufferSize);
00984
00992 NppStatus
00993 nppsMinMaxGetBufferSize_64f(int nLength, int * hpBufferSize);
00994
01004 NppStatus
01005 nppsMinMax_8u(const Npp8u * pSrc, int nLength, Npp8u * pMin, Npp8u * pMax,
01006 Npp8u * pDeviceBuffer);
01007
01017 NppStatus
01018 nppsMinMax_16s(const Npp16s * pSrc, int nLength, Npp16s * pMin, Npp16s * pMax,
01019 Npp8u * pDeviceBuffer);
01020
01030 NppStatus
01031 nppsMinMax_16u(const Npp16u * pSrc, int nLength, Npp16u * pMin, Npp16u * pMax,
01032 Npp8u * pDeviceBuffer);
01033
01043 NppStatus
01044 nppsMinMax_32u(const Npp32u * pSrc, int nLength, Npp32u * pMin, Npp32u * pMax,
01045 Npp8u * pDeviceBuffer);
01046
01056 NppStatus
01057 nppsMinMax_32s(const Npp32s * pSrc, int nLength, Npp32s * pMin, Npp32s * pMax,
01058 Npp8u * pDeviceBuffer);
01059
01069 NppStatus
01070 nppsMinMax_32f(const Npp32f * pSrc, int nLength, Npp32f * pMin, Npp32f * pMax,
01071 Npp8u * pDeviceBuffer);
01072
01082 NppStatus
01083 nppsMinMax_64f(const Npp64f * pSrc, int nLength, Npp64f * pMin, Npp64f * pMax,
01084 Npp8u * pDeviceBuffer);
01085
01086
01088
01089
01091
01092 #ifdef __cplusplus
01093 }
01094 #endif
01095
01096 #endif // NV_NPPS_H