| 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 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
template <typename T> |
| 19 |
class DiskBuffer2Frame : public CVD::LocalVideoFrame<T> |
| 20 |
{ |
| 21 |
|
| 22 |
friend class CVD::DiskBuffer2<T>; |
| 23 |
|
| 24 |
public: |
| 25 |
|
| 26 |
const std::string& name() { return frame_name; }; |
| 27 |
|
| 28 |
|
| 29 |
void timestamp(double time) { this->my_timestamp = time; } |
| 30 |
|
| 31 |
private: |
| 32 |
~DiskBuffer2Frame() |
| 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 |