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