HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Compress< Type > Class Template Reference

#include <UT_Compress.h>

Public Member Functions

 UT_Compress ()
 
 ~UT_Compress ()
 
void setChunkSize (int size)
 
int isConstant (const Type *data, int size=-1) const
 
int prefilter (Type *data, int size=-1)
 
void postfilter (Type *data, int size=-1)
 
voidencodeRLE (const Type *data, int &result_length, int size=-1, int stride=1)
 
int decodeRLE (const void *data, int size, Type *dest, int stride=1)
 
voidcompress (const void *data, int &result_length, int size=-1, int level=1)
 
int expand (const void *data, int size, void *dest)
 
unsigned char * getRLEBuf ()
 
unsigned char * getCompressBuf ()
 
template<>
int prefilter (unsigned char *data, int size)
 
template<>
void postfilter (unsigned char *data, int size)
 
template<>
int prefilter (unsigned short *data, int size)
 
template<>
void postfilter (unsigned short *data, int size)
 

Detailed Description

template<class Type>
class UT_Compress< Type >

Definition at line 17 of file UT_Compress.h.

Constructor & Destructor Documentation

template<class Type >
UT_Compress< Type >::UT_Compress ( )

Definition at line 21 of file UT_Compress.C.

template<class Type >
UT_Compress< Type >::~UT_Compress ( )

Definition at line 30 of file UT_Compress.C.

Member Function Documentation

template<class Type >
void * UT_Compress< Type >::compress ( const void data,
int result_length,
int  size = -1,
int  level = 1 
)

Definition at line 379 of file UT_Compress.C.

template<class Type >
int UT_Compress< Type >::decodeRLE ( const void data,
int  size,
Type *  dest,
int  stride = 1 
)

Definition at line 285 of file UT_Compress.C.

template<class Type >
void * UT_Compress< Type >::encodeRLE ( const Type *  data,
int result_length,
int  size = -1,
int  stride = 1 
)

Definition at line 192 of file UT_Compress.C.

template<class Type >
int UT_Compress< Type >::expand ( const void data,
int  size,
void dest 
)

Definition at line 401 of file UT_Compress.C.

template<class Type >
unsigned char* UT_Compress< Type >::getCompressBuf ( )
inline

Definition at line 49 of file UT_Compress.h.

template<class Type >
unsigned char* UT_Compress< Type >::getRLEBuf ( )
inline

Definition at line 48 of file UT_Compress.h.

template<class Type >
int UT_Compress< Type >::isConstant ( const Type *  data,
int  size = -1 
) const

Definition at line 55 of file UT_Compress.C.

template<class Type >
void UT_Compress< Type >::postfilter ( Type *  data,
int  size = -1 
)

Definition at line 184 of file UT_Compress.C.

template<>
void UT_Compress< unsigned char >::postfilter ( unsigned char *  data,
int  size 
)
inline

Definition at line 103 of file UT_Compress.C.

template<>
void UT_Compress< unsigned short >::postfilter ( unsigned short *  data,
int  size 
)
inline

Definition at line 157 of file UT_Compress.C.

template<class Type >
int UT_Compress< Type >::prefilter ( Type *  data,
int  size = -1 
)

Definition at line 178 of file UT_Compress.C.

template<>
int UT_Compress< unsigned char >::prefilter ( unsigned char *  data,
int  size 
)
inline

Definition at line 71 of file UT_Compress.C.

template<>
int UT_Compress< unsigned short >::prefilter ( unsigned short *  data,
int  size 
)
inline

Definition at line 125 of file UT_Compress.C.

template<class Type >
void UT_Compress< Type >::setChunkSize ( int  size)

Definition at line 37 of file UT_Compress.C.


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