mirror of
https://github.com/darksaid98/mediaplex.git
synced 2026-12-03 22:16:48 +00:00
chore: update
This commit is contained in:
1 parent
345a8c44ca
commit
71b3dc90ee
136 files changed
+3928
-2157
No files matched your search
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
tests = [
|
||||
'test_unit_types',
|
||||
'test_unit_mathops',
|
||||
'test_unit_entropy',
|
||||
'test_unit_laplace',
|
||||
'test_unit_dft',
|
||||
'test_unit_mdct',
|
||||
'test_unit_rotation',
|
||||
'test_unit_cwrs32',
|
||||
]
|
||||
|
||||
foreach test_name : tests
|
||||
exe = executable(test_name, '@[email protected]'.format(test_name),
|
||||
include_directories : opus_includes,
|
||||
link_with : [celt_lib, celt_static_libs],
|
||||
dependencies : libm,
|
||||
install : false)
|
||||
test(test_name, exe)
|
||||
endforeach
|
||||
+2
-1
@@ -144,8 +144,9 @@ void test1d(int nfft,int isinverse,int arch)
|
||||
|
||||
int main(int argc,char ** argv)
|
||||
{
|
||||
int arch;
|
||||
ALLOC_STACK;
|
||||
int arch = opus_select_arch();
|
||||
arch = opus_select_arch();
|
||||
|
||||
if (argc>1) {
|
||||
int k;
|
||||
|
||||
+2
-2
@@ -104,7 +104,7 @@ int main(int _argc,char **_argv){
|
||||
nbits=ec_tell_frac(&enc);
|
||||
ec_enc_done(&enc);
|
||||
fprintf(stderr,
|
||||
"Encoded %0.2lf bits of entropy to %0.2lf bits (%0.3lf%% wasted).\n",
|
||||
"Encoded %0.2f bits of entropy to %0.2f bits (%0.3f%% wasted).\n",
|
||||
entropy,ldexp(nbits,-3),100*(nbits-ldexp(entropy,3))/nbits);
|
||||
fprintf(stderr,"Packed to %li bytes.\n",(long)ec_range_bytes(&enc));
|
||||
ec_dec_init(&dec,ptr,DATA_SIZE);
|
||||
@@ -129,7 +129,7 @@ int main(int _argc,char **_argv){
|
||||
nbits2=ec_tell_frac(&dec);
|
||||
if(nbits!=nbits2){
|
||||
fprintf(stderr,
|
||||
"Reported number of bits used was %0.2lf, should be %0.2lf.\n",
|
||||
"Reported number of bits used was %0.2f, should be %0.2f.\n",
|
||||
ldexp(nbits2,-3),ldexp(nbits,-3));
|
||||
ret=-1;
|
||||
}
|
||||
|
||||
+3
-3
@@ -143,7 +143,7 @@ void testbitexactlog2tan(void)
|
||||
void testlog2(void)
|
||||
{
|
||||
float x;
|
||||
for (x=0.001;x<1677700.0;x+=(x/8.0))
|
||||
for (x=0.001f;x<1677700.0;x+=(x/8.0))
|
||||
{
|
||||
float error = fabs((1.442695040888963387*log(x))-celt_log2(x));
|
||||
if (error>0.0009)
|
||||
@@ -157,7 +157,7 @@ void testlog2(void)
|
||||
void testexp2(void)
|
||||
{
|
||||
float x;
|
||||
for (x=-11.0;x<24.0;x+=0.0007)
|
||||
for (x=-11.0;x<24.0;x+=0.0007f)
|
||||
{
|
||||
float error = fabs(x-(1.442695040888963387*log(celt_exp2(x))));
|
||||
if (error>0.0002)
|
||||
@@ -171,7 +171,7 @@ void testexp2(void)
|
||||
void testexp2log2(void)
|
||||
{
|
||||
float x;
|
||||
for (x=-11.0;x<24.0;x+=0.0007)
|
||||
for (x=-11.0;x<24.0;x+=0.0007f)
|
||||
{
|
||||
float error = fabs(x-(celt_log2(celt_exp2(x))));
|
||||
if (error>0.001)
|
||||
|
||||
+2
-1
@@ -184,8 +184,9 @@ void test1d(int nfft,int isinverse,int arch)
|
||||
|
||||
int main(int argc,char ** argv)
|
||||
{
|
||||
int arch;
|
||||
ALLOC_STACK;
|
||||
int arch = opus_select_arch();
|
||||
arch = opus_select_arch();
|
||||
|
||||
if (argc>1) {
|
||||
int k;
|
||||
|
||||
Reference in new issue
Block a user