#ifndef CVD_VIDEOFILEBUFFER_FRAME_H #define CVD_VIDEOFILEBUFFER_FRAME_H #include #include #include #include struct AVCodecContext; namespace CVD { namespace VFB { class RawVideoFileBufferPIMPL; } /// A frame from a VideoFileBuffer. /// @ingroup gVideoFrame /// @param T The pixel type of the video frames. Currently only CVD::Rgb > and /// CVD::byte> are supported. template class VideoFileFrame : public CVD::LocalVideoFrame { friend class VFB::RawVideoFileBufferPIMPL; public: inline void delete_self() { delete this; } protected: ~VideoFileFrame() { } /// Construct a video frame from an Image and a timestamp /// @param time The timestamp of this frame /// @param local The Image to use for this frame VideoFileFrame(double time, CVD::Image&& local) : LocalVideoFrame(time, std::move(local)) { } private: }; } #endif