mpjpeg.c File Reference
#include "avformat.h"
Include dependency graph for mpjpeg.c:

Go to the source code of this file.

Macros

#define BOUNDARY_TAG   "ffserver"
 

Functions

static int mpjpeg_write_header (AVFormatContext *s)
 
static int mpjpeg_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int mpjpeg_write_trailer (AVFormatContext *s)
 

Variables

AVOutputFormat ff_mpjpeg_muxer
 

Macro Definition Documentation

#define BOUNDARY_TAG   "ffserver"

Definition at line 25 of file mpjpeg.c.

Referenced by mpjpeg_write_header(), and mpjpeg_write_packet().

Function Documentation

static int mpjpeg_write_header ( AVFormatContext s)
static

Definition at line 27 of file mpjpeg.c.

static int mpjpeg_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 37 of file mpjpeg.c.

static int mpjpeg_write_trailer ( AVFormatContext s)
static

Definition at line 53 of file mpjpeg.c.

Variable Documentation

AVOutputFormat ff_mpjpeg_muxer
Initial value:
= {
.name = "mpjpeg",
.long_name = NULL_IF_CONFIG_SMALL("MIME multipart JPEG"),
.mime_type = "multipart/x-mixed-replace;boundary=" BOUNDARY_TAG,
.extensions = "mjpg",
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_MJPEG,
.write_header = mpjpeg_write_header,
.write_packet = mpjpeg_write_packet,
.write_trailer = mpjpeg_write_trailer,
}
static int mpjpeg_write_trailer(AVFormatContext *s)
Definition: mpjpeg.c:53
#define BOUNDARY_TAG
Definition: mpjpeg.c:25
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int mpjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: mpjpeg.c:37
static int mpjpeg_write_header(AVFormatContext *s)
Definition: mpjpeg.c:27

Definition at line 58 of file mpjpeg.c.