FFmpeg
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   "ffmpeg"
 

Functions

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

Variables

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

Macro Definition Documentation

◆ BOUNDARY_TAG

#define BOUNDARY_TAG   "ffmpeg"

Definition at line 26 of file mpjpeg.c.

Function Documentation

◆ mpjpeg_write_header()

static int mpjpeg_write_header ( AVFormatContext s)
static

Definition at line 33 of file mpjpeg.c.

◆ mpjpeg_write_packet()

static int mpjpeg_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 40 of file mpjpeg.c.

Variable Documentation

◆ options

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

◆ mpjpeg_muxer_class

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

Definition at line 57 of file mpjpeg.c.

◆ ff_mpjpeg_muxer

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

mpjpeg_write_packet
static int mpjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: mpjpeg.c:40
mpjpeg_write_header
static int mpjpeg_write_header(AVFormatContext *s)
Definition: mpjpeg.c:33
AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:462
MPJPEGContext
Definition: mpjpeg.c:28
AV_OPT_FLAG_ENCODING_PARAM
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
Definition: opt.h:278
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
mpjpeg_muxer_class
static const AVClass mpjpeg_muxer_class
Definition: mpjpeg.c:57
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
BOUNDARY_TAG
#define BOUNDARY_TAG
Definition: mpjpeg.c:26
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
options
static const AVOption options[]
Definition: mpjpeg.c:52
write_packet
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:729
AV_CODEC_ID_MJPEG
@ AV_CODEC_ID_MJPEG
Definition: codec_id.h:56
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:47
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
AV_OPT_TYPE_STRING
@ AV_OPT_TYPE_STRING
Definition: opt.h:229
write_header
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:346