FFmpeg
Loading...
Searching...
No Matches
paf.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/mem.h"
#include "libavcodec/paf.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  PAFDemuxContext
 

Macros

#define MAGIC   "Packed Animation File V1.0\n(c) 1992-96 Amazing Studio\x0a\x1a"
 

Functions

static int read_probe (const AVProbeData *p)
 
static int read_close (AVFormatContext *s)
 
static int read_table (AVFormatContext *s, uint32_t *table, uint32_t count)
 
static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_paf_demuxer
 

Macro Definition Documentation

◆ MAGIC

#define MAGIC   "Packed Animation File V1.0\n(c) 1992-96 Amazing Studio\x0a\x1a"

Definition at line 29 of file paf.c.

Function Documentation

◆ read_probe()

static int read_probe ( const AVProbeData * p)
static

Definition at line 58 of file paf.c.

◆ read_close()

static int read_close ( AVFormatContext * s)
static

Definition at line 66 of file paf.c.

◆ read_table()

static int read_table ( AVFormatContext * s,
uint32_t * table,
uint32_t count )
static

Definition at line 80 of file paf.c.

Referenced by read_header().

◆ read_header()

static int read_header ( AVFormatContext * s)
static

Definition at line 94 of file paf.c.

◆ read_packet()

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

Definition at line 202 of file paf.c.

Variable Documentation

◆ ff_paf_demuxer

const FFInputFormat ff_paf_demuxer
Initial value:
= {
.p.name = "paf",
.p.long_name = NULL_IF_CONFIG_SMALL("Amazing Studio Packed Animation File"),
.priv_data_size = sizeof(PAFDemuxContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
}
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
#define FF_INFMT_FLAG_INIT_CLEANUP
For an FFInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition demux.h:35
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
static av_cold int read_close(AVFormatContext *ctx)
Definition libcdio.c:143

Definition at line 270 of file paf.c.