|
FFmpeg
|
ADPCM decoders Features and limitations: More...
#include "config_components.h"#include "avcodec.h"#include "get_bits.h"#include "bytestream.h"#include "adpcm.h"#include "adpcm_data.h"#include "codec_internal.h"#include "decode.h"#include "libavutil/attributes.h"Go to the source code of this file.
Data Structures | |
| struct | ADPCMDecodeContext |
Macros | |
| #define | CASE_0(codec_id, ...) |
| #define | CASE_1(codec_id, ...) |
| #define | CASE_2(enabled, codec_id, ...) |
| #define | CASE_3(config, codec_id, ...) |
| #define | CASE(codec, ...) |
| #define | DK3_GET_NEXT_NIBBLE() |
| #define | ADPCM_DECODER_0(id_, name_, long_name_) |
| #define | ADPCM_DECODER_1(id_, name_, long_name_) |
| #define | ADPCM_DECODER_2(enabled, codec_id, name, long_name) |
| #define | ADPCM_DECODER_3(config, codec_id, name, long_name) |
| #define | ADPCM_DECODER(codec, name, long_name) |
Functions | |
| static void | adpcm_flush (AVCodecContext *avctx) |
| static av_cold int | adpcm_decode_init (AVCodecContext *avctx) |
| static int16_t | adpcm_agm_expand_nibble (ADPCMChannelStatus *c, int8_t nibble) |
| static int16_t | adpcm_ima_escape_expand_nibble (ADPCMChannelStatus *c, int8_t nibble) |
| static int16_t | adpcm_ima_expand_nibble (ADPCMChannelStatus *c, int8_t nibble, int shift) |
| static int16_t | adpcm_ima_alp_expand_nibble (ADPCMChannelStatus *c, int8_t nibble, int shift) |
| static int16_t | adpcm_ima_mtf_expand_nibble (ADPCMChannelStatus *c, int nibble) |
| static int16_t | adpcm_ima_cunning_expand_nibble (ADPCMChannelStatus *c, int8_t nibble) |
| static int16_t | adpcm_ima_wav_expand_nibble (ADPCMChannelStatus *c, GetBitContext *gb, int bps) |
| int16_t | ff_adpcm_ima_qt_expand_nibble (ADPCMChannelStatus *c, int nibble) |
| static void | decode_adpcm_ima_hvqm2 (AVCodecContext *avctx, int16_t *outbuf, int samples_to_do, int frame_format, GetByteContext *gb) |
| static void | decode_adpcm_ima_hvqm4 (AVCodecContext *avctx, int16_t *outbuf, int samples_to_do, int frame_format, GetByteContext *gb) |
| static int16_t | adpcm_ms_expand_nibble (ADPCMChannelStatus *c, int nibble) |
| static int16_t | adpcm_ima_oki_expand_nibble (ADPCMChannelStatus *c, int nibble) |
| static int16_t | adpcm_ct_expand_nibble (ADPCMChannelStatus *c, int8_t nibble) |
| static int16_t | adpcm_sbpro_expand_nibble (ADPCMChannelStatus *c, int8_t nibble, int size, int shift) |
| static int16_t | adpcm_yamaha_expand_nibble (ADPCMChannelStatus *c, uint8_t nibble) |
| static int16_t | adpcm_mtaf_expand_nibble (ADPCMChannelStatus *c, uint8_t nibble) |
| static int16_t | adpcm_circus_expand_nibble (ADPCMChannelStatus *c, uint8_t nibble) |
| static int16_t | adpcm_zork_expand_nibble (ADPCMChannelStatus *c, uint8_t nibble) |
| static int | xa_decode (AVCodecContext *avctx, int16_t *out0, int16_t *out1, const uint8_t *in, ADPCMChannelStatus *left, ADPCMChannelStatus *right, int channels, int sample_offset) |
| static void | adpcm_swf_decode (AVCodecContext *avctx, const uint8_t *buf, int buf_size, int16_t *samples) |
| int16_t | ff_adpcm_argo_expand_nibble (ADPCMChannelStatus *cs, int nibble, int shift, int flag) |
| static int | adpcm_sanyo_expand3 (ADPCMChannelStatus *c, int bits) |
| static int | adpcm_sanyo_expand4 (ADPCMChannelStatus *c, int bits) |
| static int | adpcm_sanyo_expand5 (ADPCMChannelStatus *c, int bits) |
| static int | get_nb_samples (AVCodecContext *avctx, GetByteContext *gb, int buf_size, int *coded_samples, int *approx_nb_samples) |
| Get the number of samples (per channel) that will be decoded from the packet. | |
| static int | adpcm_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) |
Variables | |
| static const int8_t | xa_adpcm_table [5][2] |
| static const int16_t | afc_coeffs [2][16] |
| static const int16_t | ea_adpcm_table [] |
| static const int8_t | ima_cunning_index_table [9] |
| static const int16_t | ima_cunning_step_table [61] |
| static const int8_t | adpcm_index_table2 [4] |
| static const int8_t | adpcm_index_table3 [8] |
| static const int8_t | adpcm_index_table5 [32] |
| static const int8_t *const | adpcm_index_tables [4] |
| static const int16_t | mtaf_stepsize [32][16] |
| static const int16_t | oki_step_table [49] |
| static const int8_t | swf_index_tables [4][16] |
| static const int8_t | zork_index_table [8] |
| static const int8_t | mtf_index_table [16] |
ADPCM decoders Features and limitations:
Reference documents: http://wiki.multimedia.cx/index.php?title=Category:ADPCM_Audio_Codecs http://www.pcisys.net/~melanson/codecs/simpleaudio.html [dead] http://www.geocities.com/SiliconValley/8682/aud3.txt [dead] http://openquicktime.sourceforge.net/ XAnim sources (xa_codec.c) http://xanim.polter.net/ http://www.cs.ucla.edu/~leec/mediabench/applications.html [dead] SoX source code http://sox.sourceforge.net/
CD-ROM XA: http://ku-www.ss.titech.ac.jp/~yatsushi/xaadpcm.html [dead] vagpack & depack http://homepages.compuserve.de/bITmASTER32/psx-index.html [dead] readstr http://www.geocities.co.jp/Playtown/2004/
Definition in file adpcm.c.
| #define CASE_2 | ( | enabled, | |
| codec_id, | |||
| ... ) |
| #define CASE_3 | ( | config, | |
| codec_id, | |||
| ... ) |
| #define CASE | ( | codec, | |
| ... ) |
Definition at line 80 of file adpcm.c.
Referenced by adpcm_decode_frame(), and get_nb_samples().
| #define DK3_GET_NEXT_NIBBLE | ( | ) |
Referenced by adpcm_decode_frame().
| #define ADPCM_DECODER_1 | ( | id_, | |
| name_, | |||
| long_name_ ) |
| #define ADPCM_DECODER | ( | codec, | |
| name, | |||
| long_name ) |
|
static |
Definition at line 2908 of file adpcm.c.
Referenced by adpcm_decode_init().
|
static |
|
inlinestatic |
Definition at line 380 of file adpcm.c.
Referenced by adpcm_decode_frame().
|
inlinestatic |
|
inlinestatic |
Definition at line 447 of file adpcm.c.
Referenced by adpcm_decode_frame().
|
inlinestatic |
Definition at line 473 of file adpcm.c.
Referenced by adpcm_decode_frame().
|
inlinestatic |
|
inlinestatic |
Definition at line 512 of file adpcm.c.
Referenced by adpcm_decode_frame().
|
inlinestatic |
Definition at line 532 of file adpcm.c.
Referenced by adpcm_decode_frame().
| int16_t ff_adpcm_ima_qt_expand_nibble | ( | ADPCMChannelStatus * | c, |
| int | nibble ) |
Definition at line 557 of file adpcm.c.
Referenced by adpcm_decode_frame(), decode_adpcm_ima_hvqm2(), decode_adpcm_ima_hvqm4(), and decode_frame().
|
static |
Definition at line 583 of file adpcm.c.
Referenced by adpcm_decode_frame().
|
static |
Definition at line 620 of file adpcm.c.
Referenced by adpcm_decode_frame().
|
inlinestatic |
Definition at line 663 of file adpcm.c.
Referenced by adpcm_decode_frame().
|
inlinestatic |
Definition at line 682 of file adpcm.c.
Referenced by adpcm_decode_frame().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 758 of file adpcm.c.
Referenced by adpcm_decode_frame().
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
| int16_t ff_adpcm_argo_expand_nibble | ( | ADPCMChannelStatus * | cs, |
| int | nibble, | ||
| int | shift, | ||
| int | flag ) |
Definition at line 969 of file adpcm.c.
Referenced by adpcm_encode_frame().
|
static |
|
static |
|
static |
|
static |
Get the number of samples (per channel) that will be decoded from the packet.
In one case, this is actually the maximum number of samples possible to decode with the given buf_size.
| [out] | coded_samples | set to the number of samples as coded in the packet, or 0 if the codec does not encode the number of samples in each frame. |
| [out] | approx_nb_samples | set to non-zero if the number of samples returned is an approximation. |
Definition at line 1163 of file adpcm.c.
Referenced by adpcm_decode_frame().
|
static |
|
static |
Definition at line 84 of file adpcm.c.
Referenced by xa_decode().
|
static |
|
static |
|
static |
Definition at line 111 of file adpcm.c.
Referenced by adpcm_ima_cunning_expand_nibble().
|
static |
Definition at line 121 of file adpcm.c.
Referenced by adpcm_ima_cunning_expand_nibble().
|
static |
|
static |
|
static |
|
static |
Definition at line 145 of file adpcm.c.
Referenced by adpcm_ima_wav_expand_nibble().
|
static |
Definition at line 152 of file adpcm.c.
Referenced by adpcm_mtaf_expand_nibble().
|
static |
Definition at line 219 of file adpcm.c.
Referenced by adpcm_ima_oki_expand_nibble().
|
static |
Definition at line 228 of file adpcm.c.
Referenced by adpcm_swf_decode().
|
static |
Definition at line 235 of file adpcm.c.
Referenced by adpcm_zork_expand_nibble().
|
static |
Definition at line 239 of file adpcm.c.
Referenced by adpcm_ima_mtf_expand_nibble().