libavcodec/shorten.c File Reference
Shorten decoder.
More...
#include <limits.h>
#include "avcodec.h"
#include "get_bits.h"
#include "golomb.h"
Go to the source code of this file.
|
Data Structures |
struct | ShortenContext |
Defines |
#define | MAX_CHANNELS 8 |
#define | MAX_BLOCKSIZE 65535 |
#define | OUT_BUFFER_SIZE 16384 |
#define | ULONGSIZE 2 |
#define | WAVE_FORMAT_PCM 0x0001 |
#define | DEFAULT_BLOCK_SIZE 256 |
#define | TYPESIZE 4 |
#define | CHANSIZE 0 |
#define | LPCQSIZE 2 |
#define | ENERGYSIZE 3 |
#define | BITSHIFTSIZE 2 |
#define | TYPE_S16HL 3 |
#define | TYPE_S16LH 5 |
#define | NWRAP 3 |
#define | NSKIPSIZE 1 |
#define | LPCQUANT 5 |
#define | V2LPCQOFFSET (1 << LPCQUANT) |
#define | FNSIZE 2 |
#define | FN_DIFF0 0 |
#define | FN_DIFF1 1 |
#define | FN_DIFF2 2 |
#define | FN_DIFF3 3 |
#define | FN_QUIT 4 |
#define | FN_BLOCKSIZE 5 |
#define | FN_BITSHIFT 6 |
#define | FN_QLPC 7 |
#define | FN_ZERO 8 |
#define | FN_VERBATIM 9 |
#define | VERBATIM_CKSIZE_SIZE 5 |
#define | VERBATIM_BYTE_SIZE 8 |
#define | CANONICAL_HEADER_SIZE 44 |
Functions |
static av_cold int | shorten_decode_init (AVCodecContext *avctx) |
static int | allocate_buffers (ShortenContext *s) |
static unsigned int | get_uint (ShortenContext *s, int k) |
static void | fix_bitshift (ShortenContext *s, int32_t *buffer) |
static void | init_offset (ShortenContext *s) |
static int | get_le32 (GetBitContext *gb) |
static short | get_le16 (GetBitContext *gb) |
static int | decode_wave_header (AVCodecContext *avctx, uint8_t *header, int header_size) |
static int16_t * | interleave_buffer (int16_t *samples, int nchan, int blocksize, int32_t **buffer) |
static void | decode_subframe_lpc (ShortenContext *s, int channel, int residual_size, int pred_order) |
static int | shorten_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
static av_cold int | shorten_decode_close (AVCodecContext *avctx) |
static void | shorten_flush (AVCodecContext *avctx) |
Variables |
AVCodec | ff_shorten_decoder |
Detailed Description
Shorten decoder.
- Author:
- Jeff Muizelaar
Definition in file shorten.c.
Define Documentation
#define CANONICAL_HEADER_SIZE 44 |
#define DEFAULT_BLOCK_SIZE 256 |
#define MAX_BLOCKSIZE 65535 |
#define OUT_BUFFER_SIZE 16384 |
#define V2LPCQOFFSET (1 << LPCQUANT) |
#define VERBATIM_BYTE_SIZE 8 |
#define VERBATIM_CKSIZE_SIZE 5 |
#define WAVE_FORMAT_PCM 0x0001 |
Function Documentation
static void decode_subframe_lpc |
( |
ShortenContext * |
s, |
|
|
int |
channel, |
|
|
int |
residual_size, |
|
|
int |
pred_order | |
|
) |
| | [static] |
static int decode_wave_header |
( |
AVCodecContext * |
avctx, |
|
|
uint8_t * |
header, |
|
|
int |
header_size | |
|
) |
| | [static] |
static void fix_bitshift |
( |
ShortenContext * |
s, |
|
|
int32_t * |
buffer | |
|
) |
| | [static] |
static unsigned int get_uint |
( |
ShortenContext * |
s, |
|
|
int |
k | |
|
) |
| | [inline, static] |
static int16_t* interleave_buffer |
( |
int16_t * |
samples, |
|
|
int |
nchan, |
|
|
int |
blocksize, |
|
|
int32_t ** |
buffer | |
|
) |
| | [static] |
static av_cold int shorten_decode_close |
( |
AVCodecContext * |
avctx |
) |
[static] |
static int shorten_decode_frame |
( |
AVCodecContext * |
avctx, |
|
|
void * |
data, |
|
|
int * |
data_size, |
|
|
AVPacket * |
avpkt | |
|
) |
| | [static] |
static av_cold int shorten_decode_init |
( |
AVCodecContext * |
avctx |
) |
[static] |
Variable Documentation
Initial value:
{
"shorten",
AVMEDIA_TYPE_AUDIO,
CODEC_ID_SHORTEN,
sizeof(ShortenContext),
shorten_decode_init,
NULL,
shorten_decode_close,
shorten_decode_frame,
.flush= shorten_flush,
.long_name= NULL_IF_CONFIG_SMALL("Shorten"),
}
Definition at line 569 of file shorten.c.