FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
anm.c File Reference

Deluxe Paint Animation demuxer. More...

#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  Page
 
struct  AnmDemuxContext
 

Macros

#define MAX_PAGES   256
 Deluxe Paint hardcoded value. More...
 
#define LPF_TAG   MKTAG('L','P','F',' ')
 
#define ANIM_TAG   MKTAG('A','N','I','M')
 

Functions

static int probe (AVProbeData *p)
 
static int find_record (const AnmDemuxContext *anm, int record)
 
static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_anm_demuxer
 

Detailed Description

Deluxe Paint Animation demuxer.

Definition in file anm.c.

Macro Definition Documentation

#define MAX_PAGES   256

Deluxe Paint hardcoded value.

Definition at line 41 of file anm.c.

Referenced by find_record(), read_header(), and read_packet().

#define LPF_TAG   MKTAG('L','P','F',' ')

Definition at line 47 of file anm.c.

Referenced by probe().

#define ANIM_TAG   MKTAG('A','N','I','M')

Definition at line 48 of file anm.c.

Referenced by probe(), and read_header().

Function Documentation

static int probe ( AVProbeData p)
static

Definition at line 50 of file anm.c.

static int find_record ( const AnmDemuxContext anm,
int  record 
)
static
Returns
page containing the requested record or AVERROR_XXX

Definition at line 63 of file anm.c.

Referenced by read_header(), and read_packet().

static int read_header ( AVFormatContext s)
static

Definition at line 79 of file anm.c.

static int read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 170 of file anm.c.

Variable Documentation

AVInputFormat ff_anm_demuxer
Initial value:
= {
.name = "anm",
.long_name = NULL_IF_CONFIG_SMALL("Deluxe Paint Animation"),
.priv_data_size = sizeof(AnmDemuxContext),
}
static int read_header(AVFormatContext *s)
Definition: anm.c:79
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static int probe(AVProbeData *p)
Definition: anm.c:50
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: anm.c:170

Definition at line 222 of file anm.c.