mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
uninitialized variables-gfx
This commit is contained in:
parent
1efb687867
commit
b9c207765e
33 changed files with 108 additions and 43 deletions
|
|
@ -278,7 +278,9 @@ bool TheoraTexture::AsyncState::isAtEnd()
|
|||
TheoraTexture::TheoraTexture()
|
||||
: mCurrentFrame( NULL ),
|
||||
mPlaybackQueue( NULL ),
|
||||
mIsPaused( true )
|
||||
mIsPaused( true ),
|
||||
mLastFrameNumber(0),
|
||||
mNumDroppedFrames(0)
|
||||
{
|
||||
GFXTextureManager::addEventDelegate( this, &TheoraTexture::_onTextureEvent );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,12 +52,16 @@ MODULE_BEGIN( VideoCapture )
|
|||
|
||||
MODULE_END;
|
||||
|
||||
VideoCapture::VideoCapture() :
|
||||
VideoCapture::VideoCapture() :
|
||||
mCapturedFramePos(-1.0f),
|
||||
mEncoder(NULL),
|
||||
mFrameGrabber(NULL),
|
||||
mCanvas(NULL),
|
||||
mIsRecording(false),
|
||||
mVideoCaptureStartTime(0),
|
||||
mNextFramePosition(0.0f),
|
||||
mFrameRate(30.0f),
|
||||
mMsPerFrame(1000.0f / mFrameRate),
|
||||
mResolution(0,0),
|
||||
mWaitingForCanvas(false),
|
||||
mEncoderName("THEORA"),
|
||||
|
|
|
|||
|
|
@ -126,12 +126,12 @@ private:
|
|||
/// Frame to be captured next
|
||||
F32 mNextFramePosition;
|
||||
|
||||
/// The per-frame time (in milliseconds)
|
||||
F32 mMsPerFrame;
|
||||
|
||||
/// The framerate we'll use to record
|
||||
F32 mFrameRate;
|
||||
|
||||
/// The per-frame time (in milliseconds)
|
||||
F32 mMsPerFrame;
|
||||
|
||||
/// Accumulated error when converting the per-frame-time to integer
|
||||
/// this is used to dither the value and keep overall time advancing
|
||||
/// correct
|
||||
|
|
|
|||
|
|
@ -195,6 +195,11 @@ public:
|
|||
VideoEncoderTheora() :
|
||||
mCurrentFrame(0), td(NULL), mLastFrame(NULL)
|
||||
{
|
||||
dMemset(&to, 0, sizeof(to));
|
||||
dMemset(&ti, 0, sizeof(ti));
|
||||
dMemset(&tc, 0, sizeof(tc));
|
||||
dMemset(&mBuffer, 0, sizeof(mBuffer));
|
||||
|
||||
setStatus(false);
|
||||
}
|
||||
|
||||
|
|
@ -458,4 +463,4 @@ public:
|
|||
|
||||
REGISTER_VIDEO_ENCODER(VideoEncoderTheora, THEORA)
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue