TLIB documentation
 

tlSourceFiles.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 __TLSOURCEFILES_H__
00018 #define __TLSOURCEFILES_H__
00019 
00020 
00021 #include "tlVision.h"
00022 #include "tlSource.h"
00023 
00024 
00025 // constants
00026 
00027 // filename base used by the file "digitizer"
00028 #define TL_SOURCEFILES_DEFAULT_FILENAME    "image"
00029 
00030 // interface
00031 class tlSourceFiles : tlSource
00032 {
00033 private:
00034   char *filenameBase;
00035   int  current;
00036   int  length;
00037   int  delay;
00038   long lastGrabTime;
00039 
00040 public:
00041   tlSourceFiles  ();
00042   tlSourceFiles  (char *filename);
00043   virtual ~tlSourceFiles ();
00044 
00045   int getLength () { return length;  };
00046   int getIndex  () { return current; };
00047 
00048         int open     ();
00049   int open     (char *filename);
00050   int setIndex (int  index);
00051   
00052   int setFrameRate (int fps);
00053 
00054   virtual int grab        (tlImage *image);
00055   virtual int grab        (tlImage *image, tlRect *rect);
00056   virtual int grabQueued  (tlImage *image);
00057   virtual int grabQueued  (tlImage *image, tlRect *rect);
00058 };
00059 
00060 #endif
00061 
00062 


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.