Clean up of debugging messages
This commit is contained in:
@@ -36,8 +36,6 @@ TextureRectangle::TextureRectangle():
|
||||
_textureWidth(0),
|
||||
_textureHeight(0)
|
||||
{
|
||||
osg::notify(osg::NOTICE)<<"TextureRectangle::TextureRectangle() "<<this<<std::endl;
|
||||
|
||||
setWrap(WRAP_S, CLAMP);
|
||||
setWrap(WRAP_T, CLAMP);
|
||||
|
||||
@@ -49,8 +47,6 @@ TextureRectangle::TextureRectangle(Image* image):
|
||||
_textureWidth(0),
|
||||
_textureHeight(0)
|
||||
{
|
||||
osg::notify(osg::NOTICE)<<"TextureRectangle::TextureRectangle(Image*) "<<this<<std::endl;
|
||||
|
||||
setWrap(WRAP_S, CLAMP);
|
||||
setWrap(WRAP_T, CLAMP);
|
||||
|
||||
@@ -217,8 +213,6 @@ void TextureRectangle::applyTexParameters(GLenum target, State& state) const
|
||||
void TextureRectangle::applyTexImage_load(GLenum target, Image* image, State& state, GLsizei& inwidth, GLsizei& inheight) const
|
||||
{
|
||||
// if we don't have a valid image we can't create a texture!
|
||||
osg::notify(osg::NOTICE)<<"TextureRectangle::applyTexImage_load "<<this<<std::endl;
|
||||
|
||||
if (!image || !image->data())
|
||||
return;
|
||||
|
||||
@@ -264,8 +258,6 @@ void TextureRectangle::applyTexImage_load(GLenum target, Image* image, State& st
|
||||
|
||||
void TextureRectangle::applyTexImage_subload(GLenum target, Image* image, State& state, GLsizei& inwidth, GLsizei& inheight, GLint& inInternalFormat) const
|
||||
{
|
||||
osg::notify(osg::NOTICE)<<"TextureRectangle::applyTexImage_subload "<<this<<std::endl;
|
||||
|
||||
// if we don't have a valid image we can't create a texture!
|
||||
if (!image || !image->data())
|
||||
return;
|
||||
|
||||
@@ -63,7 +63,6 @@ MpegImageStream::MpegImageStream(const char* fileName) : ImageStream()
|
||||
// Deconstructor: stop and terminate thread
|
||||
MpegImageStream::~MpegImageStream()
|
||||
{
|
||||
|
||||
if( isRunning() )
|
||||
{
|
||||
quit(true);
|
||||
@@ -269,12 +268,11 @@ void MpegImageStream::run()
|
||||
MPEG3_RGB888, str);
|
||||
|
||||
dirty(); //Image();
|
||||
|
||||
|
||||
++frameNumber;
|
||||
|
||||
if (frameNumber>=_frames)
|
||||
{
|
||||
|
||||
rewind();
|
||||
//stop();
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#define _MPEGIMAGESTREAM_H_
|
||||
|
||||
#include <osg/ImageStream>
|
||||
#include <osg/Notify>
|
||||
|
||||
#include <OpenThreads/Thread>
|
||||
#include <OpenThreads/Mutex>
|
||||
@@ -56,11 +57,17 @@ namespace osg {
|
||||
{
|
||||
if (!isRunning()) start();
|
||||
|
||||
osg::notify(osg::NOTICE)<<"Play video"<<this<<std::endl;
|
||||
|
||||
setCmd(THREAD_START);
|
||||
}
|
||||
|
||||
/// Pause stream at current position.
|
||||
virtual void pause() { setCmd(THREAD_STOP); }
|
||||
virtual void pause()
|
||||
{
|
||||
osg::notify(osg::NOTICE)<<"Pause video"<<this<<std::endl;
|
||||
setCmd(THREAD_STOP);
|
||||
}
|
||||
|
||||
/// Rewind stream to beginning.
|
||||
virtual void rewind() { setCmd(THREAD_REWIND); }
|
||||
|
||||
Reference in New Issue
Block a user