30 lines
638 B
C++
30 lines
638 B
C++
#include <avifile/strmdata.hpp>
|
|
|
|
bool AVIStreamData::read(File &inFile)
|
|
{
|
|
AVIListChunk aviListChunk;
|
|
AVIStreamHeader aviStreamHeader;
|
|
AVIIndexHeader aviIndexHeader;
|
|
|
|
remove();
|
|
inFile-=12;
|
|
while(TRUE)
|
|
{
|
|
aviIndexHeader.read(inFile);
|
|
aviListChunk.read(inFile);
|
|
::OutputDebugString(aviListChunk.toString()+String("\n"));
|
|
if(AVIListChunk::Unknown!=aviListChunk.chunkType()&&
|
|
AVIListChunk::Stream!=aviListChunk.chunkType())
|
|
{
|
|
inFile-=12;
|
|
return size();
|
|
}
|
|
if(aviStreamHeader.read(inFile))
|
|
{
|
|
::OutputDebugString(aviStreamHeader.toString());
|
|
insert(&aviStreamHeader);
|
|
}
|
|
else return size();
|
|
}
|
|
}
|