Displaying 1 result from an estimated 1 matches for "codeentries".
2004 Feb 19
1
read codebook function
...ntf("Codebook sync pattern: %s\n", cb->sync);
// check if pattern is valid
if( strncmp(cb->sync, "BCV", 3) )
return 0;
// read codebook dimensions and entries, flag ordered
this->fReadBits1((int*) &cb->dimensions, 16);
this->fReadBits1((int*) &cb->codeEntries, 24);
this->fReadBits1((int*) &cb->flagOrdered, 1);
// assign memory
cb->length = new byte[cb->codeEntries];
cb->unused = new int[cb->codeEntries];
if( (cb->length==NULL) || (cb->unused==NULL) )
return 0;
memset(cb->length, 0, sizeof(byte)*cb->codeEntries);
mem...