smjpegenc.c File Reference

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

#include "avformat.h"
#include "internal.h"
#include "riff.h"
#include "smjpeg.h"

Go to the source code of this file.

Data Structures

struct  SMJPEGMuxContext
 

Typedefs

typedef struct SMJPEGMuxContext 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

AVOutputFormat ff_smjpeg_muxer
 

Detailed Description

This is a muxer for Loki SDL Motion JPEG files.

Definition in file smjpegenc.c.

Typedef Documentation

Function Documentation

static int smjpeg_write_header ( AVFormatContext s)
static

Definition at line 36 of file smjpegenc.c.

static int smjpeg_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 96 of file smjpegenc.c.

static int smjpeg_write_trailer ( AVFormatContext s)
static

Definition at line 119 of file smjpegenc.c.

Variable Documentation

AVOutputFormat ff_smjpeg_muxer
Initial value:
= {
.name = "smjpeg",
.long_name = NULL_IF_CONFIG_SMALL("Loki SDL MJPEG"),
.priv_data_size = sizeof(SMJPEGMuxContext),
.audio_codec = CODEC_ID_PCM_S16LE,
.video_codec = CODEC_ID_MJPEG,
.codec_tag = (const AVCodecTag *const []){ ff_codec_smjpeg_video_tags, ff_codec_smjpeg_audio_tags, 0 },
}
static int write_header(AVFormatContext *s)
Definition: assenc.c:28
static int write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: assenc.c:58
static int smjpeg_write_trailer(AVFormatContext *s)
Definition: smjpegenc.c:119
static int smjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: smjpegenc.c:96
const AVCodecTag ff_codec_smjpeg_video_tags[]
Definition: smjpeg.c:31
struct SMJPEGMuxContext SMJPEGMuxContext
static int flags
Definition: log.c:34
static int write_trailer(AVFormatContext *s)
Definition: assenc.c:67
static int smjpeg_write_header(AVFormatContext *s)
Definition: smjpegenc.c:36
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
#define AVFMT_GLOBALHEADER
Format wants global header.
Definition: avformat.h:374
const AVCodecTag ff_codec_smjpeg_audio_tags[]
Definition: smjpeg.c:36

Definition at line 138 of file smjpegenc.c.