| 1 | #ifndef CVD_COLOURSPACE_FRAME_H |
| 2 | #define CVD_COLOURSPACE_FRAME_H |
| 3 | |
| 4 | #include <cvd/localvideoframe.h> |
| 5 | #include <utility> |
| 6 | |
| 7 | namespace CVD |
| 8 | { |
| 9 | //template<class To, class From> class ColourspaceBuffer; |
| 10 | |
| 11 | /// A frame from a ColourspaceBuffer. Can be treated as a VideoFrame |
| 12 | template <class T> |
| 13 | class ColourspaceFrame : public CVD::LocalVideoFrame<T> |
| 14 | { |
| 15 | /// Allow ColourspaceBuffer to manage frames. |
| 16 | public: |
| 17 | ~ColourspaceFrame() |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | ColourspaceFrame(double time, CVD::Image<T>&& converted) |
| 22 | : LocalVideoFrame<T>(time, std::move(converted)) |
| 23 | { |
| 24 | } |
| 25 | }; |
| 26 | } |
| 27 | |
| 28 | #endif |