1 #ifndef CVD_INC_SERVERPUSHJPEGBUFFER_H 2 #define CVD_INC_SERVERPUSHJPEGBUFFER_H 3 #include <cvd/localvideobuffer.h> 4 #include <cvd/serverpushjpegframe.h> 55 for(
int junk = 0; junk < eat_frames; junk++)
74 c = gimme_an_image(data);
79 std::cerr <<
"ServerPushJpegBuffer: video frame is " << c.
size() <<
" not " << s << std::endl;
114 Image<C> gimme_an_image(std::string& data)
128 is.read(&data[0], length);
130 std::istringstream ss(data);
All classes and functions are within the CVD namespace.
Definition: argb.h:6
ImageRef size() const
What is the size of this image?
Definition: image.h:557
LocalVideoFrame< C > * get_frame()
Returns the next frame from the buffer. This function blocks until a frame is ready.
Definition: serverpushjpegbuffer.h:68
bool frame_pending()
Is there a frame waiting in the buffer? This function does not block.
Definition: serverpushjpegbuffer.h:96
ServerPushJpegBuffer(std::istream &i, bool warnings_=0, int eat_frames=0)
Construct a ServerPushJpegBuffer from an istream.
Definition: serverpushjpegbuffer.h:46
virtual ImageRef size()
The size of the VideoFrames returned by this buffer.
Definition: serverpushjpegbuffer.h:63
double frame_rate()
This value is not currently correct.
Definition: serverpushjpegbuffer.h:104
The semsntics of the videobuffer. See VideoFrame::type()
Definition: videobuffer.h:12
Play a server push stream as a video stream.
Definition: serverpushjpegbuffer.h:37
void put_frame(VideoFrame< C > *f)
Tell the buffer that you are finished with this frame.
Definition: serverpushjpegbuffer.h:86
Base class for a VideoBuffer which manages its own memory for each VideoFrame that it provides...
Definition: localvideobuffer.h:17
Definition: image_ref.h:29
The VideoBuffer was unable to successfully complete a VideoBuffer::put_frame() operation.
Definition: videobuffer.h:160
double get_time_of_day()
Same as the system call gettimeofday, but returns seconds since the epoch as a double.
Definition: cvd_timer.cc:45
A frame from a VideoBuffer.
Definition: videoframe.h:35
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
void seek_to(double)
Go to a particular point in the video buffer (only implemented in buffers of recorded video) ...
Definition: serverpushjpegbuffer.h:101