Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

Units Class Reference

#include <units.h>

List of all members.

Public Member Functions

 Units ()

Static Public Member Functions

static float toframes (int64_t samples, int sample_rate, float framerate)
static int64_t toframes_round (int64_t samples, int sample_rate, float framerate)
static double fix_framerate (double value)
static double atoframerate (char *text)
static void punctuate (char *string)
static char * format_to_separators (int time_format)
static int64_t tosamples (float frames, int sample_rate, float framerate)
static char * totext (char *text, int64_t samples, int time_format, int samplerate, float frame_rate=0, float frames_per_foot=0)
static char * totext (char *text, double seconds, int time_format, int sample_rate=0, float frame_rate=0, float frames_per_foot=0)
static int64_t fromtext (char *text, int samplerate, int time_format, float frame_rate, float frames_per_foot)
static double text_to_seconds (char *text, int samplerate, int time_format, float frame_rate, float frames_per_foot)
static char * print_time_format (int time_format, char *string)
static float xy_to_polar (int x, int y)
static void polar_to_xy (float angle, int radius, int &x, int &y)
static int64_t round (double result)
static int64_t to_int64 (double result)
static float quantize10 (float value)
static float quantize (float value, float precision)
static void * int64_to_ptr (uint64_t value)
static uint64_t ptr_to_int64 (void *ptr)


Detailed Description

Definition at line 94 of file units.h.


Constructor & Destructor Documentation

Units::Units  )  [inline]
 

Definition at line 97 of file units.h.


Member Function Documentation

double Units::atoframerate char *  text  )  [static]
 

Definition at line 441 of file units.C.

double Units::fix_framerate double  value  )  [static]
 

Definition at line 427 of file units.C.

char * Units::format_to_separators int  time_format  )  [static]
 

Definition at line 627 of file units.C.

int64_t Units::fromtext char *  text,
int  samplerate,
int  time_format,
float  frame_rate,
float  frames_per_foot
[static]
 

Definition at line 279 of file units.C.

void * Units::int64_to_ptr uint64_t  value  )  [static]
 

Definition at line 552 of file units.C.

void Units::polar_to_xy float  angle,
int  radius,
int &  x,
int &  y
[static]
 

Definition at line 498 of file units.C.

char * Units::print_time_format int  time_format,
char *  string
[static]
 

Definition at line 533 of file units.C.

uint64_t Units::ptr_to_int64 void *  ptr  )  [static]
 

Definition at line 590 of file units.C.

void Units::punctuate char *  string  )  [static]
 

Definition at line 644 of file units.C.

float Units::quantize float  value,
float  precision
[static]
 

Definition at line 518 of file units.C.

float Units::quantize10 float  value  )  [static]
 

Definition at line 511 of file units.C.

int64_t Units::round double  result  )  [static]
 

Definition at line 506 of file units.C.

double Units::text_to_seconds char *  text,
int  samplerate,
int  time_format,
float  frame_rate,
float  frames_per_foot
[static]
 

Definition at line 396 of file units.C.

int64_t Units::to_int64 double  result  )  [static]
 

Definition at line 526 of file units.C.

float Units::toframes int64_t  samples,
int  sample_rate,
float  framerate
[static]
 

Definition at line 414 of file units.C.

int64_t Units::toframes_round int64_t  samples,
int  sample_rate,
float  framerate
[static]
 

Definition at line 419 of file units.C.

int64_t Units::tosamples float  frames,
int  sample_rate,
float  framerate
[static]
 

Definition at line 448 of file units.C.

char * Units::totext char *  text,
double  seconds,
int  time_format,
int  sample_rate = 0,
float  frame_rate = 0,
float  frames_per_foot = 0
[static]
 

Definition at line 160 of file units.C.

char * Units::totext char *  text,
int64_t  samples,
int  time_format,
int  samplerate,
float  frame_rate = 0,
float  frames_per_foot = 0
[static]
 

Definition at line 269 of file units.C.

float Units::xy_to_polar int  x,
int  y
[static]
 

Definition at line 457 of file units.C.


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:26:38 2006 for Guicast-svn by  doxygen 1.4.4