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

Go to the source code of this file.

Data Structures

struct  PPBnkHeader
 
struct  PPBnkTrack
 
struct  PPBnkCtxTrack
 
struct  PPBnkCtx
 

Macros

#define PP_BNK_MAX_READ_SIZE   4096
 
#define PP_BNK_FILE_HEADER_SIZE   20
 
#define PP_BNK_TRACK_SIZE   20
 

Enumerations

enum  { PP_BNK_FLAG_PERSIST = (1 << 0), PP_BNK_FLAG_MUSIC = (1 << 1), PP_BNK_FLAG_MASK = (PP_BNK_FLAG_PERSIST | PP_BNK_FLAG_MUSIC) }
 

Functions

static void pp_bnk_parse_header (PPBnkHeader *hdr, const uint8_t *buf)
 
static void pp_bnk_parse_track (PPBnkTrack *trk, const uint8_t *buf)
 
static int pp_bnk_probe (const AVProbeData *p)
 
static int pp_bnk_read_header (AVFormatContext *s)
 
static int pp_bnk_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int pp_bnk_read_close (AVFormatContext *s)
 

Variables

AVInputFormat ff_pp_bnk_demuxer
 

Macro Definition Documentation

#define PP_BNK_MAX_READ_SIZE   4096

Definition at line 28 of file pp_bnk.c.

Referenced by pp_bnk_read_packet().

#define PP_BNK_FILE_HEADER_SIZE   20

Definition at line 29 of file pp_bnk.c.

Referenced by pp_bnk_read_header().

#define PP_BNK_TRACK_SIZE   20

Definition at line 30 of file pp_bnk.c.

Referenced by pp_bnk_read_header().

Enumeration Type Documentation

anonymous enum
Enumerator
PP_BNK_FLAG_PERSIST 
PP_BNK_FLAG_MUSIC 
PP_BNK_FLAG_MASK 

Definition at line 60 of file pp_bnk.c.

Function Documentation

static void pp_bnk_parse_header ( PPBnkHeader hdr,
const uint8_t buf 
)
static

Definition at line 66 of file pp_bnk.c.

Referenced by pp_bnk_read_header().

static void pp_bnk_parse_track ( PPBnkTrack trk,
const uint8_t buf 
)
static

Definition at line 75 of file pp_bnk.c.

Referenced by pp_bnk_read_header().

static int pp_bnk_probe ( const AVProbeData p)
static

Definition at line 84 of file pp_bnk.c.

static int pp_bnk_read_header ( AVFormatContext s)
static

Definition at line 107 of file pp_bnk.c.

static int pp_bnk_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 228 of file pp_bnk.c.

static int pp_bnk_read_close ( AVFormatContext s)
static

Definition at line 275 of file pp_bnk.c.

Variable Documentation

AVInputFormat ff_pp_bnk_demuxer
Initial value:
= {
.name = "pp_bnk",
.long_name = NULL_IF_CONFIG_SMALL("Pro Pinball Series Soundbank"),
.priv_data_size = sizeof(PPBnkCtx),
}
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
static int pp_bnk_probe(const AVProbeData *p)
Definition: pp_bnk.c:84
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
static int pp_bnk_read_close(AVFormatContext *s)
Definition: pp_bnk.c:275
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:527
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static int pp_bnk_read_header(AVFormatContext *s)
Definition: pp_bnk.c:107
static int pp_bnk_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: pp_bnk.c:228
static int read_probe(const AVProbeData *pd)
Definition: jvdec.c:55

Definition at line 284 of file pp_bnk.c.