00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __TLSOURCEVIDEOFILE_H__
00018 #define __TLSOURCEVIDEOFILE_H__
00019
00020
00021
00022 #include "tlVision.h"
00023 #include "tlSource.h"
00024
00025
00026
00027
00028 class DXFileObjects;
00029
00030
00031
00032
00033 class tlSourceVideoFile : tlSource
00034 {
00035 private:
00036 char *filename;
00037
00038 DXFileObjects *grabber;
00039 char *buffer;
00040 long evCode;
00041 long size;
00042 long long length;
00043 long long current;
00044
00045
00046 public:
00047 tlSourceVideoFile (char *filename);
00048
00049 int getLength () { return (int)length; };
00050 int getIndex () { return (int)current; };
00051
00052 int open (char *filename);
00053 int close ();
00054 int setFrame (int frame);
00055
00056 virtual int grab (tlImage *image);
00057 virtual int grab (tlImage *image, tlRect *rect);
00058 virtual int grabQueued (tlImage *image);
00059 virtual int grabQueued (tlImage *image, tlRect *rect);
00060 };
00061
00062 #endif
00063