FFmpeg
Loading...
Searching...
No Matches
smjpegenc.c File Reference

This is a muxer for Loki SDL Motion JPEG files. More...

#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 },
}
#define AVFMT_TS_NONSTRICT
Format does not require strictly increasing timestamps, but they must still be monotonic.
Definition avformat.h:507
#define AVFMT_GLOBALHEADER
Format wants global header.
Definition avformat.h:497
@ AV_CODEC_ID_PCM_S16LE
Definition codec_id.h:330
@ AV_CODEC_ID_NONE
Definition codec_id.h:48
@ AV_CODEC_ID_MJPEG
Definition codec_id.h:57
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
#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
const AVCodecTag ff_codec_smjpeg_video_tags[]
Definition smjpeg.c:31
const AVCodecTag ff_codec_smjpeg_audio_tags[]
Definition smjpeg.c:36
static int smjpeg_write_header(AVFormatContext *s)
Definition smjpegenc.c:36
static int smjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition smjpegenc.c:92
static int smjpeg_write_trailer(AVFormatContext *s)
Definition smjpegenc.c:114

Definition at line 132 of file smjpegenc.c.