lavc: G.723.1 encoder
Additional improvements by Michael Niedermayer <michaelni@gmx.at>. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
parent
165cc6fb9d
commit
f023d57d35
10 changed files with 1316 additions and 11 deletions
|
@ -26,6 +26,8 @@
|
|||
|
||||
#include "avcodec.h"
|
||||
#include "celp_math.h"
|
||||
#include "mathops.h"
|
||||
|
||||
#include "libavutil/common.h"
|
||||
|
||||
static const uint16_t exp2a[]=
|
||||
|
@ -86,3 +88,14 @@ int ff_log2_q15(uint32_t value)
|
|||
|
||||
return (power_int << 15) + value;
|
||||
}
|
||||
|
||||
int64_t ff_dot_product(const int16_t *a, const int16_t *b, int length)
|
||||
{
|
||||
int i;
|
||||
int64_t sum = 0;
|
||||
|
||||
for (i = 0; i < length; i++)
|
||||
sum += MUL16(a[i], b[i]);
|
||||
|
||||
return sum;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue