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

Bink demuxer. More...

#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.

Referenced by read_header().

◆ BINK_MAX_WIDTH

#define BINK_MAX_WIDTH   7680

Definition at line 47 of file bink.c.

Referenced by probe().

◆ BINK_MAX_HEIGHT

#define BINK_MAX_HEIGHT   4800

Definition at line 48 of file bink.c.

Referenced by probe().

◆ SMUSH_BLOCK_SIZE

#define SMUSH_BLOCK_SIZE   512

Definition at line 49 of file bink.c.

Referenced by probe(), and read_header().

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),
}
static int probe(const AVProbeData *p)
Definition act.c:39
#define AVFMT_SHOW_IDS
Show format stream IDs numbers.
Definition avformat.h:496
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
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition libcdio.c:151

Definition at line 327 of file bink.c.