#include "TextureUtils.h"#include "glwxOpenGL.h"

Go to the source code of this file.
Defines | |
| #define | max(a, b) (((a)>(b))?(a):(b)) |
| #define | min(a, b) (((a)<(b))?(a):(b)) |
Typedefs | |
| typedef unsigned short | qTable [64] |
Functions | |
| unsigned char | getByte () |
| char | fileOpen (const char *) |
| void | decodeQTable (int) |
| void | strmSkip (int n) |
| void | decodeBlock () |
| void | fileClose () |
| void | getInfo () |
| void | fidct () |
| int | wordDec (int) |
| void | decodeHuffTable (int) |
| int | huffDec (HuffTable *h) |
Variables | |
| ComponentTable | component [4] |
| HuffTable | huffTableAC [4] |
| HuffTable | huffTableDC [4] |
| qTable | qtable [4] |
| unsigned int | xblock |
| unsigned int | yblock |
| unsigned int | blockx |
| unsigned int | blocky |
| unsigned int | bsize |
| unsigned int | restartInt |
| unsigned int | bfree |
| unsigned int | dt |
| unsigned char * | data |
| unsigned char * | bpos |
| unsigned char * | dend |
| unsigned char | eof |
| unsigned char | ssStart |
| unsigned char | ssEnd |
| unsigned char | sbits |
| unsigned char | prec |
| unsigned char | ncomp |
| float | dctt [64] |
| int | zigzag [64] |
| #define max | ( | a, | |||
| b | ) | (((a)>(b))?(a):(b)) |
| #define min | ( | a, | |||
| b | ) | (((a)<(b))?(a):(b)) |
| typedef unsigned short qTable[64] |
Definition at line 1285 of file TextureUtils.cpp.
| void decodeBlock | ( | void | ) |
Definition at line 1677 of file TextureUtils.cpp.
References fidct(), huffDec(), p, and wordDec().
Referenced by Image::decodeScanJPG().
| void decodeHuffTable | ( | int | len | ) |
Definition at line 1463 of file TextureUtils.cpp.
References getByte().
Referenced by Image::decodeJPG().
| void decodeQTable | ( | int | len | ) |
Definition at line 1653 of file TextureUtils.cpp.
References getByte().
Referenced by Image::decodeJPG().
| void fidct | ( | void | ) |
| void fileClose | ( | void | ) |
| char fileOpen | ( | const char * | filename | ) |
| unsigned char getByte | ( | void | ) |
Definition at line 1354 of file TextureUtils.cpp.
Referenced by decodeHuffTable(), Image::decodeJPG(), decodeQTable(), Image::decodeScanJPG(), Image::getJPGInfo(), and strmSkip().
| void getInfo | ( | ) |
| int huffDec | ( | HuffTable * | h | ) |
Definition at line 1379 of file TextureUtils.cpp.
References strmSkip().
Referenced by decodeBlock().
| void strmSkip | ( | int | n | ) |
Definition at line 1364 of file TextureUtils.cpp.
References getByte().
Referenced by Image::decodeScanJPG(), huffDec(), and wordDec().
| int wordDec | ( | int | n | ) |
Definition at line 1397 of file TextureUtils.cpp.
References strmSkip().
Referenced by decodeBlock(), and Image::decodeScanJPG().
| unsigned int bfree |
Definition at line 1310 of file TextureUtils.cpp.
| unsigned int blockx |
Definition at line 1310 of file TextureUtils.cpp.
| unsigned int blocky |
Definition at line 1310 of file TextureUtils.cpp.
| unsigned char * bpos |
Definition at line 1313 of file TextureUtils.cpp.
| unsigned int bsize |
Definition at line 1310 of file TextureUtils.cpp.
| ComponentTable component[4] |
Definition at line 1305 of file TextureUtils.cpp.
| unsigned char* data |
Definition at line 1313 of file TextureUtils.cpp.
| float dctt[64] |
Definition at line 1316 of file TextureUtils.cpp.
| unsigned char * dend |
Definition at line 1313 of file TextureUtils.cpp.
| unsigned int dt |
Definition at line 1310 of file TextureUtils.cpp.
| unsigned char eof |
Definition at line 1313 of file TextureUtils.cpp.
| HuffTable huffTableAC[4] |
Definition at line 1306 of file TextureUtils.cpp.
| HuffTable huffTableDC[4] |
Definition at line 1306 of file TextureUtils.cpp.
| unsigned char ncomp |
Definition at line 1313 of file TextureUtils.cpp.
| unsigned char prec |
Definition at line 1313 of file TextureUtils.cpp.
Definition at line 1308 of file TextureUtils.cpp.
| unsigned int restartInt |
Definition at line 1310 of file TextureUtils.cpp.
| unsigned char sbits |
Definition at line 1313 of file TextureUtils.cpp.
| unsigned char ssEnd |
Definition at line 1313 of file TextureUtils.cpp.
| unsigned char ssStart |
Definition at line 1313 of file TextureUtils.cpp.
| unsigned int xblock |
Definition at line 1310 of file TextureUtils.cpp.
| unsigned int yblock |
Definition at line 1310 of file TextureUtils.cpp.
| int zigzag[64] |
Initial value:
{
0, 1, 8, 16, 9, 2, 3, 10,
17, 24, 32, 25, 18, 11, 4, 5,
12, 19, 26, 33, 40, 48, 41, 34,
27, 20, 13, 6, 7, 14, 21, 28,
35, 42, 49, 56, 57, 50, 43, 36,
29, 22, 15, 23, 30, 37, 44, 51,
58, 59, 52, 45, 38, 31, 39, 46,
53, 60, 61, 54, 47, 55, 62, 63
}
Definition at line 1318 of file TextureUtils.cpp.
1.5.3