Show
Ignore:
Timestamp:
03/21/12 18:36:20 (2 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/quicktime/QuicktimeLiveImageStream.cpp

    r12292 r13041  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2007 Robert Osfield  
     1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2007 Robert Osfield 
    22 * 
    3  * This library is open source and may be redistributed and/or modified under   
    4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or  
     3 * This library is open source and may be redistributed and/or modified under 
     4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
    55 * (at your option) any later version.  The full license is in LICENSE file 
    66 * included with this distribution, and on the openscenegraph.org website. 
    7  *  
     7 * 
    88 * This library is distributed in the hope that it will be useful, 
    99 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1111 * OpenSceneGraph Public License for more details. 
    1212*/ 
     
    4444    //    initialize_quicktime_qtml(); 
    4545    //    enter_quicktime_movies(); 
    46     //  
     46    // 
    4747    load(fileName); 
    4848} 
     
    7474   OSG_DEBUG<<"Sending pause"<<this<<std::endl; 
    7575} 
    76 /// stop playing  
     76/// stop playing 
    7777void QuicktimeLiveImageStream::quit(bool wiatForThreadToExit) 
    7878{ 
     
    161161   if (idx == std::string::npos) 
    162162   { 
    163        OSG_FATAL << "Error while parsing deviceID:deviceInputID.live path : " << fileName << std::endl;         
     163       OSG_FATAL << "Error while parsing deviceID:deviceInputID.live path : " << fileName << std::endl; 
    164164   } 
    165165   // Better c++ code is to use istrstream 
     
    191191   // Callbacks 
    192192   createSequenceGrabberVideoBottlenecks(); 
    193     
     193 
    194194   ComponentResult result = noErr; 
    195195   result = SGPrepare( m_gSeqGrabber, TRUE, FALSE); 
     
    215215       } 
    216216   } 
    217   
     217 
    218218   _status = ImageStream::PLAYING; 
    219219   // Ticker 
     
    307307 
    308308        result = SGVideoDigitizerChanged( m_gVideoChannel); 
    309         result = SGGetSrcVideoBounds    ( m_gVideoChannel, &gActiveVideoRect);      
     309        result = SGGetSrcVideoBounds    ( m_gVideoChannel, &gActiveVideoRect); 
    310310        result = SGSetChannelBounds     ( m_gVideoChannel, &gActiveVideoRect); 
    311          
     311 
    312312        result = SGChangedSource (m_gSeqGrabber, m_gVideoChannel); 
    313313 
     
    433433{ 
    434434   ComponentResult err = noErr; 
    435    
     435 
    436436   // call the default grab-complete function 
    437437   err = SGGrabFrameComplete(sgChan,      // channel reference 
    438438                             nBufferNum,  // buffer identifier, provided for you 
    439439                             pbDone);     // pointer to a boolean, has the frame been completely captured? provided for you 
    440     
     440 
    441441   static unsigned int fps_counter = 0; 
    442442   static osg::Timer_t start, finish; 
     
    458458        } 
    459459   } 
    460    
     460 
    461461   return err; 
    462462} 
     
    492492   if (idx == std::string::npos) 
    493493   { 
    494        OSG_FATAL << "Error while parsing deviceID:deviceInputID.live path : " << fileName << std::endl;         
     494       OSG_FATAL << "Error while parsing deviceID:deviceInputID.live path : " << fileName << std::endl; 
    495495   } 
    496496   // Better c++ code is to use istrstream 
     
    563563                destinationBounds.top    = 0; 
    564564                destinationBounds.right  = m_videoRectWidth; 
    565                 destinationBounds.bottom = m_videoRectHeight;                     
     565                destinationBounds.bottom = m_videoRectHeight; 
    566566                error = VDSetPlayThruDestination(m_vdig, m_pixmap, &destinationBounds, 0, 0); 
    567567                //error = VDSetPlayThruGlobalRect(m_vdig, (GrafPtr)origPort, &destinationBounds); 
     
    588588   //memset( data(), 255, 720*250*4); 
    589589 
    590    while (!done)  
     590   while (!done) 
    591591   { 
    592592       // Do some funky rotational memset 
     
    605605       //OpenThreads::Thread::microSleep(50000); // 200fps (1,000,000 = 1 fps) 
    606606       //OpenThreads::Thread::microSleep(25000); // 400fps (1,000,000 = 1 fps) 
    607        // Ridiculous  
     607       // Ridiculous 
    608608       OpenThreads::Thread::microSleep(10000); // 1000fps (1,000,000 = 1 fps) 
    609609   }