Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
Utils Class Reference

#include <Utils.h>

Collaboration diagram for Utils:
Collaboration graph

Static Public Member Functions

static int64_t GetEpocFromTime (const char *t)
 
static int64_t GetEpocFromTimeInMillis (const char *t)
 
static std::string base64_encode (unsigned char const *bytes_to_encode, size_t in_len)
 
static cv::Mat getMatHeader (RawImageMetadata *metadata)
 
static cv::Mat getMatHeader (RawImagePlanarMetadata *metadata, int rows)
 
static cv::Mat getMatHeader (cv::Rect &roi, RawImageMetadata *metadata)
 
static cv::cuda::GpuMat getGPUMatHeader (cv::Rect &roi, RawImageMetadata *metadata)
 
static cv::Mat getMatHeader (int width, int height, int type)
 
static void round_roi (cv::Rect &roi, int alignLength)
 
static bool check_roi_bounds (cv::Rect &roi, int width, int height)
 
static void setModuleThreadName (boost::thread &thread, std::string moduleID)
 
template<class T >
static void serialize (T &obj, void *buffer, size_t size)
 
template<class T >
static void deSerialize (T &obj, void *buffer, size_t size)
 

Private Member Functions

 Utils (void)
 

Constructor & Destructor Documentation

◆ Utils()

Utils::Utils ( void )
inlineprivate

Member Function Documentation

◆ base64_encode()

std::string Utils::base64_encode ( unsigned char const * bytes_to_encode,
size_t in_len )
static

◆ check_roi_bounds()

bool Utils::check_roi_bounds ( cv::Rect & roi,
int width,
int height )
static
Here is the caller graph for this function:

◆ deSerialize()

template<class T >
static void Utils::deSerialize ( T & obj,
void * buffer,
size_t size )
inlinestatic
Here is the caller graph for this function:

◆ GetEpocFromTime()

int64_t Utils::GetEpocFromTime ( const char * t)
static

◆ GetEpocFromTimeInMillis()

int64_t Utils::GetEpocFromTimeInMillis ( const char * t)
static

◆ getGPUMatHeader()

cv::cuda::GpuMat Utils::getGPUMatHeader ( cv::Rect & roi,
RawImageMetadata * metadata )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMatHeader() [1/4]

cv::Mat Utils::getMatHeader ( cv::Rect & roi,
RawImageMetadata * metadata )
static
Here is the call graph for this function:

◆ getMatHeader() [2/4]

cv::Mat Utils::getMatHeader ( int width,
int height,
int type )
static

◆ getMatHeader() [3/4]

cv::Mat Utils::getMatHeader ( RawImageMetadata * metadata)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMatHeader() [4/4]

cv::Mat Utils::getMatHeader ( RawImagePlanarMetadata * metadata,
int rows )
static
Here is the call graph for this function:

◆ round_roi()

void Utils::round_roi ( cv::Rect & roi,
int alignLength )
static

◆ serialize()

template<class T >
static void Utils::serialize ( T & obj,
void * buffer,
size_t size )
inlinestatic
Here is the caller graph for this function:

◆ setModuleThreadName()

void Utils::setModuleThreadName ( boost::thread & thread,
std::string moduleID )
static
Here is the caller graph for this function:

The documentation for this class was generated from the following files: