OpenDAFF C++ API  v1.7
Directional Audio File Format
Namespaces | Macros | Functions | Variables
Utils.cpp File Reference
#include "Utils.h"
#include <DAFFUtils.h>
#include <cstdlib>
#include <malloc.h>
#include <sys/stat.h>
#include <sys/types.h>

Go to the source code of this file.

Namespaces

 DAFF
 

Macros

#define SWAP(i, j)
 

Functions

float DAFF::anglef_proj_0_2PI (float alpha)
 
float DAFF::anglef_proj_0_360_DEG (float alpha)
 
float DAFF::anglef_mindiff_0_2PI (float alpha, float beta)
 
float DAFF::anglef_mindiff_abs_0_2PI (float alpha, float beta)
 
float DAFF::anglef_mindiff_0_360_DEG (float alpha, float beta)
 
float DAFF::anglef_mindiff_abs_0_360_DEG (float alpha, float beta)
 
float DAFF::cabs (float Re, float Im)
 
float DAFF::carg (float Re, float Im)
 
void DAFF::byteswap_2byte (void *, size_t)
 
void DAFF::byteswap_3byte (void *, size_t)
 
void DAFF::byteswap_4byte (void *, size_t)
 
void DAFF::byteswap_8byte (void *, size_t)
 
void DAFF::noswap (void *, size_t)
 
void * DAFF::malloc_aligned16 (size_t bytes)
 
void DAFF::free_aligned16 (void *ptr)
 
void DAFF::stc_sint16_to_float (float *dest, const short *src, size_t count, int input_stride=1, int output_stride=1, float gain=1)
 Convert signed integer 16-Bit -> single precision floating point (32-Bit) More...
 
void DAFF::stc_sint16_to_float_add (float *dest, const short *src, size_t count, int input_stride, int output_stride, float gain)
 
void DAFF::stc_sint24_to_float (float *dest, const void *src, size_t count, int input_stride=1, int output_stride=1, float gain=1)
 Convert signed integer 24-Bit -> single precision floating point (32-Bit) More...
 
void DAFF::stc_sint24_to_float_add (float *dest, const void *src, size_t count, int input_stride, int output_stride, float gain)
 
int64_t DAFF::getFileSize (const std::string &sFilename)
 Größe einer Datei in Bytes zurückgeben (Gibt im Fehlerfall -1 zurück) More...
 

Variables

void(* DAFF::le2se_2byte )(void *src, size_t count) = ( iTest == 1 ? &noswap : &byteswap_2byte )
 
void(* DAFF::le2se_3byte )(void *src, size_t count) = ( iTest == 1 ? &noswap : &byteswap_3byte )
 
void(* DAFF::le2se_4byte )(void *src, size_t count) = ( iTest == 1 ? &noswap : &byteswap_4byte )
 
void(* DAFF::le2se_8byte )(void *src, size_t count) = ( iTest == 1 ? &noswap : &byteswap_8byte )
 

Macro Definition Documentation

#define SWAP (   i,
 
)
Value:
tmp = p[i]; \
p[i] = p[j]; \
p[j] = tmp;

[fwe 2009-05-02] This implementation is probably not the most efficient. Maybe improve this sometime in the future...

Definition at line 111 of file Utils.cpp.

OpenDAFF is a project from the Institute of Technical Acoustics, RWTH Aachen University, Germany.