FFmpeg
Data Structures | Macros | Functions
dsddec.c File Reference
#include "libavcodec/internal.h"
#include "avcodec.h"
#include "codec_internal.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 34 of file dsddec.c.

◆ DSD_SILENCE_REVERSED

#define DSD_SILENCE_REVERSED   0x96

Definition at line 35 of file dsddec.c.

◆ DSD_DECODER

#define DSD_DECODER (   id_,
  name_,
  long_name_ 
)
Value:
const FFCodec ff_ ## name_ ## _decoder = { \
.p.name = #name_, \
.p.long_name = NULL_IF_CONFIG_SMALL(long_name_), \
.p.type = AVMEDIA_TYPE_AUDIO, \
.p.id = AV_CODEC_ID_##id_, \
.init = decode_init, \
FF_CODEC_DECODE_CB(decode_frame), \
.p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP, \
AV_SAMPLE_FMT_NONE }, \
};

Definition at line 117 of file dsddec.c.

Function Documentation

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 42 of file dsddec.c.

◆ dsd_channel()

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

Definition at line 73 of file dsddec.c.

Referenced by decode_frame().

◆ decode_frame()

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

Definition at line 98 of file dsddec.c.

AV_SAMPLE_FMT_FLTP
@ AV_SAMPLE_FMT_FLTP
float, planar
Definition: samplefmt.h:66
FFCodec
Definition: codec_internal.h:118
FFCodec::p
AVCodec p
The public AVCodec.
Definition: codec_internal.h:122
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
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:117
AV_CODEC_CAP_SLICE_THREADS
#define AV_CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
Definition: codec.h:117
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Definition: dsddec.c:98
AVSampleFormat
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:55
AVCodec::name
const char * name
Name of the codec implementation.
Definition: codec.h:211
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: dsddec.c:42