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 96 of file smjpegenc.c.

◆ smjpeg_write_trailer()

static int smjpeg_write_trailer ( AVFormatContext s)
static

Definition at line 118 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,
.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 136 of file smjpegenc.c.

AV_CODEC_ID_PCM_S16LE
@ AV_CODEC_ID_PCM_S16LE
Definition: codec_id.h:326
AVCodecTag
Definition: internal.h:49
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:96
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:115
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
AVFMT_TS_NONSTRICT
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:489
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:118