Debian Codegraph @

cvd/videofilebuffer_frame.h

raw symbols SCIP
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 /// A frame from a VideoFileBuffer.
19 /// @ingroup gVideoFrame
20 /// @param T The pixel type of the video frames. Currently only <code>CVD::Rgb<CVD::byte> ></code> and
21 /// <code>CVD::byte></code> are supported.
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 /// Construct a video frame from an Image and a timestamp
36 /// @param time The timestamp of this frame
37 /// @param local The Image to use for this frame
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