FFmpeg
Data Structures | Enumerations | Functions | Variables
wvdec.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"
#include "apetag.h"
#include "id3v1.h"
#include "wv.h"

Go to the source code of this file.

Data Structures

struct  WVContext
 

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, WV_DSD = 0x80000000
}
 

Functions

static int wv_probe (const AVProbeData *p)
 
static int wv_read_block_header (AVFormatContext *ctx, AVIOContext *pb)
 
static int wv_read_header (AVFormatContext *s)
 
static int wv_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const int wv_rates [16]
 
const FFInputFormat ff_wv_demuxer
 

Enumeration Type Documentation

◆ WV_FLAGS

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 
WV_DSD 

Definition at line 32 of file wvdec.c.

Function Documentation

◆ wv_probe()

static int wv_probe ( const AVProbeData p)
static

Definition at line 64 of file wvdec.c.

◆ wv_read_block_header()

static int wv_read_block_header ( AVFormatContext ctx,
AVIOContext pb 
)
static

Definition at line 79 of file wvdec.c.

Referenced by wv_read_header(), and wv_read_packet().

◆ wv_read_header()

static int wv_read_header ( AVFormatContext s)
static

Definition at line 234 of file wvdec.c.

◆ wv_read_packet()

static int wv_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 279 of file wvdec.c.

Variable Documentation

◆ wv_rates

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 47 of file wvdec.c.

Referenced by wv_read_block_header().

◆ ff_wv_demuxer

const FFInputFormat ff_wv_demuxer
Initial value:
= {
.p.name = "wv",
.p.long_name = NULL_IF_CONFIG_SMALL("WavPack"),
.p.flags = AVFMT_GENERIC_INDEX,
.priv_data_size = sizeof(WVContext),
}

Definition at line 332 of file wvdec.c.

wv_read_header
static int wv_read_header(AVFormatContext *s)
Definition: wvdec.c:234
wv_read_packet
static int wv_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: wvdec.c:279
wv_probe
static int wv_probe(const AVProbeData *p)
Definition: wvdec.c:64
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
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
WVContext
Definition: wvdec.c:52
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30