FFmpeg
Loading...
Searching...
No Matches
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).
 

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),
}
#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
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
Definition codec.h:94
@ AV_CODEC_ID_RA_144
Definition codec_id.h:438
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201
static av_cold int ra144_decode_init(AVCodecContext *avctx)
Definition ra144dec.c:33
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

Definition at line 129 of file ra144dec.c.