libcvd
diskbuffer2_frame.h
1 #ifndef CVD_DISKBUFFER2_FRAME_H
2 #define CVD_DISKBUFFER2_FRAME_H
3 
4 #include <cvd/localvideoframe.h>
5 #include <string>
6 #include <utility>
7 
8 namespace CVD
9 {
10 template <class T>
11 class DiskBuffer2;
12 
18 template <typename T>
20 {
22  friend class CVD::DiskBuffer2<T>;
23 
24  public:
26  const std::string& name() { return frame_name; };
27 
29  void timestamp(double time) { this->my_timestamp = time; }
30 
31  private:
33  {
34  }
35 
36  DiskBuffer2Frame(double time, CVD::Image<T>&& from_disk, const std::string& file)
37  : LocalVideoFrame<T>(time, std::move(from_disk))
38  , frame_name(file)
39  {
40  }
41 
42  private:
43  const std::string& frame_name;
44 };
45 }
46 
47 #endif
double my_timestamp
Type of field in this frame.
Definition: videoframe.h:79
const std::string & name()
What is the filename for this image?
Definition: diskbuffer2_frame.h:26
All classes and functions are within the CVD namespace.
Definition: argb.h:6
void timestamp(double time)
set the time stamp, required for TimedDiskBuffer2
Definition: diskbuffer2_frame.h:29
Play a series of image files as a video stream.
Definition: diskbuffer2.h:86
A frame from a DiskBuffer2.
Definition: diskbuffer2_frame.h:19
A full image which manages its own data.
Definition: image.h:623
A frame from a LocalVideoBuffer, which manages its own data rather than wrapping data owned by the sy...
Definition: localvideoframe.h:30