#include "libavutil/avassert.h"
#include "avcodec.h"
#include "libavutil/common.h"
Go to the source code of this file.
Data Structures | |
struct | EightSvxContext |
decoder context More... | |
Defines | |
#define | MAX_FRAME_SIZE 2048 |
Functions | |
static void | interleave_stereo (uint8_t *dst, const uint8_t *src, int size) |
Interleave samples in buffer containing all left channel samples at the beginning, and right channel samples at the end. | |
static int | delta_decode (int8_t *dst, const uint8_t *src, int src_size, int8_t val, const int8_t *table) |
Delta decode the compressed values in src, and put the resulting decoded n samples in dst. | |
static int | eightsvx_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) |
decode a frame | |
static av_cold int | eightsvx_decode_init (AVCodecContext *avctx) |
static av_cold int | eightsvx_decode_close (AVCodecContext *avctx) |
Variables | |
static const int8_t | fibonacci [16] = { -34, -21, -13, -8, -5, -3, -2, -1, 0, 1, 2, 3, 5, 8, 13, 21 } |
static const int8_t | exponential [16] = { -128, -64, -32, -16, -8, -4, -2, -1, 0, 1, 2, 4, 8, 16, 32, 64 } |
supports: fibonacci delta encoding : exponential encoding
For more information about the 8SVX format: http://netghost.narod.ru/gff/vendspec/iff/iff.txt http://sox.sourceforge.net/AudioFormats-11.html http://aminet.net/package/mus/misc/wavepak http://amigan.1emu.net/reg/8SVX.txt
Samples can be found here: http://aminet.net/mods/smpl/
Definition in file 8svx.c.
#define MAX_FRAME_SIZE 2048 |
Definition at line 59 of file 8svx.c.
Referenced by eightsvx_decode_frame(), g722_encode_init(), libopus_dec_decode(), and read_packet().
static int delta_decode | ( | int8_t * | dst, | |
const uint8_t * | src, | |||
int | src_size, | |||
int8_t | val, | |||
const int8_t * | table | |||
) | [static] |
Delta decode the compressed values in src, and put the resulting decoded n samples in dst.
val | starting value assumed by the delta sequence | |
table | delta sequence table |
Definition at line 88 of file 8svx.c.
Referenced by eightsvx_decode_frame().
static av_cold int eightsvx_decode_close | ( | AVCodecContext * | avctx | ) | [static] |
static int eightsvx_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | got_frame_ptr, | |||
AVPacket * | avpkt | |||
) | [static] |
static av_cold int eightsvx_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Interleave samples in buffer containing all left channel samples at the beginning, and right channel samples at the end.
Each sample is assumed to be in signed 8-bit format.
size | the size in bytes of the dst and src buffer |
Definition at line 68 of file 8svx.c.
Referenced by eightsvx_decode_frame().
const int8_t exponential[16] = { -128, -64, -32, -16, -8, -4, -2, -1, 0, 1, 2, 4, 8, 16, 32, 64 } [static] |
const int8_t fibonacci[16] = { -34, -21, -13, -8, -5, -3, -2, -1, 0, 1, 2, 3, 5, 8, 13, 21 } [static] |