TLIB documentation
 

tlDigitizerPXC200.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 __TLDIGITIZERPXC200_H__
00018 #define __TLDIGITIZERPXC200_H__
00019 
00020 
00021 #include "..\..\external\pxc\include\pxc.h"
00022 #include "..\..\external\pxc\include\frame.h"
00023 
00024 #include "tlVision.h"
00025 #include "tlDigitizer.h"
00026 
00027 
00028 // interface
00029 class tlDigitizerPXC200 : public tlDigitizer
00030 {
00031 private:
00032   PXC             pxc;
00033   FRAMELIB        frame;
00034   long            fgHandle;
00035   FRAME __PX_FAR  *buffer;
00036 
00037 public:
00038   tlDigitizerPXC200         ();
00039   tlDigitizerPXC200         (int width, int height);
00040   tlDigitizerPXC200         (int width, int height, int channel, unsigned short input = TL_SOURCE_AUTO);
00041   virtual ~tlDigitizerPXC200        ();
00042 
00043   virtual int open          (int index = 0);
00044   virtual int open          (int width, int height, int index = 0);
00045           int open          (int width, int height, int index, int channel, unsigned short input = TL_SOURCE_AUTO);
00046   virtual int close         ();
00047 
00048   virtual int setChannel    (int channel, unsigned short input);
00049   virtual int setInput      (unsigned short input);
00050   virtual int setFrameRate  (int fps);
00051   virtual int setSize       (int width, int height);
00052 
00053   virtual int grab          (tlImage *image);
00054   virtual int grab          (tlImage *image, tlRect *rect);
00055   virtual int grabQueued    (tlImage *image);
00056   virtual int grabQueued    (tlImage *image, tlRect *rect);
00057 };
00058 
00059 #endif
00060 


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