Initial
This commit is contained in:
29
avifile/STRMDATA.CPP
Normal file
29
avifile/STRMDATA.CPP
Normal file
@@ -0,0 +1,29 @@
|
||||
#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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user