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 | Static Private Member Functions | Private Attributes | List of all members
roq Class Reference

#include <roq.h>

Public Member Functions

 roq ()
 
 ~roq ()
 
void WriteLossless (void)
 
void LoadAndDisplayImage (const char *filename)
 
void CloseRoQFile (bool which)
 
void InitRoQFile (const char *roqFilename)
 
void InitRoQPatterns (void)
 
void EncodeStream (const char *paramInputFile)
 
void EncodeQuietly (bool which)
 
bool IsQuiet (void)
 
bool IsLastFrame (void)
 
NSBitmapImageRepCurrentImage (void)
 
void MarkQuadx (int xat, int yat, int size, float cerror, int choice)
 
void WritePuzzleFrame (quadcel *pquad)
 
void WriteFrame (quadcel *pquad)
 
void WriteCodeBook (byte *codebook)
 
void WwriteCodeBookToStream (byte *codes, int csize, word cflags)
 
int PreviousFrameSize (void)
 
bool MakingVideo (void)
 
bool ParamNoAlpha (void)
 
bool SearchType (void)
 
bool HasSound (void)
 
const char * CurrentFilename (void)
 
int NormalFrameSize (void)
 
int FirstFrameSize (void)
 
bool Scaleable (void)
 
void WriteHangFrame (void)
 
int NumberOfFrames (void)
 

Private Member Functions

void Write16Word (word *aWord, idFile *stream)
 
void Write32Word (unsigned int *aWord, idFile *stream)
 
int SizeFile (idFile *ftosize)
 
void CloseRoQFile (void)
 
void WriteCodeBookToStream (byte *codebook, int csize, word cflags)
 
void JPEGStartCompress (j_compress_ptr cinfo, bool write_all_tables)
 
JDIMENSION JPEGWriteScanlines (j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines)
 
void JPEGDest (j_compress_ptr cinfo, byte *outfile, int size)
 
void JPEGSave (char *filename, int quality, int image_width, int image_height, unsigned char *image_buffer)
 

Static Private Member Functions

static void JPEGInitDestination (j_compress_ptr cinfo)
 
static boolean JPEGEmptyOutputBuffer (j_compress_ptr cinfo)
 
static void JPEGTermDestination (j_compress_ptr cinfo)
 

Private Attributes

codecencoder
 
roqParamparamFile
 
idFileRoQFile
 
NSBitmapImageRepimage
 
int numQuadCels
 
bool quietMode
 
bool lastFrame
 
idStr roqOutfile
 
idStr currentFile
 
int numberOfFrames
 
int previousSize
 
byte codes [4096]
 
bool dataStuff
 

Detailed Description

Definition at line 69 of file roq.h.

Constructor & Destructor Documentation

roq::roq ( void  )

Definition at line 36 of file roq.cpp.

roq::~roq ( void  )

Definition at line 46 of file roq.cpp.

Member Function Documentation

void roq::CloseRoQFile ( bool  which)
void roq::CloseRoQFile ( void  )
private

Definition at line 578 of file roq.cpp.

const char * roq::CurrentFilename ( void  )

Definition at line 108 of file roq.cpp.

NSBitmapImageRep * roq::CurrentImage ( void  )

Definition at line 835 of file roq.cpp.

void roq::EncodeQuietly ( bool  which)

Definition at line 53 of file roq.cpp.

void roq::EncodeStream ( const char *  paramInputFile)

Definition at line 113 of file roq.cpp.

int roq::FirstFrameSize ( void  )

Definition at line 98 of file roq.cpp.

bool roq::HasSound ( void  )

Definition at line 88 of file roq.cpp.

void roq::InitRoQFile ( const char *  roqFilename)

Definition at line 520 of file roq.cpp.

void roq::InitRoQPatterns ( void  )

Definition at line 551 of file roq.cpp.

bool roq::IsLastFrame ( void  )

Definition at line 63 of file roq.cpp.

bool roq::IsQuiet ( void  )

Definition at line 58 of file roq.cpp.

void roq::JPEGDest ( j_compress_ptr  cinfo,
byte outfile,
int  size 
)
private

Definition at line 373 of file roq.cpp.

boolean roq::JPEGEmptyOutputBuffer ( j_compress_ptr  cinfo)
staticprivate

Definition at line 258 of file roq.cpp.

void roq::JPEGInitDestination ( j_compress_ptr  cinfo)
staticprivate

Definition at line 227 of file roq.cpp.

void roq::JPEGSave ( char *  filename,
int  quality,
int  image_width,
int  image_height,
unsigned char *  image_buffer 
)
private
void roq::JPEGStartCompress ( j_compress_ptr  cinfo,
bool  write_all_tables 
)
private

Definition at line 278 of file roq.cpp.

void roq::JPEGTermDestination ( j_compress_ptr  cinfo)
staticprivate

Definition at line 360 of file roq.cpp.

JDIMENSION roq::JPEGWriteScanlines ( j_compress_ptr  cinfo,
JSAMPARRAY  scanlines,
JDIMENSION  num_lines 
)
private

Definition at line 315 of file roq.cpp.

void roq::LoadAndDisplayImage ( const char *  filename)

Definition at line 810 of file roq.cpp.

bool roq::MakingVideo ( void  )

Definition at line 78 of file roq.cpp.

void roq::MarkQuadx ( int  xat,
int  yat,
int  size,
float  cerror,
int  choice 
)

Definition at line 832 of file roq.cpp.

int roq::NormalFrameSize ( void  )

Definition at line 103 of file roq.cpp.

int roq::NumberOfFrames ( void  )

Definition at line 840 of file roq.cpp.

bool roq::ParamNoAlpha ( void  )

Definition at line 73 of file roq.cpp.

int roq::PreviousFrameSize ( void  )

Definition at line 93 of file roq.cpp.

bool roq::Scaleable ( void  )

Definition at line 68 of file roq.cpp.

bool roq::SearchType ( void  )

Definition at line 83 of file roq.cpp.

int roq::SizeFile ( idFile ftosize)
private

Definition at line 205 of file roq.cpp.

void roq::Write16Word ( word aWord,
idFile stream 
)
private

Definition at line 179 of file roq.cpp.

void roq::Write32Word ( unsigned int aWord,
idFile stream 
)
private

Definition at line 190 of file roq.cpp.

void roq::WriteCodeBook ( byte codebook)

Definition at line 622 of file roq.cpp.

void roq::WriteCodeBookToStream ( byte codebook,
int  csize,
word  cflags 
)
private

Definition at line 597 of file roq.cpp.

void roq::WriteFrame ( quadcel pquad)

Definition at line 627 of file roq.cpp.

void roq::WriteHangFrame ( void  )

Definition at line 584 of file roq.cpp.

void roq::WriteLossless ( void  )

Definition at line 396 of file roq.cpp.

void roq::WritePuzzleFrame ( quadcel pquad)
void roq::WwriteCodeBookToStream ( byte codes,
int  csize,
word  cflags 
)

Member Data Documentation

byte roq::codes[4096]
private

Definition at line 128 of file roq.h.

idStr roq::currentFile
private

Definition at line 125 of file roq.h.

bool roq::dataStuff
private

Definition at line 129 of file roq.h.

codec* roq::encoder
private

Definition at line 116 of file roq.h.

NSBitmapImageRep* roq::image
private

Definition at line 120 of file roq.h.

bool roq::lastFrame
private

Definition at line 123 of file roq.h.

int roq::numberOfFrames
private

Definition at line 126 of file roq.h.

int roq::numQuadCels
private

Definition at line 121 of file roq.h.

roqParam* roq::paramFile
private

Definition at line 117 of file roq.h.

int roq::previousSize
private

Definition at line 127 of file roq.h.

bool roq::quietMode
private

Definition at line 122 of file roq.h.

idFile* roq::RoQFile
private

Definition at line 119 of file roq.h.

idStr roq::roqOutfile
private

Definition at line 124 of file roq.h.


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