IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
cast.h
Go to the documentation of this file.
1 // cast.h:
3 // ------------
4 //
14 
15 #ifndef __IPSDKUTIL_INSTRUCTIONSET_CAST_H__
16 #define __IPSDKUTIL_INSTRUCTIONSET_CAST_H__
17 
21 
22 namespace ipsdk {
23 namespace simd {
24 
27 
31 template <eInstructionSet::domain instructionSet, typename TOut, class PackIn>
32 IPSDK_FORCEINLINE
34 cast(const PackIn& in)
35 {
36  typedef typename PackIn::DataType TIn;
38 }
39 
40 template <eInstructionSet::domain instructionSet, class PackIn, class PackOut>
41 IPSDK_FORCEINLINE
42 void
43 cast(const PackIn& in, PackOut& out)
44 {
45  typedef typename PackIn::DataType TIn;
46  typedef typename PackOut::DataType TOut;
47  detail::CastPack<instructionSet, TIn, TOut>::act(in, out);
48 }
49 
52 
53 } // end of namespace simd
54 } // end of namespace ipsdk
55 
56 #endif // __IPSDKUTIL_INSTRUCTIONSET_CAST_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Definition: CastPack.h:33
Vector DataType
data type used for estimation
Definition: EstimationTypes.h:58
IPSDK_FORCEINLINE ipsdk::simd::IS2Pack< instructionSet, TOut >::Type cast(const PackIn &in)
casts from PackIn type to PackOut type
Definition: cast.h:34
Definition of import/export macro for library.
Definition: IS2Pack.h:34