FFmpeg
Data Structures | Macros | Functions | Variables
apm.c File Reference
#include "avformat.h"
#include "internal.h"
#include "riff.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Data Structures

struct  APMState
 
struct  APMVS12Chunk
 

Macros

#define APM_FILE_HEADER_SIZE   20
 
#define APM_VS12_CHUNK_SIZE   76
 
#define APM_MAX_READ_SIZE   4096
 
#define APM_TAG_VS12   MKTAG('v', 's', '1', '2')
 
#define APM_TAG_DATA   MKTAG('D', 'A', 'T', 'A')
 

Functions

static void apm_parse_vs12 (APMVS12Chunk *vs12, const uint8_t *buf)
 
static int apm_probe (const AVProbeData *p)
 
static int apm_read_header (AVFormatContext *s)
 
static int apm_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_apm_demuxer
 

Macro Definition Documentation

◆ APM_FILE_HEADER_SIZE

#define APM_FILE_HEADER_SIZE   20

Definition at line 28 of file apm.c.

◆ APM_VS12_CHUNK_SIZE

#define APM_VS12_CHUNK_SIZE   76

Definition at line 29 of file apm.c.

◆ APM_MAX_READ_SIZE

#define APM_MAX_READ_SIZE   4096

Definition at line 30 of file apm.c.

◆ APM_TAG_VS12

#define APM_TAG_VS12   MKTAG('v', 's', '1', '2')

Definition at line 32 of file apm.c.

◆ APM_TAG_DATA

#define APM_TAG_DATA   MKTAG('D', 'A', 'T', 'A')

Definition at line 33 of file apm.c.

Function Documentation

◆ apm_parse_vs12()

static void apm_parse_vs12 ( APMVS12Chunk vs12,
const uint8_t buf 
)
static

Definition at line 55 of file apm.c.

Referenced by apm_read_header().

◆ apm_probe()

static int apm_probe ( const AVProbeData p)
static

Definition at line 75 of file apm.c.

◆ apm_read_header()

static int apm_read_header ( AVFormatContext s)
static

Definition at line 89 of file apm.c.

◆ apm_read_packet()

static int apm_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 161 of file apm.c.

Variable Documentation

◆ ff_apm_demuxer

AVInputFormat ff_apm_demuxer
Initial value:
= {
.name = "apm",
.long_name = NULL_IF_CONFIG_SMALL("Ubisoft Rayman 2 APM"),
.read_probe = apm_probe,
.read_header = apm_read_header,
.read_packet = apm_read_packet
}

Definition at line 182 of file apm.c.

apm_read_packet
static int apm_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: apm.c:161
apm_probe
static int apm_probe(const AVProbeData *p)
Definition: apm.c:75
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:188
apm_read_header
static int apm_read_header(AVFormatContext *s)
Definition: apm.c:89