AddChunkData
|
![]() ![]() ![]() |
[in] constant char* frame
|
Pointer to the beginning of the frame buffer (image data). Must not be NULL or empty
|
|
[in] constant char* data
|
Pointer to the chunk data field. Must not be NULL or empty.
|
|
[in] int length
|
Integer value specifying the size of chunk data in bytes.
|
|
[in] unsigned int chunkID
|
Integer value specifying the numerical ID of the chunk.
|
|
[in] unsigned int channelIndex
|
Index of the associated stream channel. Possible values are 0 or 1.
|
|
S_OK
|
Success
|
E_FAIL
|
Failure
|
|
|
|
m_pCamera->CreateChunkFeature (0xa8dc50a0, "ChunkTemperature", "ChunkDataControl", FEATURE_TYPE_FLOAT, 4, "Camera temperature");
|
.........
|
m_pCamera->LockFormat();
|
buffer=GenerateImageFrame();
|
data=GetVirtualTemperature();
|
m_pCamera->AddChunkData (buffer, (char*) data, 4, 0xa8dc50a0);
|
m_pCamera->AddChunkData (buffer, NULL, imageWidth*imageHeight*BytesPerPixel, 0);
|
m_pCamera->SendImage(buffer);
|
|