June 4th, 2003, 10:10 AM
Join Date: Jun 2003
Time spent in forums: < 1 sec
Reputation Power: 0
Reading in Files HELP!!!!
Hi, I am currently using hmmio to read in data for a multimedia player. When I run my program is starts off fast but then starts to slow down. I pin pointed the problem to the part where i read in the data. I read in about 15 megs at a time, about 30 frames.
It starts off at about 500ms per read but then slowly goes to an occsillating effect where it takes 500 ms to read then it takes 4 sec to read and so on. Does anyone know why this is happening? here is my code(short version)
char * fileBuffer=(char *)malloc(15552000);
byte* YP=(char *)malloc(15552000);
hmmio = mmioOpen("C:\\Documents and Settings\\mliu\\Desktop\\YUVPLAYER\\pond.yuv", NULL, MMIO_READ );
//***calculation and direct draw functions ****//