FFmpeg
Functions | Variables
ra144dec.c File Reference
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"
#include "ra144.h"

Go to the source code of this file.

Functions

static av_cold int ra144_decode_init (AVCodecContext *avctx)
 
static void do_output_subblock (RA144Context *ractx, const int16_t *lpc_coefs, int gval, GetBitContext *gb)
 
static int ra144_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
 Uncompress one block (20 bytes -> 160*2 bytes). More...
 

Variables

const FFCodec ff_ra_144_decoder
 

Function Documentation

◆ ra144_decode_init()

static av_cold int ra144_decode_init ( AVCodecContext avctx)
static

Definition at line 33 of file ra144dec.c.

◆ do_output_subblock()

static void do_output_subblock ( RA144Context ractx,
const int16_t *  lpc_coefs,
int  gval,
GetBitContext gb 
)
static

Definition at line 50 of file ra144dec.c.

Referenced by ra144_decode_frame().

◆ ra144_decode_frame()

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

Uncompress one block (20 bytes -> 160*2 bytes).

Definition at line 63 of file ra144dec.c.

Variable Documentation

◆ ff_ra_144_decoder

const FFCodec ff_ra_144_decoder
Initial value:
= {
.p.name = "real_144",
CODEC_LONG_NAME("RealAudio 1.0 (14.4K)"),
.p.type = AVMEDIA_TYPE_AUDIO,
.priv_data_size = sizeof(RA144Context),
}

Definition at line 129 of file ra144dec.c.

AV_CODEC_ID_RA_144
@ AV_CODEC_ID_RA_144
Definition: codec_id.h:427
ra144_decode_frame
static int ra144_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Uncompress one block (20 bytes -> 160*2 bytes).
Definition: ra144dec.c:63
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:306
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:365
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
RA144Context
Definition: ra144.h:40
AV_CODEC_CAP_CHANNEL_CONF
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
Definition: codec.h:106
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
ra144_decode_init
static av_cold int ra144_decode_init(AVCodecContext *avctx)
Definition: ra144dec.c:33