#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.
Functions | |
void | aligned_free (void *ptr) |
void * | aligned_malloc (unsigned int size, unsigned int align_size) |
double | gaussian_random () |
float | gaussian_random_float () |
void | get_timer_value (unsigned int &sec, unsigned int &usec) |
unsigned int | get_timer_value (bool bResetTimer) |
const char * | GetVersionIVT () |
void | hsv2rgb (int h, int s, int v, int &r, int &g, int &b) |
float | invert_byte_order_float (float x) |
unsigned int | invert_byte_order_int (unsigned int x) |
int | invert_byte_order_int (int x) |
unsigned long | invert_byte_order_long (unsigned long x) |
long | invert_byte_order_long (long x) |
unsigned short | invert_byte_order_short (unsigned short x) |
short | invert_byte_order_short (short x) |
int | my_round (double x) |
int | my_round (float x) |
void | rgb2hsv (int r, int g, int b, int &h, int &s, int &v) |
void | sleep_ms (unsigned int ms) |
double | uniform_random () |
float | uniform_random_float () |
Variables | |
const char * | pVersion = "1.3.22" |
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.
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.
Definition at line 381 of file helpers.cpp.
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.
const char* pVersion = "1.3.22" |
Definition at line 69 of file helpers.cpp.