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

Deluxe Paint Animation demuxer. More...

#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "demux.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.
 
#define LPF_TAG   MKTAG('L','P','F',' ')
 
#define ANIM_TAG   MKTAG('A','N','I','M')
 

Functions

static int probe (const 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

const FFInputFormat ff_anm_demuxer
 

Detailed Description

Deluxe Paint Animation demuxer.

Definition in file anm.c.

Macro Definition Documentation

◆ MAX_PAGES

#define MAX_PAGES   256

Deluxe Paint hardcoded value.

Definition at line 42 of file anm.c.

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

◆ LPF_TAG

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

Definition at line 48 of file anm.c.

Referenced by probe().

◆ ANIM_TAG

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

Definition at line 49 of file anm.c.

Referenced by probe(), and read_header().

Function Documentation

◆ probe()

static int probe ( const AVProbeData * p)
static

Definition at line 51 of file anm.c.

◆ find_record()

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

Definition at line 64 of file anm.c.

Referenced by read_header(), and read_packet().

◆ read_header()

static int read_header ( AVFormatContext * s)
static

Definition at line 80 of file anm.c.

◆ read_packet()

static int read_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 166 of file anm.c.

Variable Documentation

◆ ff_anm_demuxer

const FFInputFormat ff_anm_demuxer
Initial value:
= {
.p.name = "anm",
.p.long_name = NULL_IF_CONFIG_SMALL("Deluxe Paint Animation"),
.priv_data_size = sizeof(AnmDemuxContext),
}
static int probe(const AVProbeData *p)
Definition act.c:39
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88

Definition at line 218 of file anm.c.