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

DFPWM1a decoder. More...

#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,
}
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_DFPWM
Definition codec_id.h:549
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201
static int dfpwm_dec_frame(struct AVCodecContext *ctx, AVFrame *frame, int *got_frame, struct AVPacket *packet)
Definition dfpwmdec.c:99
static av_cold int dfpwm_dec_init(struct AVCodecContext *ctx)
Definition dfpwmdec.c:84

Definition at line 124 of file dfpwmdec.c.