Mercurial > hg > audiodb
diff audioDBws.h @ 354:4871a3ed9e36 pre_api
Added serialized feature query Web Service, server-side only, example Python script: QueryADB.py -v
author | mas01mc |
---|---|
date | Fri, 07 Nov 2008 12:48:26 +0000 |
parents | 100cf66a5825 |
children | add65705e655 |
line wrap: on
line diff
--- a/audioDBws.h Wed Oct 08 17:23:15 2008 +0000 +++ b/audioDBws.h Fri Nov 07 12:48:26 2008 +0000 @@ -47,6 +47,14 @@ unsigned int *Rlen; }; +struct adb__queryVector { + int dim; // dimensionality of the feature (d) + int __sizev; // l x d : + double *v; // pointer to query data + int __sizep; + double *p; +}; + struct adb__lisztResponse { struct adb__lisztResult result; }; @@ -61,3 +69,7 @@ int adb__query(xsd__string dbName, xsd__string qKey, xsd__string keyList, xsd__string timesFileName, xsd__string powerFileName, xsd__int qType, xsd__int qPos, xsd__int pointNN, xsd__int segNN, xsd__int segLen, xsd__double radius, xsd__double absolute_threshold, xsd__double relative_threshold, xsd__int exhaustive, xsd__int lsh_exact, struct adb__queryResponse &adbQueryResponse); int adb__sequenceQueryByKey(xsd__string dbName,xsd__string trackKey, xsd__string featureFileName, xsd__int queryType,xsd__string trackFileName,xsd__string timesFileName,xsd__int queryPoint,xsd__int pointNN,xsd__int trackNN,xsd__int sequenceLength,xsd__double radius,xsd__double absolute_threshold,xsd__int usingQueryPoint,xsd__int lsh_exact,struct adb__queryResponse &adbQueryResponse); + +// Query an audioDB database by vector (serialized), queryKey/featureFileName is here replaced with qVector +int adb__shingleQuery(xsd__string dbName, struct adb__queryVector qVector, xsd__string keyList, xsd__string timesFileName, xsd__int queryType, xsd__int queryPos, xsd__int pointNN, xsd__int trackNN, xsd__int sequenceLength, xsd__double radius, xsd__double absolute_threshold, xsd__double relative_threshold, xsd__int exhaustive, xsd__int lsh_exact, struct adb__queryResponse &adbQueryResponse); +