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

gig.cpp File Reference

#include "gig.h"
#include <iostream>

Go to the source code of this file.

Namespaces

namespace  gig

Defines

#define GET_PARAMS(params)
#define SKIP_ONE(x)
#define COPY_ONE(x)

Functions

static void __notify_progress (progress_t *pProgress, float subprogress)
static void __divide_progress (progress_t *pParentProgress, progress_t *pSubProgress, float totalTasks, float currentTask)
int get12lo (const unsigned char *pSrc)
int get12hi (const unsigned char *pSrc)
int16_t get16 (const unsigned char *pSrc)
int get24 (const unsigned char *pSrc)
void Decompress16 (int compressionmode, const unsigned char *params, int srcStep, int dstStep, const unsigned char *pSrc, int16_t *pDst, unsigned long currentframeoffset, unsigned long copysamples)
void Decompress24 (int compressionmode, const unsigned char *params, int dstStep, const unsigned char *pSrc, int16_t *pDst, unsigned long currentframeoffset, unsigned long copysamples, int truncatedBits)
String libraryName ()
 Returns the name of this C++ library.
String libraryVersion ()
 Returns version of this C++ library.

Variables

const int bytesPerFrame [] = { 4096, 2052, 768, 524, 396, 268 }
const int bytesPerFrameNoHdr [] = { 4096, 2048, 768, 512, 384, 256 }
const int headerSize [] = { 0, 4, 0, 12, 12, 12 }
const int bitsPerSample [] = { 16, 8, 24, 16, 12, 8 }


Define Documentation

#define COPY_ONE  ) 
 

Value:

SKIP_ONE(x);                            \
        *pDst = y >> shift1;                    \
        pDst += dstStep

Referenced by gig::Decompress24().

#define GET_PARAMS params   ) 
 

Value:

y = (get24(params) + get24((params) + 3));      \
        dy  = get24((params) + 6);                      \
        ddy = get24((params) + 9)

Referenced by gig::Decompress24().

#define SKIP_ONE  ) 
 

Value:

ddy -= (x);                             \
        dy -= ddy;                              \
        y -= dy

Referenced by gig::Decompress24().


Function Documentation

static void gig::__divide_progress progress_t *  pParentProgress,
progress_t *  pSubProgress,
float  totalTasks,
float  currentTask
[static]
 

Definition at line 51 of file gig.cpp.

References gig::progress_t::__range_max, gig::progress_t::__range_min, gig::progress_t::callback, and gig::progress_t::custom.

Referenced by gig::File::GetInstrument(), and gig::File::LoadInstruments().

static void gig::__notify_progress progress_t *  pProgress,
float  subprogress
[static]
 

Definition at line 41 of file gig.cpp.

References gig::progress_t::__range_max, gig::progress_t::__range_min, gig::progress_t::callback, and gig::progress_t::factor.

Referenced by gig::File::GetInstrument(), gig::Instrument::Instrument(), gig::File::LoadInstruments(), and gig::File::LoadSamples().

void gig::Decompress16 int  compressionmode,
const unsigned char *  params,
int  srcStep,
int  dstStep,
const unsigned char *  pSrc,
int16_t *  pDst,
unsigned long  currentframeoffset,
unsigned long  copysamples
[static]
 

Definition at line 90 of file gig.cpp.

References gig::get16().

Referenced by gig::Sample::Read().

void gig::Decompress24 int  compressionmode,
const unsigned char *  params,
int  dstStep,
const unsigned char *  pSrc,
int16_t *  pDst,
unsigned long  currentframeoffset,
unsigned long  copysamples,
int  truncatedBits
[static]
 

Definition at line 128 of file gig.cpp.

References COPY_ONE, gig::get12hi(), gig::get12lo(), gig::get16(), gig::get24(), GET_PARAMS, and SKIP_ONE.

Referenced by gig::Sample::Read().

int gig::get12hi const unsigned char *  pSrc  )  [inline, static]
 

Definition at line 73 of file gig.cpp.

Referenced by gig::Decompress24().

int gig::get12lo const unsigned char *  pSrc  )  [inline, static]
 

Definition at line 67 of file gig.cpp.

Referenced by gig::Decompress24().

int16_t gig::get16 const unsigned char *  pSrc  )  [inline, static]
 

Definition at line 79 of file gig.cpp.

Referenced by gig::Decompress16(), gig::Decompress24(), and gig::Sample::Read().

int gig::get24 const unsigned char *  pSrc  )  [inline, static]
 

Definition at line 84 of file gig.cpp.

Referenced by gig::Decompress24().

String gig::libraryName  ) 
 

Returns the name of this C++ library.

This is usually "libgig" of course. This call is equivalent to RIFF::libraryName() and DLS::libraryName().

Definition at line 1877 of file gig.cpp.

String gig::libraryVersion  ) 
 

Returns version of this C++ library.

This call is equivalent to RIFF::libraryVersion() and DLS::libraryVersion().

Definition at line 1885 of file gig.cpp.


Variable Documentation

const int gig::bitsPerSample[] = { 16, 8, 24, 16, 12, 8 } [static]
 

Definition at line 236 of file gig.cpp.

Referenced by gig::Sample::Read().

const int gig::bytesPerFrame[] = { 4096, 2052, 768, 524, 396, 268 } [static]
 

Definition at line 233 of file gig.cpp.

const int gig::bytesPerFrameNoHdr[] = { 4096, 2048, 768, 512, 384, 256 } [static]
 

Definition at line 234 of file gig.cpp.

Referenced by gig::Sample::Read().

const int gig::headerSize[] = { 0, 4, 0, 12, 12, 12 } [static]
 

Definition at line 235 of file gig.cpp.

Referenced by DLS::Articulation::Articulation().


Generated on Thu Jun 16 10:46:39 2005 for libgig by  doxygen 1.4.2