|
FFmpeg
|
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | CELPMContext |
Functions | |
| void | ff_celp_math_init (CELPMContext *c) |
| Initialize CELPMContext. | |
| void | ff_celp_math_init_mips (CELPMContext *c) |
| int | ff_exp2 (uint16_t power) |
| fixed-point implementation of exp2(x) in [0; 1] domain. | |
| int | ff_log2_q15 (uint32_t value) |
| Calculate log2(x). | |
| static int | bidir_sal (int value, int offset) |
| Shift value left or right depending on sign of offset parameter. | |
| int64_t | ff_dot_product (const int16_t *a, const int16_t *b, int length) |
| returns the dot product of 2 int16_t vectors. | |
| float | ff_dot_productf (const float *a, const float *b, int length) |
| Return the dot product. | |
| void ff_celp_math_init | ( | CELPMContext * | c | ) |
Initialize CELPMContext.
Definition at line 120 of file celp_math.c.
Referenced by amrnb_decode_init(), and amrwb_decode_init().
| void ff_celp_math_init_mips | ( | CELPMContext * | c | ) |
Definition at line 85 of file celp_math_mips.c.
Referenced by ff_celp_math_init().
| int ff_exp2 | ( | uint16_t | power | ) |
fixed-point implementation of exp2(x) in [0; 1] domain.
| power | argument to exp2, 0 <= power <= 0x7fff |
Definition at line 48 of file celp_math.c.
Referenced by ff_acelp_decode_gain_code().
| int ff_log2_q15 | ( | uint32_t | value | ) |
Calculate log2(x).
| value | function argument, 0 < value <= 7fff ffff |
Definition at line 78 of file celp_math.c.
Referenced by ff_acelp_update_past_gain().
|
inlinestatic |
Shift value left or right depending on sign of offset parameter.
| value | value to shift |
| offset | shift offset |
Definition at line 71 of file celp_math.h.
Referenced by ff_acelp_decode_gain_code(), and ff_g729_adaptive_gain_control().
| int64_t ff_dot_product | ( | const int16_t * | a, |
| const int16_t * | b, | ||
| int | length | ||
| ) |
returns the dot product of 2 int16_t vectors.
| a | input data array |
| b | input data array |
| length | number of elements |
Definition at line 98 of file celp_math.c.
Referenced by dot_product(), and gen_acb_excitation().
| float ff_dot_productf | ( | const float * | a, |
| const float * | b, | ||
| int | length | ||
| ) |
Return the dot product.
| a | input data array |
| b | input data array |
| length | number of elements |
Definition at line 109 of file celp_math.c.
Referenced by ff_celp_math_init().
1.8.2