mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-19 14:43:47 +00:00
revert #1148 as prematurely incorporated
it's getting there, but there have been a few spots noted where it eroneously corrupts text, so we'll have to pull this back out for a bit barring a proper resolution
This commit is contained in:
parent
78b56688d3
commit
f946088214
22 changed files with 1813 additions and 20385 deletions
|
|
@ -44,12 +44,18 @@ 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", framePath, 0);
|
||||
bool result = bitmap->writeBitmap("png", fs, 0);
|
||||
pushProcessedBitmap(bitmap);
|
||||
|
||||
return result;
|
||||
|
|
@ -67,4 +73,4 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
REGISTER_VIDEO_ENCODER(VideoEncoderPNG, PNG)
|
||||
REGISTER_VIDEO_ENCODER(VideoEncoderPNG, PNG)
|
||||
Loading…
Add table
Add a link
Reference in a new issue