MJPEG
stream.
More...
#include <mxcpcMJPEGWriter.h>
Inheritance diagram for mxcpcMJPEGWriter:
Public Member Functions | |
mxcpcMJPEGWriter (const char *filename, const char *separator=0) | |
mxcpcMJPEGWriter (int file_descriptor, const char *separator=0) | |
~mxcpcMJPEGWriter () | |
void | beginFrame (void) |
(Re)implemented. | |
void | endFrame (void) |
(Re)implemented. | |
void | receiveJPEGBytes (const mxcpc::u8 *buffer, int num) |
(Re)implemented. | |
Private Member Functions | |
void | installSeparator (const char *separator) |
Private Attributes | |
int | FrameNum |
char * | Separator |
MJPEG
stream.
If invoked by specifying a filename to the constructor, the respective file is automatically opened for writing. It is also automatically closed again when the MJPEG writer is deleted later.
If, on the other hand, the MJPEG writer is invoked by specifying a POSIX
file descriptor to the constructor, the file descriptor is used instead. Note that in this case the corresponing file is not closed upon writer destruction.
If a separator string is specified to the constructor, the MJPEG writer will operate in HTTP support mode: before, between and after the frames appropriate lines are inserted that allow for providing a HTTP MJPEG server push.
Definition at line 50 of file mxcpcMJPEGWriter.h.