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

Functions used to adjust templates in GPU kernel sources by managing its string implementation. More...

#include <IPSDKBaseImageTools/IPSDKBaseImageToolsExports.h>
#include <IPSDKImage/Image/ImageTypes.h>
#include <string>

Go to the source code of this file.

Namespaces

 ipsdk
 Main namespace for IPSDK library.
 
 ipsdk::image
 Namespace agregating IPSDK image management routines and classes.
 
 ipsdk::image::tools
 Namespace aggregating basic image tools components.
 

Functions

IPSDKBASEIMAGETOOLS_API std::string ipsdk::image::tools::generateConvertType (const ipsdk::image::eImageBufferType &bufType)
 According to an image buffer type, the functions returns a string of the standard type (e.g. eImageBufferType::eIBT_Int8 -> "char", eImageBufferType::eIBT_UInt32 -> "uint")
 
IPSDKBASEIMAGETOOLS_API void ipsdk::image::tools::replaceAllOccurrences (const std::string &templateStr, const std::string &newStr, std::string &srcStr)
 Replaces all occurrences of a template templateStr in srcStr by another string newStr. srcStr is overwritten. Example: srcStr = "T1 x;", templateStr = "T1", newStr = "int" -> srcStr becomes "int x;".
 

Detailed Description

Functions used to adjust templates in GPU kernel sources by managing its string implementation.

Author
R. Abbal
Date
2021/02/19