58 #define MAX_HEADER_LENGTH 8192 95 m_file = fopen(pFileName,
"rb");
134 for (
int j = 0; j < width_bytes; j += 3)
136 pHelper1[j] = pHelper2[j + 2];
137 pHelper1[j + 1] = pHelper2[j + 1];
138 pHelper1[j + 2] = pHelper2[j];
141 pHelper1 += width_bytes;
142 pHelper2 -= width_bytes;
145 fseek(
m_file, 8, SEEK_CUR);
165 return *((
unsigned int *) pCode);
175 #ifdef IVT_BIG_ENDIAN 205 p = (
unsigned int *) (((
unsigned char *) p) +
length);
224 p = (
unsigned int *) (((
unsigned char *) p) +
length);
232 p = (
unsigned int *) (((
unsigned char *) p) +
length);
237 unsigned int offset = (
unsigned int) ((
unsigned char *) p -
header);
238 fseek(
m_file, offset, SEEK_SET);
244 fseek(
m_file, length + 8, SEEK_CUR);
250 p = (
unsigned int *)
header;
296 p = (
unsigned int *) (((
unsigned char *)
p) + length);
315 p = (
unsigned int *) (((
unsigned char *)
p) + length);
323 p = (
unsigned int *) (((
unsigned char *)
p) + length);
328 unsigned int offset = (
unsigned int) ((
unsigned char *) p -
header);
329 fseek(
m_file, offset, SEEK_SET);
335 fseek(
m_file, length + 8, SEEK_CUR);
341 p = (
unsigned int *)
header;
#define MAX_HEADER_LENGTH
unsigned char * m_pTempBuffer
bool OpenUncompressedAVI(const char *pFileName)
static unsigned int ConvertFourByteCode(const char *pCode)
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
bool ParseUncompressedAVIHeader()
unsigned char * pixels
The pointer to the the pixels.
unsigned int invert_byte_order_int(unsigned int x)
CByteImage * ReadNextFrame()
GLuint GLsizei GLsizei * length