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

const 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

const 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),
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 129 of file ra144dec.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:42
AV_CODEC_ID_RA_144
@ AV_CODEC_ID_RA_144
Definition: codec_id.h:410
init
static int init
Definition: av_tx.c:47
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
RA144Context
Definition: ra144.h:40
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_CHANNEL_CONF
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
Definition: codec.h:109
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
ra144_decode_init
static av_cold int ra144_decode_init(AVCodecContext *avctx)
Definition: ra144dec.c:32