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

Direct Stream Digital (DSD) decoder. More...

#include "libavutil/mem.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "dsd.h"

Go to the source code of this file.

Data Structures

struct  ThreadData
 Used for passing data between threads. More...
 

Macros

#define DSD_SILENCE   0x69
 
#define DSD_SILENCE_REVERSED   0x96
 
#define DSD_DECODER(id_, name_, long_name_)
 

Functions

static av_cold int decode_init (AVCodecContext *avctx)
 
static int dsd_channel (AVCodecContext *avctx, void *tdata, int j, int threadnr)
 
static int decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
 

Detailed Description

Direct Stream Digital (DSD) decoder.

Definition in file dsddec.c.

Macro Definition Documentation

◆ DSD_SILENCE

#define DSD_SILENCE   0x69

Definition at line 36 of file dsddec.c.

Referenced by decode_init().

◆ DSD_SILENCE_REVERSED

#define DSD_SILENCE_REVERSED   0x96

Definition at line 37 of file dsddec.c.

Referenced by decode_init().

◆ DSD_DECODER

#define DSD_DECODER ( id_,
name_,
long_name_ )
Value:
const FFCodec ff_ ## name_ ## _decoder = { \
.p.name = #name_, \
CODEC_LONG_NAME(long_name_), \
.p.type = AVMEDIA_TYPE_AUDIO, \
.p.id = AV_CODEC_ID_##id_, \
.init = decode_init, \
FF_CODEC_DECODE_CB(decode_frame), \
};
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
#define AV_CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
Definition codec.h:102
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201
static av_cold int decode_init(AVCodecContext *avctx)
Definition 4xm.c:998
static int decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition 4xm.c:837

Definition at line 120 of file dsddec.c.

Function Documentation

◆ decode_init()

static av_cold int decode_init ( AVCodecContext * avctx)
static

Definition at line 44 of file dsddec.c.

◆ dsd_channel()

static int dsd_channel ( AVCodecContext * avctx,
void * tdata,
int j,
int threadnr )
static

Definition at line 76 of file dsddec.c.

Referenced by decode_frame(), and wavpack_decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext * avctx,
AVFrame * frame,
int * got_frame_ptr,
AVPacket * avpkt )
static

Definition at line 101 of file dsddec.c.