IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Namespaces | Functions
cast.h File Reference

cast function; casts a Pack<instructionSet, TIn> to a Pack<instructionSet, TOut> More...

#include <IPSDKUtil/IPSDKUtilExports.h>
#include <IPSDKUtil/InstructionSet/IS2Pack.h>
#include <IPSDKUtil/InstructionSet/detail/CastPack.h>

Go to the source code of this file.

Namespaces

 ipsdk
 Main namespace for IPSDK library.
 
 ipsdk::simd
 Namespace agregating IPSDK SIMD routines and classes.
 

Functions

template<eInstructionSet::domain instructionSet, typename TOut , class PackIn >
IPSDK_FORCEINLINE ipsdk::simd::IS2Pack< instructionSet, TOut >::Type ipsdk::simd::cast (const PackIn &in)
 casts from PackIn type to PackOut type More...
 
template<eInstructionSet::domain instructionSet, class PackIn , class PackOut >
IPSDK_FORCEINLINE void ipsdk::simd::cast (const PackIn &in, PackOut &out)
 

Detailed Description

cast function; casts a Pack<instructionSet, TIn> to a Pack<instructionSet, TOut>

saturated cast function; casts a Pack<instructionSet, TIn> to a Pack<instructionSet, TOut>; elements of input pack that are greater than max<TOut> are cast to max<TOut>, and elements of input pack that are lower than min<TOut> are cast to min<TOut>

Author
H. Delestre
Date
2014/02/25
Author
H. Delestre
Date
2015/01/05