FFmpeg
Data Structures | Functions | Variables
mspdec.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  MSPContext
 

Functions

static int msp_probe (const AVProbeData *p)
 
static int msp_read_header (AVFormatContext *s)
 
static int msp_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_msp_demuxer
 

Detailed Description

Microsoft Paint (MSP) demuxer

Definition in file mspdec.c.

Function Documentation

◆ msp_probe()

static int msp_probe ( const AVProbeData p)
static

Definition at line 37 of file mspdec.c.

◆ msp_read_header()

static int msp_read_header ( AVFormatContext s)
static

Definition at line 51 of file mspdec.c.

◆ msp_read_packet()

static int msp_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 83 of file mspdec.c.

Variable Documentation

◆ ff_msp_demuxer

const FFInputFormat ff_msp_demuxer
Initial value:
= {
.p.name = "msp",
.p.long_name = NULL_IF_CONFIG_SMALL("Microsoft Paint (MSP))"),
.p.flags = AVFMT_NOTIMESTAMPS,
.read_probe = msp_probe,
.read_header = msp_read_header,
.read_packet = msp_read_packet,
.priv_data_size = sizeof(MSPContext),
}

Definition at line 110 of file mspdec.c.

AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:479
msp_probe
static int msp_probe(const AVProbeData *p)
Definition: mspdec.c:37
msp_read_header
static int msp_read_header(AVFormatContext *s)
Definition: mspdec.c:51
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:94
MSPContext
Definition: mspdec.c:33
msp_read_packet
static int msp_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: mspdec.c:83