IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
BufferUtils.h
Go to the documentation of this file.
1 // BufferUtils.h:
3 // --------------
4 //
14 
15 #ifndef __IPSDKBASEDATA_BUFFERUTILS_H__
16 #define __IPSDKBASEDATA_BUFFERUTILS_H__
17 
19 #include <IPSDKUtil/BaseTypes.h>
20 
21 namespace ipsdk {
22 
25 
28 getBufferBaseSize(const eDataType& dataType);
29 
32 copyBuffer(void* pOutput,
33  const ipUInt64 size,
34  const void* pInput);
35 
38 copyBuffer(void* pOutput,
39  const eDataType& dataType,
40  const ipUInt64 size,
41  const void* pInput);
42 
44 template <typename T>
46 copyBuffer(T* pOutput,
47  const ipUInt64 size,
48  const T* pInput);
49 
54 copyBufferMiror(void* pOutput,
55  const eDataType& dataType,
56  const ipUInt64 size,
57  const void* pInput);
58 
60 template <typename T>
62 copyBufferMiror(T* pOutput,
63  const ipUInt64 size,
64  const T* pInput);
65 
70 setBufferValues(const ipReal64 value,
71  const eDataType& dataType,
72  const ipUInt64 size,
73  void* pBuf);
74 
76 template <typename T>
78 setBufferValues(const T value,
79  const ipUInt64 size,
80  T* pBuf);
81 
84 
85 } // end of namespace ipsdk
86 
87 #endif // __IPSDKBASEDATA_BUFFERUTILS_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
IPSDKBASEDATA_API void setBufferValues(const ipReal64 value, const eDataType &dataType, const ipUInt64 size, void *pBuf)
set buffer values to a given constant value
uint64_t ipUInt64
Base types definition.
Definition: BaseTypes.h:55
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
Definition of import/export macro for library.
IPSDKBASEDATA_API ipUInt32 getBufferBaseSize(const eDataType &dataType)
recovery of buffer size from its type (in octets)
Base types for multiplatform compatibility.
IPSDKBASEDATA_API void copyBuffer(void *pOutput, const ipUInt64 size, const void *pInput)
copy of buffer data
eDataType
Enumerate describing a base type.
Definition: BaseTypes.h:77
IPSDKBASEDATA_API void copyBufferMiror(void *pOutput, const eDataType &dataType, const ipUInt64 size, const void *pInput)
copy of buffer mirroring data
#define IPSDKBASEDATA_API
Import/Export macro for library IPSDKUtil.
Definition: IPSDKBaseDataExports.h:27
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53