Mercurial > hg > audiodb
comparison audioDB.cpp @ 189:0280c3f57b6f no-big-mmap
remove stray dataBuf use in trackPointQuery
author | mas01cr |
---|---|
date | Fri, 16 Nov 2007 16:55:40 +0000 |
parents | 0caa733d48c5 |
children | f56c530750da |
comparison
equal
deleted
inserted
replaced
188:0caa733d48c5 | 189:0280c3f57b6f |
---|---|
1265 initTables(dbName, inFile); | 1265 initTables(dbName, inFile); |
1266 | 1266 |
1267 // For each input vector, find the closest pointNN matching output vectors and report | 1267 // For each input vector, find the closest pointNN matching output vectors and report |
1268 unsigned numVectors = (statbuf.st_size-sizeof(int))/(sizeof(double)*dbH->dim); | 1268 unsigned numVectors = (statbuf.st_size-sizeof(int))/(sizeof(double)*dbH->dim); |
1269 double* query = (double*)(indata+sizeof(int)); | 1269 double* query = (double*)(indata+sizeof(int)); |
1270 double* data = dataBuf; | 1270 double* data; |
1271 double* queryCopy = 0; | 1271 double* queryCopy = 0; |
1272 | 1272 |
1273 if( dbH->flags & O2_FLAG_L2NORM ){ | 1273 if( dbH->flags & O2_FLAG_L2NORM ){ |
1274 // Make a copy of the query | 1274 // Make a copy of the query |
1275 queryCopy = new double[numVectors*dbH->dim]; | 1275 queryCopy = new double[numVectors*dbH->dim]; |