helpers.cpp File Reference
#include <new>
#include "helpers.h"
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include <unistd.h>

Go to the source code of this file.


float invert_byte_order_float (float x)
unsigned long invert_byte_order_long (unsigned long x)
unsigned int invert_byte_order_int (unsigned int x)
unsigned short invert_byte_order_short (unsigned short x)
long invert_byte_order_long (long x)
int invert_byte_order_int (int x)
short invert_byte_order_short (short x)
void get_timer_value (unsigned int &sec, unsigned int &usec)
unsigned int get_timer_value (bool bResetTimer)
double uniform_random ()
float uniform_random_float ()
double gaussian_random ()
float gaussian_random_float ()
int my_round (double x)
int my_round (float x)
void sleep_ms (unsigned int ms)
void hsv2rgb (int h, int s, int v, int &r, int &g, int &b)
void rgb2hsv (int r, int g, int b, int &h, int &s, int &v)
void * aligned_malloc (unsigned int size, unsigned int align_size)
void aligned_free (void *ptr)
const char * GetVersionIVT ()


const char * pVersion = "1.3.22"

Function Documentation

void aligned_free ( void *  ptr)

Definition at line 426 of file helpers.cpp.

void* aligned_malloc ( unsigned int  size,
unsigned int  align_size 

Definition at line 409 of file helpers.cpp.

double gaussian_random ( )

Definition at line 263 of file helpers.cpp.

float gaussian_random_float ( )

Definition at line 294 of file helpers.cpp.

void get_timer_value ( unsigned int &  sec,
unsigned int &  usec 

Definition at line 135 of file helpers.cpp.

unsigned int get_timer_value ( bool  bResetTimer)

Definition at line 180 of file helpers.cpp.

const char* GetVersionIVT ( )

Definition at line 435 of file helpers.cpp.

void hsv2rgb ( int  h,
int  s,
int  v,
int &  r,
int &  g,
int &  b 

Definition at line 348 of file helpers.cpp.

float invert_byte_order_float ( float  x)

Definition at line 73 of file helpers.cpp.

unsigned int invert_byte_order_int ( unsigned int  x)

Definition at line 89 of file helpers.cpp.

int invert_byte_order_int ( int  x)

Definition at line 117 of file helpers.cpp.

unsigned long invert_byte_order_long ( unsigned long  x)

Definition at line 79 of file helpers.cpp.

long invert_byte_order_long ( long  x)

Definition at line 107 of file helpers.cpp.

unsigned short invert_byte_order_short ( unsigned short  x)

Definition at line 99 of file helpers.cpp.

short invert_byte_order_short ( short  x)

Definition at line 127 of file helpers.cpp.

int my_round ( double  x)

Definition at line 325 of file helpers.cpp.

int my_round ( float  x)

Definition at line 330 of file helpers.cpp.

void rgb2hsv ( int  r,
int  g,
int  b,
int &  h,
int &  s,
int &  v 

Definition at line 381 of file helpers.cpp.

void sleep_ms ( unsigned int  ms)

Definition at line 336 of file helpers.cpp.

double uniform_random ( )

Definition at line 251 of file helpers.cpp.

float uniform_random_float ( )

Definition at line 256 of file helpers.cpp.

Variable Documentation

const char* pVersion = "1.3.22"

Definition at line 69 of file helpers.cpp.