doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
codec Class Reference

#include <codec.h>

Public Member Functions

 codec ()
 
 ~codec ()
 
void SparseEncode (void)
 
void EncodeNothing (void)
 
void IRGBtab (void)
 
void InitImages (void)
 
void QuadX (int startX, int startY, int quadSize)
 
void InitQStatus ()
 
float Snr (byte *old, byte *bnew, int size)
 
void FvqData (byte *bitmap, int size, int realx, int realy, quadcel *pquad, bool clamp)
 
void GetData (unsigned char *iData, int qSize, int startX, int startY, NSBitmapImageRep *bitmap)
 
int ComputeMotionBlock (byte *old, byte *bnew, int size)
 
void VqData8 (byte *cel, quadcel *pquad)
 
void VqData4 (byte *cel, quadcel *pquad)
 
void VqData2 (byte *cel, quadcel *pquad)
 
int MotMeanY (void)
 
int MotMeanX (void)
 
void SetPreviousImage (const char *filename, NSBitmapImageRep *timage)
 
int BestCodeword (unsigned char *tempvector, int dimension, VQDATA **codebook)
 

Private Member Functions

void VQ (const int numEntries, const int dimension, const unsigned char *vectors, float *snr, VQDATA **codebook, const bool optimize)
 
void Sort (float *list, int *intIndex, int numElements)
 
void Segment (int *alist, float *flist, int numElements, float rmse)
 
void LowestQuad (quadcel *qtemp, int *status, float *snr, int bweigh)
 
void MakePreviousImage (quadcel *pquad)
 
float GetCurrentRMSE (quadcel *pquad)
 
int GetCurrentQuadOutputSize (quadcel *pquad)
 
int AddQuad (quadcel *pquad, int lownum)
 

Private Attributes

NSBitmapImageRepimage
 
NSBitmapImageRepnewImage
 
NSBitmapImageReppreviousImage [2]
 
int numQuadCels
 
int whichFrame
 
int slop
 
bool detail
 
int onQuad
 
int initRGBtab
 
quadcelqStatus
 
int dxMean
 
int dyMean
 
int codebooksize
 
int index2 [256]
 
int overAmount
 
int pixelsWide
 
int pixelsHigh
 
int codebookmade
 
bool used2 [256]
 
bool used4 [256]
 
int dimension2
 
int dimension4
 
byte luty [256]
 
byteluti
 
VQDATA ** codebook2
 
VQDATA ** codebook4
 

Detailed Description

Definition at line 45 of file codec.h.

Constructor & Destructor Documentation

codec::codec ( )

Definition at line 39 of file codec.cpp.

codec::~codec ( )

Definition at line 63 of file codec.cpp.

Member Function Documentation

int codec::AddQuad ( quadcel pquad,
int  lownum 
)
private

Definition at line 1018 of file codec.cpp.

int codec::BestCodeword ( unsigned char *  tempvector,
int  dimension,
VQDATA **  codebook 
)

Definition at line 321 of file codec.cpp.

int codec::ComputeMotionBlock ( byte old,
byte bnew,
int  size 
)

Definition at line 771 of file codec.cpp.

void codec::EncodeNothing ( void  )

Definition at line 1355 of file codec.cpp.

void codec::FvqData ( byte bitmap,
int  size,
int  realx,
int  realy,
quadcel pquad,
bool  clamp 
)

Definition at line 788 of file codec.cpp.

int codec::GetCurrentQuadOutputSize ( quadcel pquad)
private

Definition at line 978 of file codec.cpp.

float codec::GetCurrentRMSE ( quadcel pquad)
private

Definition at line 1001 of file codec.cpp.

void codec::GetData ( unsigned char *  iData,
int  qSize,
int  startX,
int  startY,
NSBitmapImageRep bitmap 
)

Definition at line 905 of file codec.cpp.

void codec::InitImages ( void  )

Definition at line 564 of file codec.cpp.

void codec::InitQStatus ( void  )

Definition at line 627 of file codec.cpp.

void codec::IRGBtab ( void  )

Definition at line 745 of file codec.cpp.

void codec::LowestQuad ( quadcel qtemp,
int status,
float snr,
int  bweigh 
)
private

Definition at line 948 of file codec.cpp.

void codec::MakePreviousImage ( quadcel pquad)
private

Definition at line 385 of file codec.cpp.

int codec::MotMeanX ( void  )

Definition at line 1081 of file codec.cpp.

int codec::MotMeanY ( void  )

Definition at line 1086 of file codec.cpp.

void codec::QuadX ( int  startX,
int  startY,
int  quadSize 
)

Definition at line 601 of file codec.cpp.

void codec::Segment ( int alist,
float flist,
int  numElements,
float  rmse 
)
private

Definition at line 114 of file codec.cpp.

void codec::SetPreviousImage ( const char *  filename,
NSBitmapImageRep timage 
)

Definition at line 362 of file codec.cpp.

float codec::Snr ( byte old,
byte bnew,
int  size 
)

Definition at line 750 of file codec.cpp.

void codec::Sort ( float list,
int intIndex,
int  numElements 
)
private

Definition at line 83 of file codec.cpp.

void codec::SparseEncode ( void  )

Definition at line 1091 of file codec.cpp.

void codec::VQ ( const int  numEntries,
const int  dimension,
const unsigned char *  vectors,
float snr,
VQDATA **  codebook,
const bool  optimize 
)
private

Definition at line 1456 of file codec.cpp.

void codec::VqData2 ( byte cel,
quadcel pquad 
)

Definition at line 708 of file codec.cpp.

void codec::VqData4 ( byte cel,
quadcel pquad 
)

Definition at line 679 of file codec.cpp.

void codec::VqData8 ( byte cel,
quadcel pquad 
)

Definition at line 643 of file codec.cpp.

Member Data Documentation

VQDATA** codec::codebook2
private

Definition at line 103 of file codec.h.

VQDATA** codec::codebook4
private

Definition at line 104 of file codec.h.

int codec::codebookmade
private

Definition at line 95 of file codec.h.

int codec::codebooksize
private

Definition at line 90 of file codec.h.

bool codec::detail
private

Definition at line 84 of file codec.h.

int codec::dimension2
private

Definition at line 98 of file codec.h.

int codec::dimension4
private

Definition at line 99 of file codec.h.

int codec::dxMean
private

Definition at line 88 of file codec.h.

int codec::dyMean
private

Definition at line 89 of file codec.h.

NSBitmapImageRep* codec::image
private

Definition at line 78 of file codec.h.

int codec::index2[256]
private

Definition at line 91 of file codec.h.

int codec::initRGBtab
private

Definition at line 86 of file codec.h.

byte* codec::luti
private

Definition at line 102 of file codec.h.

byte codec::luty[256]
private

Definition at line 101 of file codec.h.

NSBitmapImageRep* codec::newImage
private

Definition at line 79 of file codec.h.

int codec::numQuadCels
private

Definition at line 81 of file codec.h.

int codec::onQuad
private

Definition at line 85 of file codec.h.

int codec::overAmount
private

Definition at line 92 of file codec.h.

int codec::pixelsHigh
private

Definition at line 94 of file codec.h.

int codec::pixelsWide
private

Definition at line 93 of file codec.h.

NSBitmapImageRep* codec::previousImage[2]
private

Definition at line 80 of file codec.h.

quadcel* codec::qStatus
private

Definition at line 87 of file codec.h.

int codec::slop
private

Definition at line 83 of file codec.h.

bool codec::used2[256]
private

Definition at line 96 of file codec.h.

bool codec::used4[256]
private

Definition at line 97 of file codec.h.

int codec::whichFrame
private

Definition at line 82 of file codec.h.


The documentation for this class was generated from the following files: