TLIB documentation
 

tlSourceVideoFile.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 __TLSOURCEVIDEOFILE_H__
00018 #define __TLSOURCEVIDEOFILE_H__
00019 
00020 
00021 
00022 #include "tlVision.h"
00023 #include "tlSource.h"
00024 
00025 
00026 
00027 // DirectX objects
00028 class DXFileObjects;
00029 
00030 
00031 
00032 // interface
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 


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.