J!Analytics
How to read the QCIF Video File Format
Here is a C code to read 2 frames from the QCIF file
unsigned char y0[144][176]; // the y
unsigned char cr0[72][88]; // the cr
unsigned char cb0[72][88]; // the cb
unsigned char y1[144][176]; // the y
unsigned char cr1[72][88]; // the cr
unsigned char cb1[72][88]; // the cb
int fd; // pointer to the input file
// read two frames
void read2frames()
{
// Open the I/P file
fd = open ("claire5.qcif", O_RDONLY) ;
// Read the first frame
read (fd, y0, 144*176);
read (fd, cr0, 72*88);
read (fd, cb0, 72*88);
// Read the second frame
read (fd, y1, 144*176);
read (fd, cr1, 72*88);
read (fd, cb1, 72*88);
}


