comparison audioDB.h @ 129:f7eba8eb272c

Variable size databases, part 2: new --size argument on database creation; use it for the dbSize field. (Note that maximum use of this can be obtained on 32-bit platforms only by compiling with -D_FILE_OFFSET_BITS=64 or similar, otherwise 2^31 is an upper exclusive limit for off_t and hence for the lseek() call)
author mas01cr
date Fri, 19 Oct 2007 14:41:54 +0000
parents f789aa32382f
children 3d931368fab3
comparison
equal deleted inserted replaced
128:f789aa32382f 129:f7eba8eb272c
139 double* sNorm; 139 double* sNorm;
140 double* timesTable; 140 double* timesTable;
141 141
142 // Flags and parameters 142 // Flags and parameters
143 unsigned verbosity; // how much do we want to know? 143 unsigned verbosity; // how much do we want to know?
144 unsigned size; // given size (for creation)
144 unsigned queryType; // point queries default 145 unsigned queryType; // point queries default
145 unsigned pointNN; // how many point NNs ? 146 unsigned pointNN; // how many point NNs ?
146 unsigned trackNN; // how many track NNs ? 147 unsigned trackNN; // how many track NNs ?
147 unsigned sequenceLength; 148 unsigned sequenceLength;
148 unsigned sequenceHop; 149 unsigned sequenceHop;
218 dataBuf(0), \ 219 dataBuf(0), \
219 l2normTable(0), \ 220 l2normTable(0), \
220 qNorm(0), \ 221 qNorm(0), \
221 timesTable(0), \ 222 timesTable(0), \
222 verbosity(1), \ 223 verbosity(1), \
224 size(O2_DEFAULTDBSIZE), \
223 queryType(O2_POINT_QUERY), \ 225 queryType(O2_POINT_QUERY), \
224 pointNN(O2_DEFAULT_POINTNN), \ 226 pointNN(O2_DEFAULT_POINTNN), \
225 trackNN(O2_DEFAULT_TRACKNN), \ 227 trackNN(O2_DEFAULT_TRACKNN), \
226 sequenceLength(16), \ 228 sequenceLength(16), \
227 sequenceHop(1), \ 229 sequenceHop(1), \