| 1 |
#ifndef CVD_VIDEOFILEBUFFER_FRAME_H |
| 2 |
#define CVD_VIDEOFILEBUFFER_FRAME_H |
| 3 |
|
| 4 |
#include <cvd/byte.h> |
| 5 |
#include <cvd/localvideoframe.h> |
| 6 |
#include <cvd/rgb.h> |
| 7 |
#include <utility> |
| 8 |
|
| 9 |
struct AVCodecContext; |
| 10 |
|
| 11 |
namespace CVD |
| 12 |
{ |
| 13 |
namespace VFB |
| 14 |
{ |
| 15 |
class RawVideoFileBufferPIMPL; |
| 16 |
} |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
template <class T> |
| 23 |
class VideoFileFrame : public CVD::LocalVideoFrame<T> |
| 24 |
{ |
| 25 |
friend class VFB::RawVideoFileBufferPIMPL; |
| 26 |
|
| 27 |
public: |
| 28 |
inline void delete_self() { delete this; } |
| 29 |
|
| 30 |
protected: |
| 31 |
~VideoFileFrame() |
| 32 |
{ |
| 33 |
} |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
VideoFileFrame(double time, CVD::Image<T>&& local) |
| 39 |
: LocalVideoFrame<T>(time, std::move(local)) |
| 40 |
{ |
| 41 |
} |
| 42 |
|
| 43 |
private: |
| 44 |
}; |
| 45 |
} |
| 46 |
|
| 47 |
#endif |