SEGA CRI adx codecs.
More...
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "adx.h"
#include "get_bits.h"
#include "internal.h"
Go to the source code of this file.
static int adx_decode |
( |
ADXContext * |
c, |
|
|
int16_t * |
out, |
|
|
int |
offset, |
|
|
const uint8_t * |
in, |
|
|
int |
ch |
|
) |
| |
|
static |
Decode 32 samples from 18 bytes.
A 16-bit scalar value is applied to 32 residuals, which then have a 2nd-order LPC filter applied to it to form the output signal for a single channel.
Definition at line 65 of file adxdec.c.
Referenced by adx_decode_frame().
Initial value:= {
.name = "adpcm_adx",
}
static av_cold int adx_decode_init(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static void adx_decode_flush(AVCodecContext *avctx)
static int adx_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
static void flush(AVCodecContext *avctx)
AVSampleFormat
Audio sample formats.
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
static enum AVSampleFormat sample_fmts[]
Definition at line 177 of file adxdec.c.