FFmpeg
Data Structures | Functions | Variables
smjpegenc.c File Reference
#include "avformat.h"
#include "internal.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 35 of file smjpegenc.c.

◆ smjpeg_write_packet()

static int smjpeg_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 95 of file smjpegenc.c.

◆ smjpeg_write_trailer()

static int smjpeg_write_trailer ( AVFormatContext s)
static

Definition at line 117 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 135 of file smjpegenc.c.

AV_CODEC_ID_PCM_S16LE
@ AV_CODEC_ID_PCM_S16LE
Definition: codec_id.h:314
AVCodecTag
Definition: internal.h:51
SMJPEGMuxContext
Definition: smjpegenc.c:31
write_trailer
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:98
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:95
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
write_packet
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:727
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:474
AVFMT_TS_NONSTRICT
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition: avformat.h:485
smjpeg_write_header
static int smjpeg_write_header(AVFormatContext *s)
Definition: smjpegenc.c:35
smjpeg_write_trailer
static int smjpeg_write_trailer(AVFormatContext *s)
Definition: smjpegenc.c:117
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
write_header
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:347