FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mpjpeg.c File Reference
#include "libavutil/opt.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  MPJPEGContext
 

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

static const AVOption options []
 
static const AVClass mpjpeg_muxer_class
 
AVOutputFormat ff_mpjpeg_muxer
 

Macro Definition Documentation

#define BOUNDARY_TAG   "ffserver"

Definition at line 26 of file mpjpeg.c.

Function Documentation

static int mpjpeg_write_header ( AVFormatContext s)
static

Definition at line 33 of file mpjpeg.c.

static int mpjpeg_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 44 of file mpjpeg.c.

static int mpjpeg_write_trailer ( AVFormatContext s)
static

Definition at line 61 of file mpjpeg.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "boundary_tag", "Boundary tag", 0x42, AV_OPT_TYPE_STRING, {.str = BOUNDARY_TAG}, .flags = AV_OPT_FLAG_ENCODING_PARAM },
{ NULL },
}

Definition at line 66 of file mpjpeg.c.

const AVClass mpjpeg_muxer_class
static
Initial value:
= {
.class_name = "mpjpeg_muxer",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 71 of file mpjpeg.c.

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",
.priv_data_size = sizeof(MPJPEGContext),
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_MJPEG,
.priv_class = &mpjpeg_muxer_class,
}

Definition at line 78 of file mpjpeg.c.