TLIB documentation
 

tlDigitizerDX.h

Go to the documentation of this file.
00001 /////////////////////////////////////////////////////////////////////////////////
00002 //
00003 //  This file is part of the TLIB computer vision library.
00004 //  Copyright (C) 2003-2008 Sebastien Grange
00005 //  Copyright (C) 2003-2007 VRAI Group, EPFL
00006 //  All rights reserved.
00007 // 
00008 //  This library is free software; you can redistribute it and/or modify
00009 //  it under the terms of the GNU General Public License("GPL") version 2
00010 //  as published by the Free Software Foundation.
00011 // 
00012 //  <http://www.tuyphon.com/tlib>
00013 //
00014 /////////////////////////////////////////////////////////////////////////////////
00015 
00016 
00017 #ifndef __TLDIGITIZERDX_H__
00018 #define __TLDIGITIZERDX_H__
00019 
00020 
00021 
00022 #include "tlVision.h"
00023 #include "tlDigitizer.h"
00024 
00025 
00026 
00027 // DirectX objects
00028 class SampleGrabberCallback;
00029 class DXGrabObjects;
00030 
00031 
00032 
00033 // interface
00034 class tlDigitizerDX : public tlDigitizer
00035 {
00036 private:
00037   bool                    imageReady;
00038   SampleGrabberCallback   *cb;
00039 
00040 protected:
00041   DXGrabObjects           *grabber;
00042   BYTE                    *buffer;
00043   int                     index;
00044   int                     fps;
00045 
00046 public:
00047   tlDigitizerDX  ();
00048   tlDigitizerDX  (int width, int height);
00049   virtual ~tlDigitizerDX ();
00050 
00051   virtual int open            (int index = 0);
00052   virtual int open            (int width, int height, int index = 0);
00053   virtual int close           ();
00054 
00055   virtual int setSize         (int width, int height);
00056 
00057   virtual int grab            (tlImage *image);
00058   virtual int grab            (tlImage *image, tlRect *rect);
00059   virtual int grabQueued      (tlImage *image);
00060   virtual int grabQueued      (tlImage *image, tlRect *rect);
00061 
00062   int setFrameRate (int fps);
00063 };
00064 
00065 
00066 #endif
00067 


TLIB documentation - generated on 12 May 2008
Please address any questions to seb@tuyphon.com
(C) 2001-2008 - S. Grange
(C) 2001-2007 - VRAI Group, EPFL
All Rights Reserved.