nmpp
mStat.h
1//------------------------------------------------------------------------
2//
3// $Workfile:: vStat.h $
4//
5// Векторно-матричная библиотека
6//
7// Copyright (c) RC Module Inc.
8//
9// $Revision: 1.1 $ $Date: 2004/11/22 13:50:02 $
10//
19//------------------------------------------------------------------------
20
21
22#ifndef _MSTAT_H_INCLUDED_
23#define _MSTAT_H_INCLUDED_
24
25#ifdef __cplusplus
26 extern "C" {
27#endif
28
65 unsigned nmppmCrc_32u(const unsigned int* pSrcVec, int height, int width, int stride);
66__INLINE__ unsigned nmppmCrc_32s(const nm32s * pSrcVec, int height, int width, int stride) { return nmppmCrc_32u((const unsigned*)pSrcVec, height, width ,stride ); }
67__INLINE__ unsigned nmppmCrc_64u(const nm64u * pSrcVec, int height, int width, int stride) { return nmppmCrc_32u((const unsigned*)pSrcVec, height, width<<1,stride<<1); }
68__INLINE__ unsigned nmppmCrc_64s(const nm64s * pSrcVec, int height, int width, int stride) { return nmppmCrc_32u((const unsigned*)pSrcVec, height, width<<1,stride<<1); }
69__INLINE__ unsigned nmppmCrc_16u(const nm16u * pSrcVec, int height, int width, int stride) { return nmppmCrc_32u((const unsigned*)pSrcVec, height, width>>1,stride>>1); }
70__INLINE__ unsigned nmppmCrc_16s(const nm16s * pSrcVec, int height, int width, int stride) { return nmppmCrc_32u((const unsigned*)pSrcVec, height, width>>1,stride>>1); }
71__INLINE__ unsigned nmppmCrc_8u (const nm8s * pSrcVec, int height, int width, int stride) { return nmppmCrc_32u((const unsigned*)pSrcVec, height, width>>2,stride>>2); }
72__INLINE__ unsigned nmppmCrc_8s (const nm8s * pSrcVec, int height, int width, int stride) { return nmppmCrc_32u((const unsigned*)pSrcVec, height, width>>2,stride>>2); }
73__INLINE__ unsigned nmppmCrc_4u (const nm4s * pSrcVec, int height, int width, int stride) { return nmppmCrc_32u((const unsigned*)pSrcVec, height, width>>3,stride>>3); }
74__INLINE__ unsigned nmppmCrc_4s (const nm4s * pSrcVec, int height, int width, int stride) { return nmppmCrc_32u((const unsigned*)pSrcVec, height, width>>3,stride>>3); }
76
77 unsigned nmppmCrcAcc_32u (const unsigned int* pSrcVec, int height, int width, int stride, unsigned int* crc);
78
79
80
81//__INLINE__ unsigned nmppsCrc_32f(nm32f* pSrcVec, int numBitsToClear, int nSize) { return nmppsCrcMask_32u((unsigned*)pSrcVec,(-1<<numBitsToClear),nSize>>1); }
82//
83//
84//
85//__INLINE__ unsigned nmppmCrcAcc_64s(nm64s* pSrcVec, int nSize, unsigned int* crcAccumulator) { return nmppsCrcAcc_32u((unsigned*)pSrcVec, nSize<<1, crcAccumulator); }
86//__INLINE__ unsigned nmppmCrcAcc_32s(nm32s* pSrcVec, int nSize, unsigned int* crcAccumulator) { return nmppsCrcAcc_32u((unsigned*)pSrcVec, nSize, crcAccumulator); }
87//__INLINE__ unsigned nmppmCrcAcc_16s(nm16s* pSrcVec, int nSize, unsigned int* crcAccumulator) { return nmppsCrcAcc_32u((unsigned*)pSrcVec, nSize>>1, crcAccumulator); }
88//__INLINE__ unsigned nmppmCrcAcc_8s (nm8s* pSrcVec, int nSize, unsigned int* crcAccumulator) { return nmppsCrcAcc_32u((unsigned*)pSrcVec, nSize>>2, crcAccumulator); }
89//__INLINE__ unsigned nmppmCrcAcc_64u(nm64u* pSrcVec, int nSize, unsigned int* crcAccumulator) { return nmppsCrcAcc_32u((unsigned*)pSrcVec, nSize<<1, crcAccumulator); }
90//
91//
92//__INLINE__ unsigned nmppmCrcAcc_16u(nm16u* pSrcVec, int nSize, unsigned int* crcAccumulator) { return nmppsCrcAcc_32u((unsigned*)pSrcVec, nSize>>1, crcAccumulator); }
93//__INLINE__ unsigned nmppmCrcAcc_8u (nm8u* pSrcVec, int nSize, unsigned int* crcAccumulator) { return nmppsCrcAcc_32u((unsigned*)pSrcVec, nSize>>2, crcAccumulator); }
94//
95//unsigned nmppmCrcAcc_32f(const nm32f* pSrcVec, int numBitsToClear, int nSize, unsigned int* crcAccumulator) ;
96//unsigned nmppmCrcAcc_64f(const nm64f* pSrcVec, int numBitsToClear, int nSize, unsigned int* crcAccumulator) ;
97//
98//
99
100
101
102
103
104#ifdef __cplusplus
105 };
106#endif
107
108#endif // _MSTAT_H_INCLUDED_
int nm32s
Definition: nmtype.h:292
unsigned short nm16u
Definition: nmtype.h:481
long long nm64s
Definition: nmtype.h:375
short nm16s
Definition: nmtype.h:243
void nm4s
Definition: nmtype.h:129
unsigned long long nm64u
Definition: nmtype.h:536
char nm8s
Definition: nmtype.h:167