FFmpeg  4.4.9
Data Structures | Macros | Functions | Variables
wvdec.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 "wv.h"

Go to the source code of this file.

Data Structures

struct  WVContext
 

Macros

#define WV_MONO   0x00000004U
 
#define WV_HYBRID   0x00000008U
 
#define WV_JOINT   0x00000010U
 
#define WV_CROSSD   0x00000020U
 
#define WV_HSHAPE   0x00000040U
 
#define WV_FLOAT   0x00000080U
 
#define WV_INT32   0x00000100U
 
#define WV_HBR   0x00000200U
 
#define WV_HBAL   0x00000400U
 
#define WV_MCINIT   0x00000800U
 
#define WV_MCEND   0x00001000U
 
#define WV_DSD   0x80000000U
 

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]
 
AVInputFormat ff_wv_demuxer
 

Macro Definition Documentation

◆ WV_MONO

#define WV_MONO   0x00000004U

Definition at line 31 of file wvdec.c.

◆ WV_HYBRID

#define WV_HYBRID   0x00000008U

Definition at line 32 of file wvdec.c.

◆ WV_JOINT

#define WV_JOINT   0x00000010U

Definition at line 33 of file wvdec.c.

◆ WV_CROSSD

#define WV_CROSSD   0x00000020U

Definition at line 34 of file wvdec.c.

◆ WV_HSHAPE

#define WV_HSHAPE   0x00000040U

Definition at line 35 of file wvdec.c.

◆ WV_FLOAT

#define WV_FLOAT   0x00000080U

Definition at line 36 of file wvdec.c.

◆ WV_INT32

#define WV_INT32   0x00000100U

Definition at line 37 of file wvdec.c.

◆ WV_HBR

#define WV_HBR   0x00000200U

Definition at line 38 of file wvdec.c.

◆ WV_HBAL

#define WV_HBAL   0x00000400U

Definition at line 39 of file wvdec.c.

◆ WV_MCINIT

#define WV_MCINIT   0x00000800U

Definition at line 40 of file wvdec.c.

◆ WV_MCEND

#define WV_MCEND   0x00001000U

Definition at line 41 of file wvdec.c.

◆ WV_DSD

#define WV_DSD   0x80000000U

Definition at line 42 of file wvdec.c.

Function Documentation

◆ wv_probe()

static int wv_probe ( const AVProbeData *  p)
static

Definition at line 61 of file wvdec.c.

◆ wv_read_block_header()

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

Definition at line 76 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 231 of file wvdec.c.

◆ wv_read_packet()

static int wv_read_packet ( AVFormatContext *  s,
AVPacket *  pkt 
)
static

Definition at line 277 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 44 of file wvdec.c.

Referenced by wv_read_block_header().

◆ ff_wv_demuxer

AVInputFormat ff_wv_demuxer
Initial value:
= {
.name = "wv",
.long_name = NULL_IF_CONFIG_SMALL("WavPack"),
.priv_data_size = sizeof(WVContext),
}
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:463
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
#define flags(name, subs,...)
Definition: cbs_av1.c:572
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:555
static int read_probe(const AVProbeData *pd)
Definition: jvdec.c:55
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
static int wv_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: wvdec.c:277
static int wv_read_header(AVFormatContext *s)
Definition: wvdec.c:231
static int wv_probe(const AVProbeData *p)
Definition: wvdec.c:61

Definition at line 330 of file wvdec.c.