26 #define BOUNDARY_TAG "ffserver"
49 snprintf(buf1,
sizeof(buf1),
"Content-type: image/jpeg\r\n");
52 snprintf(buf1,
sizeof(buf1),
"Content-length: %d\r\n\r\n", pkt->
size);
81 .mime_type =
"multipart/x-mixed-replace;boundary=" BOUNDARY_TAG,
90 .priv_class = &mpjpeg_muxer_class,
static const AVOption options[]
static int mpjpeg_write_trailer(AVFormatContext *s)
#define LIBAVUTIL_VERSION_INT
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
AVOutputFormat ff_mpjpeg_muxer
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int void avio_flush(AVIOContext *s)
Force flushing of buffered data.
static int write_trailer(AVFormatContext *s1)
AVIOContext * pb
I/O context.
Describe the class of an AVClass context structure.
static const AVClass mpjpeg_muxer_class
static int mpjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
static int mpjpeg_write_header(AVFormatContext *s)
void * priv_data
Format private data.
static void write_header(FFV1Context *f)
This structure stores compressed data.
static int write_packet(AVFormatContext *s1, AVPacket *pkt)