Macros.h File Reference

#include <math.h>
#include "Fastftol.h"

Include dependency graph for Macros.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MenuDoc

Defines

#define __MACROS_H
#define __OS9ROS_H
#define ABS(a)   (((a)<0)?(-(a)):(a))
#define MAX(a, b)   (((a)>(b))?(a):(b))
#define MIN(A, B)   ((A)<(B)?(A):(B))
#define ROWBYTES(A)   (((A)+15)>>4<<1)
#define ROWWORDS(A)   (((A)+15)>>4)
#define ROUNDOFF(A)   (LONG)((A)<(0)?((A)-.5):((A)+.5))
#define ISODD(A)   (A&0x1)
#define INVERSE(A)   { A.x=-A.x;A.y=-A.y;A.z=-A.z; }
#define FLOOR(a)   ((a)>(0) ? (int)(a) : -(int)(-a))
#define CEILING(a)   ((a)==(int)(a) ? (a) : (a)>0 ? 1+(int)a : -(1+(int)(-a)))
#define SIGN(x)   ((x) >= 0 ? 1 : -1)
#define NUMELEMENTS(array)   (sizeof(array)/sizeof(array[0]))
#define NULLDELETE(a)   { delete a; a = NULL; }
#define PADWIDTH(x)   (((x)*8 + 31) & (~31))/8
#define DOC(A)   ""
#define MENU_DOC(A, B)
#define DLLEXPORT

Functions

void Round (float &number, float modulo)
float RoundValue (float number, float modulo)
long RoundValue (double number)
void AddMenuDoc (MenuDoc *menudoc)
void * GetMenuDocMap ()


Define Documentation

#define __MACROS_H
 

Definition at line 3 of file Macros.h.

#define __OS9ROS_H
 

Definition at line 9 of file Macros.h.

#define ABS  )     (((a)<0)?(-(a)):(a))
 

Definition at line 13 of file Macros.h.

#define CEILING  )     ((a)==(int)(a) ? (a) : (a)>0 ? 1+(int)a : -(1+(int)(-a)))
 

Definition at line 24 of file Macros.h.

#define DLLEXPORT
 

Definition at line 81 of file Macros.h.

#define DOC  )     ""
 

Definition at line 33 of file Macros.h.

#define FLOOR  )     ((a)>(0) ? (int)(a) : -(int)(-a))
 

Definition at line 23 of file Macros.h.

#define INVERSE  )     { A.x=-A.x;A.y=-A.y;A.z=-A.z; }
 

Definition at line 22 of file Macros.h.

#define ISODD  )     (A&0x1)
 

Definition at line 21 of file Macros.h.

#define MAX a,
 )     (((a)>(b))?(a):(b))
 

Definition at line 15 of file Macros.h.

Referenced by RGBFloat::GetCOLORREF(), TimeRange::operator &=(), TimeLineRect::operator|=(), TimeRange::operator|=(), InfluenceShape::SetAttenuation(), and TimeRange::Union().

#define MENU_DOC A,
 ) 
 

Definition at line 34 of file Macros.h.

#define MIN A,
 )     ((A)<(B)?(A):(B))
 

Definition at line 17 of file Macros.h.

Referenced by ColorBuf::ColorBuf(), YAByte::GammaCorrect(), RGBByte::GammaCorrect(), GammaCorrect(), GammaCorrectColBuf(), RGBFloat::GetCOLORREF(), RGBAHalf::Max(), RGBHalf::Max(), HalfColorBufAlpha::Max(), HalfColorBuf::Max(), TimeRange::operator &=(), TimeLineRect::operator|=(), TimeRange::operator|=(), ColorBuf::Set(), and TimeRange::Union().

#define NULLDELETE  )     { delete a; a = NULL; }
 

Definition at line 27 of file Macros.h.

#define NUMELEMENTS array   )     (sizeof(array)/sizeof(array[0]))
 

Definition at line 26 of file Macros.h.

#define PADWIDTH  )     (((x)*8 + 31) & (~31))/8
 

Definition at line 28 of file Macros.h.

#define ROUNDOFF  )     (LONG)((A)<(0)?((A)-.5):((A)+.5))
 

Definition at line 20 of file Macros.h.

#define ROWBYTES  )     (((A)+15)>>4<<1)
 

Definition at line 18 of file Macros.h.

#define ROWWORDS  )     (((A)+15)>>4)
 

Definition at line 19 of file Macros.h.

#define SIGN  )     ((x) >= 0 ? 1 : -1)
 

Definition at line 25 of file Macros.h.


Function Documentation

void AddMenuDoc MenuDoc menudoc  ) 
 

Referenced by MenuDoc::MenuDoc(), and RoundValue().

void* GetMenuDocMap  ) 
 

void Round float &  number,
float  modulo
[inline]
 

Definition at line 37 of file Macros.h.

References float(), and SIGN.

Referenced by RoundValue(), and String::String().

Here is the call graph for this function:

long RoundValue double  number  )  [inline]
 

Definition at line 57 of file Macros.h.

References AddMenuDoc(), and SIGN.

Here is the call graph for this function:

float RoundValue float  number,
float  modulo
[inline]
 

Definition at line 50 of file Macros.h.

References Round().

Referenced by Time::CeilToFrame(), Time::FloorToFrame(), Time::operator *(), Time::operator *=(), Time::operator/(), Time::operator/=(), Time::SetSeconds(), Time::SnapToFrame(), Time::StepFrame(), and Time::StepFrames().

Here is the call graph for this function:


This A:M SDK v12.0 documentation is maintained by Hash Inc. Please address any comments concerning this documentation to AMReports. If you have any information, knowledge, or documentation to share with the A:M developer community, please post them on the Hash SDK forum.

Generated on Thu Oct 27 11:46:48 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001