camera_aravis
videolog.hpp
Go to the documentation of this file.
1 #include <string>
2 #include <cv.h>
3 #include <cstdio>
4 #include <arv.h>
5 
8 };
9 
10 struct VideoFrame {
11  int64_t timestamp_ns;
12  cv::Mat image;
13  ArvPixelFormat format;
14  int32_t frame_id;
15 };
16 
17 class VideoLogfile {
18  public:
19  void open(std::string filename, VideoLogMode mode);
20  void operator<<(VideoFrame image);
21  void operator>>(VideoFrame& image);
22  bool eof();
23  private:
24  FILE* logfile;
25  VideoLogMode mode;
26 };
ArvPixelFormat format
Definition: videolog.hpp:13
Definition: videolog.hpp:10
bool eof()
Definition: videolog.cpp:59
void operator>>(VideoFrame &image)
Definition: videolog.cpp:32
void open(std::string filename, VideoLogMode mode)
Definition: videolog.cpp:8
VideoLogMode
Definition: videolog.hpp:6
void operator<<(VideoFrame image)
Definition: videolog.cpp:23
Definition: videolog.hpp:17
int32_t frame_id
Definition: videolog.hpp:14
Definition: videolog.hpp:7
cv::Mat image
Definition: videolog.hpp:12
int64_t timestamp_ns
Definition: videolog.hpp:11
Definition: videolog.hpp:7