ImageSrc.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00031
00032
00033
00034 #ifndef _IMAGESRC_H
00035 #define _IMAGESRC_H
00036
00037 #include <openvideo/openVideo.h>
00038 #include <openvideo/State.h>
00039
00040 #ifdef ENABLE_IMAGESRC
00041
00042 #include <string>
00043 #include <vector>
00044
00045 #include <openvideo/Node.h>
00046
00047 class ACE_Time_Value;
00048
00049
00050 namespace openvideo {
00051
00052
00053 class OPENVIDEO_API ImageSrc : public openvideo::Node
00054 {
00055 public:
00059 ImageSrc();
00060
00064 ~ImageSrc();
00065
00067
00072 virtual void nextImage() { doNextPic = true; }
00073
00077 virtual bool setParameter(std::string key, std::string value);
00078
00083 virtual void init();
00084
00088 virtual void process();
00089
00093 virtual void postProcess();
00094
00095 virtual void preProcess();
00096 virtual void initPixelFormats();
00097
00098 protected:
00099 int numBuffers;
00100 unsigned int updateCtr;
00101 size_t curIdx;
00102 int width,height;
00103 std::vector<std::string> fileNames;
00104 float delay;
00105 bool manual, doNextPic;
00106 ACE_Time_Value *lastUpdate;
00107 };
00108
00109
00110 }
00111
00112 #endif // ENABLE_DSVLSRC
00113
00114 #endif // _IMAGESRC_H