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 AVOutputFormat 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 AVOutputFormat ff_smjpeg_muxer
Initial value:
= {
.name = "smjpeg",
.long_name = NULL_IF_CONFIG_SMALL("Loki SDL MJPEG"),
.priv_data_size = sizeof(SMJPEGMuxContext),
.audio_codec = AV_CODEC_ID_PCM_S16LE,
.video_codec = AV_CODEC_ID_MJPEG,
.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:320
AVCodecTag
Definition: internal.h:50
SMJPEGMuxContext
Definition: smjpegenc.c:32
write_trailer
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:100
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:117
AV_CODEC_ID_MJPEG
@ AV_CODEC_ID_MJPEG
Definition: codec_id.h:57
AVFMT_GLOBALHEADER
#define AVFMT_GLOBALHEADER
Format wants global header.
Definition: avformat.h:480
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:118
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
write_header
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:346
write_packet
static int write_packet(OutputFile *of, OutputStream *ost, AVPacket *pkt)
Definition: ffmpeg_mux.c:90