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 41 of file mpjpeg.c.

static int mpjpeg_write_trailer ( AVFormatContext s)
static

Definition at line 53 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 },
}
#define NULL
Definition: coverity.c:32
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
Definition: opt.h:275
#define BOUNDARY_TAG
Definition: mpjpeg.c:26

Definition at line 58 of file mpjpeg.c.

const AVClass mpjpeg_muxer_class
static
Initial value:
= {
.class_name = "mpjpeg_muxer",
.item_name = av_default_item_name,
.option = options,
}
static const AVOption options[]
Definition: mpjpeg.c:58
#define LIBAVUTIL_VERSION_INT
Definition: version.h:70
av_default_item_name

Definition at line 63 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,
}
static int mpjpeg_write_trailer(AVFormatContext *s)
Definition: mpjpeg.c:53
#define BOUNDARY_TAG
Definition: mpjpeg.c:26
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:94
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:485
static const AVClass mpjpeg_muxer_class
Definition: mpjpeg.c:63
static int mpjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: mpjpeg.c:41
static int flags
Definition: cpu.c:47
static int mpjpeg_write_header(AVFormatContext *s)
Definition: mpjpeg.c:33
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:497
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: v4l2enc.c:86

Definition at line 70 of file mpjpeg.c.