FFmpeg
Data Structures | Functions | Variables
dfpwmdec.c File Reference
#include "libavutil/internal.h"
#include "avcodec.h"
#include "codec_id.h"
#include "codec_internal.h"
#include "decode.h"

Go to the source code of this file.

Data Structures

struct  DFPWMState
 

Functions

static void au_decompress (DFPWMState *state, int fs, int len, uint8_t *outbuf, const uint8_t *inbuf)
 
static av_cold int dfpwm_dec_init (struct AVCodecContext *ctx)
 
static int dfpwm_dec_frame (struct AVCodecContext *ctx, AVFrame *frame, int *got_frame, struct AVPacket *packet)
 

Variables

const FFCodec ff_dfpwm_decoder
 

Detailed Description

DFPWM1a decoder

Definition in file dfpwmdec.c.

Function Documentation

◆ au_decompress()

static void au_decompress ( DFPWMState state,
int  fs,
int  len,
uint8_t *  outbuf,
const uint8_t *  inbuf 
)
static

Definition at line 41 of file dfpwmdec.c.

Referenced by dfpwm_dec_frame().

◆ dfpwm_dec_init()

static av_cold int dfpwm_dec_init ( struct AVCodecContext ctx)
static

Definition at line 84 of file dfpwmdec.c.

◆ dfpwm_dec_frame()

static int dfpwm_dec_frame ( struct AVCodecContext ctx,
AVFrame frame,
int *  got_frame,
struct AVPacket packet 
)
static

Definition at line 99 of file dfpwmdec.c.

Variable Documentation

◆ ff_dfpwm_decoder

const FFCodec ff_dfpwm_decoder
Initial value:
= {
.p.name = "dfpwm",
CODEC_LONG_NAME("DFPWM1a audio"),
.p.type = AVMEDIA_TYPE_AUDIO,
.priv_data_size = sizeof(DFPWMState),
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 123 of file dfpwmdec.c.

FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
dfpwm_dec_frame
static int dfpwm_dec_frame(struct AVCodecContext *ctx, AVFrame *frame, int *got_frame, struct AVPacket *packet)
Definition: dfpwmdec.c:99
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
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
dfpwm_dec_init
static av_cold int dfpwm_dec_init(struct AVCodecContext *ctx)
Definition: dfpwmdec.c:84
DFPWMState
Definition: dfpwmdec.c:34
AV_CODEC_ID_DFPWM
@ AV_CODEC_ID_DFPWM
Definition: codec_id.h:542