FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
bink.c File Reference
#include <inttypes.h>
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  BinkDemuxContext
 

Macros

#define BINK_EXTRADATA_SIZE   1
 
#define BINK_MAX_AUDIO_TRACKS   256
 
#define BINK_MAX_WIDTH   7680
 
#define BINK_MAX_HEIGHT   4800
 
#define SMUSH_BLOCK_SIZE   512
 

Enumerations

enum  BinkAudFlags { BINK_AUD_16BITS = 0x4000, BINK_AUD_STEREO = 0x2000, BINK_AUD_USEDCT = 0x1000 }
 

Functions

static int probe (const AVProbeData *p)
 
static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 

Variables

const FFInputFormat ff_bink_demuxer
 

Detailed Description

Bink demuxer

Technical details here: http://wiki.multimedia.cx/index.php?title=Bink_Container

Definition in file bink.c.

Macro Definition Documentation

◆ BINK_EXTRADATA_SIZE

#define BINK_EXTRADATA_SIZE   1

Definition at line 45 of file bink.c.

◆ BINK_MAX_AUDIO_TRACKS

#define BINK_MAX_AUDIO_TRACKS   256

Definition at line 46 of file bink.c.

◆ BINK_MAX_WIDTH

#define BINK_MAX_WIDTH   7680

Definition at line 47 of file bink.c.

◆ BINK_MAX_HEIGHT

#define BINK_MAX_HEIGHT   4800

Definition at line 48 of file bink.c.

◆ SMUSH_BLOCK_SIZE

#define SMUSH_BLOCK_SIZE   512

Definition at line 49 of file bink.c.

Enumeration Type Documentation

◆ BinkAudFlags

Enumerator
BINK_AUD_16BITS 

prefer 16-bit output

BINK_AUD_STEREO 
BINK_AUD_USEDCT 

Definition at line 39 of file bink.c.

Function Documentation

◆ probe()

static int probe ( const AVProbeData p)
static

Definition at line 64 of file bink.c.

◆ read_header()

static int read_header ( AVFormatContext s)
static

Definition at line 86 of file bink.c.

◆ read_packet()

static int read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 236 of file bink.c.

◆ read_seek()

static int read_seek ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
)
static

Definition at line 306 of file bink.c.

Variable Documentation

◆ ff_bink_demuxer

const FFInputFormat ff_bink_demuxer
Initial value:
= {
.p.name = "bink",
.p.long_name = NULL_IF_CONFIG_SMALL("Bink"),
.p.flags = AVFMT_SHOW_IDS,
.priv_data_size = sizeof(BinkDemuxContext),
}

Definition at line 327 of file bink.c.

AVFMT_SHOW_IDS
#define AVFMT_SHOW_IDS
Show format stream IDs numbers.
Definition: avformat.h:477
BinkDemuxContext
Definition: bink.c:51
read_seek
static int read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: bink.c:306
probe
static int probe(const AVProbeData *p)
Definition: bink.c:64
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:94
read_header
static int read_header(AVFormatContext *s)
Definition: bink.c:86
read_packet
static int read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: bink.c:236
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30