|
|
@ -101,7 +101,7 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
virtual bool Open(const char* fileName, plPipeline* pipeline); |
|
|
|
virtual bool Open(const char* fileName, plPipeline* pipeline); |
|
|
|
virtual void Close(); |
|
|
|
virtual void Close(); |
|
|
|
} |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
plAVIWriter::~plAVIWriter() |
|
|
|
plAVIWriter::~plAVIWriter() |
|
|
@ -172,9 +172,9 @@ hsBool plAVIWriterImp::MsgReceive(plMessage* msg) |
|
|
|
|
|
|
|
|
|
|
|
static const int kFramesPerSec = 30; |
|
|
|
static const int kFramesPerSec = 30; |
|
|
|
|
|
|
|
|
|
|
|
#if HS_BUILD_FOR_WIN32 |
|
|
|
|
|
|
|
bool plAVIWriterImp::Open(const char* fileName, plPipeline* pipeline) |
|
|
|
bool plAVIWriterImp::Open(const char* fileName, plPipeline* pipeline) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
#if HS_BUILD_FOR_WIN32 |
|
|
|
// Already writing, fail
|
|
|
|
// Already writing, fail
|
|
|
|
if (fStreamHandle) |
|
|
|
if (fStreamHandle) |
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -250,12 +250,12 @@ bool plAVIWriterImp::Open(const char* fileName, plPipeline* pipeline) |
|
|
|
Close(); |
|
|
|
Close(); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
plgDispatch::Dispatch()->RegisterForExactType(plRenderMsg::Index(), GetKey()); |
|
|
|
plgDispatch::Dispatch()->RegisterForExactType(plRenderMsg::Index(), GetKey()); |
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void plAVIWriterImp::Close() |
|
|
|
void plAVIWriterImp::Close() |
|
|
|
{ |
|
|
|
{ |
|
|
|