Robotran C Documentation
PngFrameCapture.hh
Go to the documentation of this file.
1 #ifdef FRAME_CAPTURE_PNG
2 
3 #ifndef _PNG_FRAME_CAPTURE_HH_
4 #define _PNG_FRAME_CAPTURE_HH_
5 
6 #include "FrameCapture.hh"
7 #include <string>
8 #include <png.h>
9 
10 namespace OpenGLMbs{
11 
14 class PngFrameCapture: public MbsFrameCapture
15 {
16 
17  public:
18  PngFrameCapture(MbsViewPointRenderer* vp_renderer, std::string root_name = "test");
19  ~PngFrameCapture();
20  void ProcessScreenShot();
21 
22  private:
23  std::string root_name;
24  int count;
25  png_byte *png_bytes;
26  png_byte **png_rows;
27  const size_t format_nchannels;
28  int nvals;
29 };
30 
31 } //namespace OpenGLMbs
32 
33 #endif //_PNG_FRAME_CAPTURE_HH_
34 
35 #endif
OpenGLMbs
Definition: MpegFrameCaptureOptions.hh:6
PngFrameCapture.hh
FrameCapture.hh
FrameCapture class.