FFmpeg
Functions | Variables
ra144dec.c File Reference
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.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, void *data, int *got_frame_ptr, AVPacket *avpkt)
 Uncompress one block (20 bytes -> 160*2 bytes). More...
 

Variables

AVCodec ff_ra_144_decoder
 

Function Documentation

◆ ra144_decode_init()

static av_cold int ra144_decode_init ( AVCodecContext avctx)
static

Definition at line 32 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 49 of file ra144dec.c.

Referenced by ra144_decode_frame().

◆ ra144_decode_frame()

static int ra144_decode_frame ( AVCodecContext avctx,
void *  data,
int got_frame_ptr,
AVPacket avpkt 
)
static

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

Definition at line 62 of file ra144dec.c.

Variable Documentation

◆ ff_ra_144_decoder

AVCodec ff_ra_144_decoder
Initial value:
= {
.name = "real_144",
.long_name = NULL_IF_CONFIG_SMALL("RealAudio 1.0 (14.4K)"),
.priv_data_size = sizeof(RA144Context),
.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 129 of file ra144dec.c.

init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
AV_CODEC_ID_RA_144
@ AV_CODEC_ID_RA_144
Definition: avcodec.h:551
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
RA144Context
Definition: ra144.h:37
ra144_decode_frame
static int ra144_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Uncompress one block (20 bytes -> 160*2 bytes).
Definition: ra144dec.c:62
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:981
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:188
ra144_decode_init
static av_cold int ra144_decode_init(AVCodecContext *avctx)
Definition: ra144dec.c:32