EasyManuals Logo

THORLABS DCC1645C Description And Sdk Manual

THORLABS DCC1645C
513 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #323 background imageLoading...
Page #323 background image
© 2016 Thorlabs Scientific Imaging
4 Programming (SDK)
321
4.3.75 is_SetAllocatedImageMem
USB 2.0
USB 3.0
USB 2.0
USB 3.0
Syntax
INT is_SetAllocatedImageMem (HIDS hCam, INT width, INT height, INT bitspixel,
char* pcImgMem, int* pid)
Description
Using is_SetAllocatedImageMem(), you can make a memory allocated by a user the active
memory for storing digitized images in it. The allocated memory must be large enough and must
always be locked globally.
Depending on the selected image format you need more than one byte per pixel for image
memory:
unsigned int uBytesPerPixel = bitspixel/8;
if (uImageSize % bitspixel != 0)
{
uBytesPerPixel++;
}
unsigned int uImageSize = width * height * uBytesPerPixel;
You can call the is_AddToSequence() function to add a memory which was set using
is_SetAllocatedImageMem() to a sequence.
The address of this memory will be passed to the uc480 driver. For this, you can use the
is_SetAllocatedImageMem() function. In addition, you need to specify the image size, just as you
do when calling is_AllocImageMem(). The returned memory ID is required by other functions for
memory access.
The memory area must be removed from the driver management again using the
is_FreeImageMem() function. Please note that this does not release the memory. You then need to
make sure that the memory will be released again.
After is_SetAllocatedImageMem you must call is_SetImageMem or is_AddToSequence in order that the
image caption can be carried out in the image memory.
Input parameters
hCam
Camera handle
width
Image width
height
Image height
bitspixel
Image color depth (bits per pixel)
pcImgMem
Pointer to the starting address of the allocated
memory
pid
Returns the ID of this memory.
Return values
The image memory is already included in the sequence
and cannot be added again.
Invalid camera handle
Invalid pointer or invalid memory ID
One of the submitted parameters is outside the valid

Table of Contents

Other manuals for THORLABS DCC1645C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the THORLABS DCC1645C and is the answer not in the manual?

THORLABS DCC1645C Specifications

General IconGeneral
BrandTHORLABS
ModelDCC1645C
CategorySecurity Camera
LanguageEnglish

Related product manuals