FFmpeg
Classes | Macros | Typedefs | Variables
dstdec.c File Reference

Direct Stream Transfer (DST) decoder ISO/IEC 14496-3 Part 3 Subpart 10: Technical description of lossless coding of oversampled audio. More...

#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "internal.h"
#include "get_bits.h"
#include "avcodec.h"
#include "golomb.h"
#include "mathops.h"
#include "dsd.h"

Classes

struct  ArithCoder
 
struct  Table
 
struct  DSTContext
 

Macros

#define DST_MAX_CHANNELS   6
 
#define DST_MAX_ELEMENTS   (2 * DST_MAX_CHANNELS)
 
#define DSD_FS44(sample_rate)   (sample_rate * 8 / 44100)
 
#define DST_SAMPLES_PER_FRAME(sample_rate)   (588 * DSD_FS44(sample_rate))
 
#define F(x)   filter[(x)][status[(x)]]
 

Typedefs

typedef struct ArithCoder ArithCoder
 
typedef struct Table Table
 
typedef struct DSTContext DSTContext
 

Variables

AVCodec ff_dst_decoder
 

Detailed Description

Direct Stream Transfer (DST) decoder ISO/IEC 14496-3 Part 3 Subpart 10: Technical description of lossless coding of oversampled audio.

Variable Documentation

§ ff_dst_decoder

AVCodec ff_dst_decoder
Initial value:
= {
.name = "dst",
.long_name = NULL_IF_CONFIG_SMALL("DST (Digital Stream Transfer)"),
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_DST,
.priv_data_size = sizeof(DSTContext),
.init = decode_init,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT,
AV_SAMPLE_FMT_NONE },
}
float
Definition: samplefmt.h:63
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: dstdec.c:67
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:58
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959