Classes | |
class | clip::apt1_0::compactor |
class | clip::apt1_0::cfileio |
class | clip::apt1_0::rlcomp |
struct | clip::apt1_0::entry |
class | clip::apt1_0::palettize |
class | clip::apt1_0::bwpalettize |
class | clip::apt1_0::pca3d |
Functions | |
int | apt_decode (unsigned char ***components, FILE *cfp, int &rows, int &cols, int &pnmtype, int &topmaxval, char **comment, int &bytesperpel) |
void | apt_finish (unsigned char ***components, int truerows, int truecols, int pnmtype) |
int | apt_encode (unsigned char ***incomponents, FILE *cfp, int rows, int cols, int pnmtype, int quality, const char *comment, const int numbits) |
int | get_ridgethresh (int spacing) |
int | get_numlevels () |
int | makescratch (const int &xmax, const int &ymax) |
int | deletescratch (const int &ymax) |
void | enc_plane (unsigned char **in, const int &xmax, const int &ymax, const int &fromlevel, const int &tolevel, const int *spacing, rlcomp *codeout, const int &minval, const int &maxval, const int &comp, const int &truecols, const int &truerows) |
int | bincode (unsigned char ***pyr, const int &inrows, const int &incols, rlcomp *codeout, int fromlevel, const int *spacing, const int pnmtype, const int &truerows, const int &truecols) |
void | calc_colour_transform (unsigned char ***components, int *transform, int num_rows, int num_cols) |
void | rgb_pca (unsigned char ***components, int *transform, int num_rows, int num_cols) |
int | calcq (int dynamicrange, int quality, int *qvals, int numbands) |
void | gettrueminmax (unsigned char ***components, const int pnmtype, int *minval, int *maxval, const int &rows, const int &cols) |
void | pad (unsigned char ***incomponents, unsigned char ***pbuf, int &rows, int &cols, int pnmtype) |
const unsigned char ** | initclip (const int &bottomval, const int &topval, int pnmtype) |
void | dec_plane (unsigned char ***out, const int &XMAX, const int &YMAX, const int &fromlevel, const int *spacing, rlcomp *codein, const int *minval, const int *maxval, const int pnmtype, const int &truecols, const int &truerows) |
void | pca_rgb (unsigned char ***components, int *transform, int num_rows, int num_cols, const unsigned char **clip) |
int | read_header (FILE *cfp, int &pnmtype, int &rows, int &cols, int *minval, int *maxval, int *tminval, int *tmaxval, int &numlevels, char &coltype, int *spacing, int *transform, char **comment) |
void | order_filter (unsigned char ***components, int nr, int nc, int numcomps, int quality) |
const unsigned char ** | initclip (const int *minval, const int *maxval, int pnmtype) |
int | prepare_decoder (const int &sq_quant_spacing, const int &di_quant_spacing, const int &maxval) |
int | read_header (FILE *cfp, int &pnmtype, int &rows, int &cols, int *minval, int *maxval, int &ominval, int &omaxval, int &numlevels, char &coltype, int *spacing, int *transform, char **comment, int &bilevel) |
void | to_bilevel (unsigned char ***components, const int pnmtype, int *minval, int *maxval, const int &rows, const int &cols) |
void | unmktopcode (unsigned char topcode, int &l0rec, int &l1rec, int &l2rec, int &r0rec, int &r1rec, int &r2rec, int &cdcoder, int &efcoder, rlcomp *codein, const int neg_correct, int pnmtype) |
void | dec_level (unsigned char ***out, const int &XMAX, const int &YMAX, const int &level, const int &sq_spacing, const int &di_spacing, rlcomp *codein, const int pnmtype, const int &maxval, int actuallower[3][256], int actualhigher[3][256]) |
void | dec_plane (unsigned char ***out, const int &xmax, const int &ymax, const int &fromlevel, const int *spacing, rlcomp *codein, const int &minval, const int &maxval, const int pnmtype) |
int | eight_bit_decode (unsigned char ***components, FILE *cfp, int &rows, int &cols, int &pnmtype, int &topmaxval, char **comment, int if_eq_two_alloc_double_space, cfileio &fio, rlcomp *codein) |
void | prepare_encoder (const int &sq_quant_spacing, const int &di_quant_spacing, const int &maximum) |
void | from_bilevel (unsigned char ***components, const int pnmtype, int *minval, int *maxval, const int &rows, const int &cols, int &bilevel) |
void | enc_level (unsigned char **in, const int &XMAX, const int &YMAX, const int &level, const int &sq_spacing, const int &di_spacing, const int &minval, const int &maxval, const int &comp, const int &truecols, const int &truerows, int actuallower[], int actualhigher[]) |
void | mktopcode (const unsigned char scratchval, const unsigned char &l0, const unsigned char &l1, const unsigned char &l2, unsigned char rscratchval, const unsigned char &r0, const unsigned char &r1, const unsigned char &r2, const int pnmtype, rlcomp *codeout, const int putflag, const int sendright, const int &range) |
int | bincode (unsigned char ***pyr, const int &inrows, const int &incols, rlcomp *codeout, int fromlevel, const int *spacing, const int pnmtype, const int &maxval) |
int | eight_bit_encode (unsigned char ***incomponents, FILE *cfp, int rows, int cols, int pnmtype, int quality, const char *comment, cfileio &fio) |
Variables | |
const int | TABLEBITS = 12 |
const int | MASK = (1<<TABLEBITS)-1 |
const int | TABLESIZE = (1<<TABLEBITS) |
const int | FLAGWORDCHUNK = 3 |
const int | FLAGWORDS = 3*3*3 |
const int | MAXFLAG = 63 |
const int | numcoders = 8 |
const int | SST = 0 |
const int | DST = 4 |
const int | orderarray [81] |
const int | shiftbits = 15 |
unsigned char | Aclip [3][512+256] |
unsigned char * | clip [3] |
int | Asq_decode_table [513] = { 0} |
int * | sq_decode_table |
int | sq_range |
int | sq_out_of_range [256] |
int | Adi_decode_table [513] = { 0} |
int * | di_decode_table |
int | di_range |
int | di_out_of_range [256] |
int | Aabt [513] |
int * | abt |
char | commentbuf [256] |
int | numlevels |
const int | enc_numlevels = 6 |
int | Asq_encode_table [513] = { 0} |
int * | sq_encode_table |
int | sq_arr [19] |
int | Adi_encode_table [513] = { 0} |
int * | di_encode_table |
int | di_arr [19] |
unsigned char ** | scratch |
unsigned char ** | predictors |
unsigned char ** | ridge |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|