FFmpeg
Data Structures | Functions | Variables
smjpegdec.c File Reference
#include <inttypes.h>
#include "avformat.h"
#include "demux.h"
#include "internal.h"
#include "riff.h"
#include "smjpeg.h"

Go to the source code of this file.

Data Structures

struct  SMJPEGContext
 

Functions

static int smjpeg_probe (const AVProbeData *p)
 
static int smjpeg_read_header (AVFormatContext *s)
 
static int smjpeg_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_smjpeg_demuxer
 

Detailed Description

This is a demuxer for Loki SDL Motion JPEG files

Definition in file smjpegdec.c.

Function Documentation

◆ smjpeg_probe()

static int smjpeg_probe ( const AVProbeData p)
static

Definition at line 40 of file smjpegdec.c.

◆ smjpeg_read_header()

static int smjpeg_read_header ( AVFormatContext s)
static

Definition at line 47 of file smjpegdec.c.

◆ smjpeg_read_packet()

static int smjpeg_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 141 of file smjpegdec.c.

Variable Documentation

◆ ff_smjpeg_demuxer

const FFInputFormat ff_smjpeg_demuxer
Initial value:
= {
.p.name = "smjpeg",
.p.long_name = NULL_IF_CONFIG_SMALL("Loki SDL MJPEG"),
.p.extensions = "mjpg",
.p.flags = AVFMT_GENERIC_INDEX,
.priv_data_size = sizeof(SMJPEGContext),
}

Definition at line 184 of file smjpegdec.c.

smjpeg_read_packet
static int smjpeg_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: smjpegdec.c:141
smjpeg_read_header
static int smjpeg_read_header(AVFormatContext *s)
Definition: smjpegdec.c:47
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:41
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
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:106
SMJPEGContext
Definition: smjpegdec.c:35
smjpeg_probe
static int smjpeg_probe(const AVProbeData *p)
Definition: smjpegdec.c:40
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30