00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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
00026
00027
00028 #define TL_SOURCEFILES_DEFAULT_FILENAME "image"
00029
00030
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