Merge fast detector with analyzer and use it in CBuffer
This commit is contained in:
1 parent
b1bca37bf8
commit
c781f5427f
11 files changed
+141
-314
No files matched your search
@@ -9,7 +9,7 @@ float* short2FloatArray(short* in, size_t len){
|
||||
|
||||
float* result = static_cast<float*>(malloc(len * sizeof(float)));
|
||||
float* curOut = result;
|
||||
for(int i=0; i<len; i++){
|
||||
for(size_t i=0; i<len; i++){
|
||||
*curOut = *in / maxShort;
|
||||
curOut++;
|
||||
in++;
|
||||
@@ -22,7 +22,7 @@ double* short2DoubleArray(short* in, size_t len, bool scale = true){
|
||||
|
||||
double* result = static_cast<double*>(malloc(len * sizeof(double)));
|
||||
double* curOut = result;
|
||||
for(int i=0; i<len; i++){
|
||||
for(size_t i=0; i<len; i++){
|
||||
*curOut = *in;
|
||||
if(scale)
|
||||
*curOut /= maxShort;
|
||||
|
||||
Reference in new issue
Block a user