This commit is contained in:
2024-08-07 09:12:07 -04:00
parent ca445435a0
commit fdfadd5c7e
1021 changed files with 73601 additions and 0 deletions

29
avifile/STRMDATA.CPP Normal file
View 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();
}
}