FFmpeg
|
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/mem_internal.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "get_bits.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | DssSpSubframe |
struct | DssSpFrame |
struct | DssSpContext |
Macros | |
#define | SUBFRAMES 4 |
#define | PULSE_MAX 8 |
#define | DSS_SP_FRAME_SIZE 42 |
#define | DSS_SP_SAMPLE_COUNT (66 * SUBFRAMES) |
#define | DSS_SP_FORMULA(a, b, c) ((int)((((a) * (1 << 15)) + (b) * (unsigned)(c)) + 0x4000) >> 15) |
Functions | |
static av_cold int | dss_sp_decode_init (AVCodecContext *avctx) |
static void | dss_sp_unpack_coeffs (DssSpContext *p, const uint8_t *src) |
static void | dss_sp_unpack_filter (DssSpContext *p) |
static void | dss_sp_convert_coeffs (int32_t *lpc_filter, int32_t *coeffs) |
static void | dss_sp_add_pulses (int32_t *vector_buf, const struct DssSpSubframe *sf) |
static void | dss_sp_gen_exc (int32_t *vector, int32_t *prev_exc, int pitch_lag, int gain) |
static void | dss_sp_scale_vector (int32_t *vec, int bits, int size) |
static void | dss_sp_update_buf (int32_t *hist, int32_t *vector) |
static void | dss_sp_shift_sq_sub (const int32_t *filter_buf, int32_t *error_buf, int32_t *dst) |
static void | dss_sp_shift_sq_add (const int32_t *filter_buf, int32_t *audio_buf, int32_t *dst) |
static void | dss_sp_vec_mult (const int32_t *src, int32_t *dst, const int16_t *mult) |
static int | dss_sp_get_normalize_bits (int32_t *vector_buf, int16_t size) |
static int | dss_sp_vector_sum (DssSpContext *p, int size) |
static void | dss_sp_sf_synthesis (DssSpContext *p, int32_t lpc_filter, int32_t *dst, int size) |
static void | dss_sp_update_state (DssSpContext *p, int32_t *dst) |
static void | dss_sp_32to16bit (int16_t *dst, int32_t *src, int size) |
static int | dss_sp_decode_one_frame (DssSpContext *p, int16_t *abuf_dst, const uint8_t *abuf_src) |
static int | dss_sp_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) |
Variables | |
static const uint32_t | dss_sp_combinatorial_table [PULSE_MAX][72] |
static const int16_t | dss_sp_filter_cb [14][32] |
static const uint16_t | dss_sp_fixed_cb_gain [64] |
static const int16_t | dss_sp_pulse_val [8] |
static const uint16_t | binary_decreasing_array [] |
static const uint16_t | dss_sp_unc_decreasing_array [] |
static const uint16_t | dss_sp_adaptive_gain [] |
static const int32_t | dss_sp_sinc [67] |
const FFCodec | ff_dss_sp_decoder |
|
static |
|
static |
Definition at line 305 of file dss_sp.c.
Referenced by dss_sp_decode_one_frame().
|
static |
Definition at line 429 of file dss_sp.c.
Referenced by dss_sp_decode_one_frame().
Definition at line 437 of file dss_sp.c.
Referenced by dss_sp_decode_one_frame().
|
static |
Definition at line 462 of file dss_sp.c.
Referenced by dss_sp_decode_one_frame().
Definition at line 473 of file dss_sp.c.
Referenced by dss_sp_decode_one_frame().
Definition at line 493 of file dss_sp.c.
Referenced by dss_sp_sf_synthesis().
Definition at line 505 of file dss_sp.c.
Referenced by dss_sp_decode_one_frame().
|
static |
Definition at line 516 of file dss_sp.c.
Referenced by dss_sp_decode_one_frame(), and dss_sp_sf_synthesis().
|
static |
Definition at line 540 of file dss_sp.c.
Referenced by dss_sp_sf_synthesis().
Definition at line 562 of file dss_sp.c.
Referenced by dss_sp_sf_synthesis().
Definition at line 573 of file dss_sp.c.
Referenced by dss_sp_sf_synthesis().
|
static |
Definition at line 588 of file dss_sp.c.
Referenced by dss_sp_sf_synthesis().
|
static |
Definition at line 596 of file dss_sp.c.
Referenced by dss_sp_decode_one_frame().
|
static |
Definition at line 669 of file dss_sp.c.
Referenced by dss_sp_decode_one_frame().
Definition at line 698 of file dss_sp.c.
Referenced by dss_sp_decode_one_frame().
|
static |
Definition at line 706 of file dss_sp.c.
Referenced by dss_sp_decode_frame().
|
static |
|
static |
Definition at line 76 of file dss_sp.c.
Referenced by dss_sp_unpack_coeffs().
|
static |
Definition at line 175 of file dss_sp.c.
Referenced by dss_sp_unpack_filter().
|
static |
Definition at line 247 of file dss_sp.c.
Referenced by dss_sp_add_pulses().
|
static |
Definition at line 258 of file dss_sp.c.
Referenced by dss_sp_add_pulses().
|
static |
Definition at line 262 of file dss_sp.c.
Referenced by dss_sp_sf_synthesis().
|
static |
Definition at line 267 of file dss_sp.c.
Referenced by dss_sp_sf_synthesis().
|
static |
Definition at line 272 of file dss_sp.c.
Referenced by dss_sp_decode_one_frame().
|
static |
Definition at line 279 of file dss_sp.c.
Referenced by dss_sp_update_state().
const FFCodec ff_dss_sp_decoder |