cvd/IRIX/O2buffer.h

00001 /*                       
00002     This file is part of the CVD Library.
00003 
00004     Copyright (C) 2005 The Authors
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Lesser General Public
00008     License as published by the Free Software Foundation; either
00009     version 2.1 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Lesser General Public License for more details.
00015 
00016     You should have received a copy of the GNU Lesser General Public
00017     License along with this library; if not, write to the Free Software
00018     Foundation, Inc., 
00019     51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00020 */
00021 //-*- c++ -*-
00022 #ifndef O2_BUFFER_H
00023 #define O2_BUFFER_H
00024 
00025 
00026 #include <cvd/IRIX/O2videoframe.h>
00027 #include <cvd/IRIX/sgi-video.h>
00028 #include <cvd/videobuffer.h>
00029 #include <cvd/rgb8.h>
00030 
00031 namespace CVD
00032 {
00033 
00037 class O2Buffer : public VideoBuffer<Rgb8>
00038 {
00039  public:        
00041     O2Buffer ();
00042     ~O2Buffer ();
00043     
00044     virtual ImageRef size ();
00045     virtual O2VideoFrame *get_frame ();
00046     virtual void put_frame (VideoFrame<Rgb8> *f);
00047     virtual bool frame_pending ();
00048     virtual double frame_rate();
00049 
00050  private:
00051     ImageRef m_frameSize;
00052     SGI::RawSGIVideo *m_pVid;
00053     O2VideoFrame *m_pFrame;
00054     long m_currentFrameNumber;
00055 };
00056 
00057 } // namespace
00058 
00059 #endif

Generated on Wed Feb 18 10:23:01 2009 for CVD by  doxygen 1.5.3