bigboss97
1st August 2010, 12:40
I'm writing a program which uses avisynth script to run a slide show. The program goes through each frame and flushes it to a "display":
Frame= Clip->GetFrame( FrameNo, Env);
BmpLine= Frame->GetReadPtr();
for( int Y= Height-1; Y > 0; Y--)
{
CurPix= (Uint8*)SlideShow->pixels +Y *SlideShow->pitch;
memcpy((void*)CurPix,(const void*)BmpLine, RowSize);
BmpLine+= Pitch;
}
I noticed the memory increases constantly. I couldn't find anywhere I increase my memory. So, I'm looking at the avisynth part of my codes. My question:
Every time I run GetFrame() to fetch a frame do I have to release something from the previous frame?
Phuoc Can HUA
Frame= Clip->GetFrame( FrameNo, Env);
BmpLine= Frame->GetReadPtr();
for( int Y= Height-1; Y > 0; Y--)
{
CurPix= (Uint8*)SlideShow->pixels +Y *SlideShow->pitch;
memcpy((void*)CurPix,(const void*)BmpLine, RowSize);
BmpLine+= Pitch;
}
I noticed the memory increases constantly. I couldn't find anywhere I increase my memory. So, I'm looking at the avisynth part of my codes. My question:
Every time I run GetFrame() to fetch a frame do I have to release something from the previous frame?
Phuoc Can HUA