Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

mxcpcMJPEGWriter Class Reference
[mxcpc_core (Core Module - MxPEG Decoding Infrastructure)]

Generates an MJPEG stream. More...

#include <mxcpcMJPEGWriter.h>

Inheritance diagram for mxcpcMJPEGWriter:

mxcpcJPEGReceiver mxcpcBinaryFileWriter mxcpcByteStreamReceiver List of all members.

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

Detailed Description

Generates an 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.


The documentation for this class was generated from the following files:
Generated on Fri Jan 20 13:33:35 2006 for mxcpc by  doxygen 1.4.4