wv.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "avformat.h"
#include "internal.h"
#include "apetag.h"
#include "id3v1.h"
Include dependency graph for wv.c:

Go to the source code of this file.

Data Structures

struct  WVContext
 

Macros

#define WV_BLOCK_LIMIT   1047576
 
#define WV_EXTRA_SIZE   12
 
#define WV_START_BLOCK   0x0800
 
#define WV_END_BLOCK   0x1000
 
#define WV_SINGLE_BLOCK   (WV_START_BLOCK | WV_END_BLOCK)
 

Enumerations

enum  WV_FLAGS {
  WV_MONO = 0x0004, WV_HYBRID = 0x0008, WV_JOINT = 0x0010, WV_CROSSD = 0x0020,
  WV_HSHAPE = 0x0040, WV_FLOAT = 0x0080, WV_INT32 = 0x0100, WV_HBR = 0x0200,
  WV_HBAL = 0x0400, WV_MCINIT = 0x0800, WV_MCEND = 0x1000
}
 

Functions

static int wv_probe (AVProbeData *p)
 
static int wv_read_block_header (AVFormatContext *ctx, AVIOContext *pb, int append)
 
static int wv_read_header (AVFormatContext *s)
 
static int wv_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int wv_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 

Variables

static const int wv_rates [16]
 
AVInputFormat ff_wv_demuxer
 

Macro Definition Documentation

#define WV_BLOCK_LIMIT   1047576

Definition at line 31 of file wv.c.

Referenced by wv_read_block_header(), and wv_read_packet().

#define WV_END_BLOCK   0x1000

Definition at line 36 of file wv.c.

Referenced by wv_read_packet().

#define WV_EXTRA_SIZE   12

Definition at line 33 of file wv.c.

Referenced by wv_read_block_header(), and wv_read_packet().

#define WV_SINGLE_BLOCK   (WV_START_BLOCK | WV_END_BLOCK)

Definition at line 37 of file wv.c.

Referenced by wv_read_block_header().

#define WV_START_BLOCK   0x0800

Definition at line 35 of file wv.c.

Enumeration Type Documentation

enum WV_FLAGS
Enumerator
WV_MONO 
WV_HYBRID 
WV_JOINT 
WV_CROSSD 
WV_HSHAPE 
WV_FLOAT 
WV_INT32 
WV_HBR 
WV_HBAL 
WV_MCINIT 
WV_MCEND 

Definition at line 39 of file wv.c.

Function Documentation

static int wv_probe ( AVProbeData p)
static

Definition at line 71 of file wv.c.

static int wv_read_block_header ( AVFormatContext ctx,
AVIOContext pb,
int  append 
)
static

Definition at line 83 of file wv.c.

Referenced by wv_read_header(), and wv_read_packet().

static int wv_read_header ( AVFormatContext s)
static

Definition at line 229 of file wv.c.

static int wv_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 272 of file wv.c.

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

Definition at line 355 of file wv.c.

Variable Documentation

AVInputFormat ff_wv_demuxer
Initial value:
= {
.name = "wv",
.long_name = NULL_IF_CONFIG_SMALL("WavPack"),
.priv_data_size = sizeof(WVContext),
}
static int wv_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: wv.c:355
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:153
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int read_probe(AVProbeData *pd)
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:517
Definition: wv.c:58
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:114
static int wv_read_header(AVFormatContext *s)
Definition: wv.c:229
static int wv_probe(AVProbeData *p)
Definition: wv.c:71
static int wv_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: wv.c:272

Definition at line 389 of file wv.c.

const int wv_rates[16]
static
Initial value:
= {
6000, 8000, 9600, 11025, 12000, 16000, 22050, 24000,
32000, 44100, 48000, 64000, 88200, 96000, 192000, -1
}

Definition at line 53 of file wv.c.

Referenced by wv_read_block_header().