PvAPI: Code for accessing the Ancillary Buffer data

// allocate memory for the Ancillary Buffer

GCamera.Frames[i].AncillaryBuffer = malloc(sizeof(UCHAR) * 48);

GCamera.Frames[i].AncillaryBufferSize = 48;

// enable Chunk Mode

PvAttrBooleanSet(GCamera.Handle, "ChunkModeActive", true );

// for your convenience (pointer arithmetic) assign the buffer to a variable

const UCHAR* lData = (const UCHAR*) pFrame->AncillaryBuffer;

// work with the data

printf("Byte 17 is %d, ", lData[16]);



Back to list