mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-17 02:15:24 +00:00
Revert "revert #1148 as prematurely incorporated"
This reverts commit f946088214.
This commit is contained in:
parent
bd2121b674
commit
7216ba8530
22 changed files with 20385 additions and 1813 deletions
|
|
@ -44,18 +44,12 @@ public:
|
|||
/// Pushes a new frame into the video stream
|
||||
bool pushFrame( GBitmap * bitmap )
|
||||
{
|
||||
FileStream fs;
|
||||
String framePath = mPath + String::ToString("%.6u.png", mCurrentFrame);
|
||||
if ( !fs.open( framePath, Torque::FS::File::Write ) )
|
||||
{
|
||||
Con::errorf( "VideoEncoderPNG::pushFrame() - Failed to open output file '%s'!", framePath.c_str() );
|
||||
return false;
|
||||
}
|
||||
|
||||
//Increment
|
||||
mCurrentFrame++;
|
||||
|
||||
bool result = bitmap->writeBitmap("png", fs, 0);
|
||||
bool result = bitmap->writeBitmap("png", framePath, 0);
|
||||
pushProcessedBitmap(bitmap);
|
||||
|
||||
return result;
|
||||
|
|
@ -73,4 +67,4 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
REGISTER_VIDEO_ENCODER(VideoEncoderPNG, PNG)
|
||||
REGISTER_VIDEO_ENCODER(VideoEncoderPNG, PNG)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue