|
FFmpeg
|
#include <limits.h>#include "libavutil/mem.h"#include "avcodec.h"#include "bswapdsp.h"#include "bytestream.h"#include "codec_internal.h"#include "decode.h"#include "get_bits.h"#include "golomb.h"Go to the source code of this file.
Data Structures | |
| struct | ShortenContext |
Macros | |
| #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_S8 1 |
| #define | TYPE_U8 2 |
| #define | TYPE_S16HL 3 |
| #define | TYPE_U16HL 4 |
| #define | TYPE_S16LH 5 |
| #define | TYPE_U16LH 6 |
| #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 int | init_offset (ShortenContext *s) |
| static int | decode_aiff_header (AVCodecContext *avctx, const uint8_t *header, int header_size) |
| static int | decode_wave_header (AVCodecContext *avctx, const uint8_t *header, int header_size) |
| static int | decode_subframe_lpc (ShortenContext *s, int command, int channel, int residual_size, int32_t coffset) |
| static int | read_header (ShortenContext *s) |
| static int | shorten_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) |
| static av_cold int | shorten_decode_close (AVCodecContext *avctx) |
Variables | |
| static const uint8_t | is_audio_command [10] = { 1, 1, 1, 1, 0, 0, 0, 1, 1, 0 } |
| indicates if the FN_* command is audio or non-audio More... | |
| static const int | fixed_coeffs [][3] |
| const FFCodec | ff_shorten_decoder |
Shorten decoder
Definition in file shorten.c.
|
static |
|
static |
Definition at line 129 of file shorten.c.
Referenced by read_header().
|
inlinestatic |
Definition at line 163 of file shorten.c.
Referenced by read_header(), and shorten_decode_frame().
|
static |
Definition at line 173 of file shorten.c.
Referenced by shorten_decode_frame().
|
static |
Definition at line 186 of file shorten.c.
Referenced by read_header().
|
static |
Definition at line 212 of file shorten.c.
Referenced by read_header().
|
static |
Definition at line 280 of file shorten.c.
Referenced by read_header().
|
static |
Definition at line 352 of file shorten.c.
Referenced by shorten_decode_frame().
|
static |
Definition at line 407 of file shorten.c.
Referenced by shorten_decode_frame().
|
static |
|
static |
|
static |
indicates if the FN_* command is audio or non-audio
Definition at line 81 of file shorten.c.
Referenced by shorten_decode_frame().
|
static |
Definition at line 345 of file shorten.c.
Referenced by decode_subframe_lpc().
| const FFCodec ff_shorten_decoder |
1.8.17