ComputeVectorPQCode
API definition |
int ComputeVectorPQCode(VectorArrayData *baseData, const DiskPQParams *params, uint8_t *pqCode); |
|---|---|
Function |
Quantizes the base data by using params populated with PQ data, and writes the quantized data to the buffer to which pqCode points. |
Input |
VectorArrayData *baseData: pointer to an VectorArrayData instance populated with base data. It cannot be a null pointer. You can determine the size of the base data based on the memory limit. const DiskPQParams *params: pointer to a DiskPQParams instance populated with PQ parameters and trained PQ data. It cannot be a null pointer. |
Output |
uint8_t *pqCode: pointer to the returned compressed base vector. It cannot be a null pointer. |
Return value |
int: The return value 0 indicates a normal process; and -1 indicates an abnormal process, with error details output to cerr. |
Restrictions |
|