libcvd
serverpushjpegframe.h
1 #ifndef CVD_INC_SERVERPUSHJPEGFRAME_H
2 #define CVD_INC_SERVERPUSHJPEGFRAME_H
3 #include <cvd/localvideoframe.h>
4 
5 namespace CVD
6 {
7 
8 template <class T>
9 class ServerPushJpegBuffer;
10 
11 template <class T>
13 {
14  friend class CVD::ServerPushJpegBuffer<T>;
15 
16  public:
18  const std::string& jpeg() { return image_data; };
19 
20  private:
22  {
23  }
24 
25  ServerPushJpegFrame(double time, CVD::Image<T>&& im, const std::string& data)
26  : LocalVideoFrame<T>(time, std::move(im))
27  , image_data(data)
28  {
29  }
30 
31  private:
32  std::string image_data;
33 };
34 
35 };
36 
37 #endif
All classes and functions are within the CVD namespace.
Definition: argb.h:6
const std::string & jpeg()
The underlying JPEG data.
Definition: serverpushjpegframe.h:18
Play a server push stream as a video stream.
Definition: serverpushjpegbuffer.h:37
ConstPointerType data() const
Returns the raw image data.
Definition: image.h:535
Definition: serverpushjpegframe.h:12
A full image which manages its own data.
Definition: image.h:623
A frame from a LocalVideoBuffer, which manages its own data rather than wrapping data owned by the sy...
Definition: localvideoframe.h:30