FFmpeg
Data Structures | Functions | Variables
smjpegenc.c File Reference
#include "avformat.h"
#include "internal.h"
#include "mux.h"
#include "smjpeg.h"

Go to the source code of this file.

Data Structures

struct  SMJPEGMuxContext
 

Functions

static int smjpeg_write_header (AVFormatContext *s)
 
static int smjpeg_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int smjpeg_write_trailer (AVFormatContext *s)
 

Variables

const FFOutputFormat ff_smjpeg_muxer
 

Detailed Description

This is a muxer for Loki SDL Motion JPEG files

Definition in file smjpegenc.c.

Function Documentation

◆ smjpeg_write_header()

static int smjpeg_write_header ( AVFormatContext s)
static

Definition at line 36 of file smjpegenc.c.

◆ smjpeg_write_packet()

static int smjpeg_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 92 of file smjpegenc.c.

◆ smjpeg_write_trailer()

static int smjpeg_write_trailer ( AVFormatContext s)
static

Definition at line 114 of file smjpegenc.c.

Variable Documentation

◆ ff_smjpeg_muxer

const FFOutputFormat ff_smjpeg_muxer
Initial value:
= {
.p.name = "smjpeg",
.p.long_name = NULL_IF_CONFIG_SMALL("Loki SDL MJPEG"),
.priv_data_size = sizeof(SMJPEGMuxContext),
.p.audio_codec = AV_CODEC_ID_PCM_S16LE,
.p.video_codec = AV_CODEC_ID_MJPEG,
.p.subtitle_codec = AV_CODEC_ID_NONE,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH,
.write_header = smjpeg_write_header,
.write_packet = smjpeg_write_packet,
.write_trailer = smjpeg_write_trailer,
.p.codec_tag = (const AVCodecTag *const []){ ff_codec_smjpeg_video_tags, ff_codec_smjpeg_audio_tags, 0 },
}

Definition at line 132 of file smjpegenc.c.

AV_CODEC_ID_PCM_S16LE
@ AV_CODEC_ID_PCM_S16LE
Definition: codec_id.h:334
AVCodecTag
Definition: internal.h:42
SMJPEGMuxContext
Definition: smjpegenc.c:32
ff_codec_smjpeg_audio_tags
const AVCodecTag ff_codec_smjpeg_audio_tags[]
Definition: smjpeg.c:36
ff_codec_smjpeg_video_tags
const AVCodecTag ff_codec_smjpeg_video_tags[]
Definition: smjpeg.c:31
smjpeg_write_packet
static int smjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: smjpegenc.c:92
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:94
AV_CODEC_ID_MJPEG
@ AV_CODEC_ID_MJPEG
Definition: codec_id.h:59
AVFMT_GLOBALHEADER
#define AVFMT_GLOBALHEADER
Format wants global header.
Definition: avformat.h:478
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
FF_OFMT_FLAG_MAX_ONE_OF_EACH
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
Definition: mux.h:50
AVFMT_TS_NONSTRICT
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:491
smjpeg_write_header
static int smjpeg_write_header(AVFormatContext *s)
Definition: smjpegenc.c:36
smjpeg_write_trailer
static int smjpeg_write_trailer(AVFormatContext *s)
Definition: smjpegenc.c:114