Spinnaker C
4.3.0.189
 
Functions
ImageList Access

The functions in this section provide access to information, objects, and functionality of image lists. This includes updating, size and image retrieval, and clearance. More...

Functions

SPINNAKERC_API spinImageListCreateEmpty (spinImageList *phImageList)
 Creates an empty image list (image lists created this way must be destroyed) More...
 
SPINNAKERC_API spinImageListDestroy (spinImageList hImageList)
 Destroys a image list. More...
 
SPINNAKERC_API spinImageListGetSize (spinImageList hImageList, size_t *pSize)
 Retrieves the number of images in an image list. More...
 
SPINNAKERC_API spinImageListGet (spinImageList hImageList, size_t index, spinImage *phImage)
 Retrieves a image from a image list using an index. More...
 
SPINNAKERC_API spinImageListClear (spinImageList hImageList)
 Clears a image list. More...
 
SPINNAKERC_API spinImageListRemove (spinImageList hImageList, size_t index)
 Removes a image from a image list using its index. More...
 
SPINNAKERC_API spinImageListAppend (spinImageList hImageListBase, spinImageList hImageListToAppend)
 Appends all the images from one image list to another. More...
 
SPINNAKERC_API spinImageListGetByPixelFormat (spinImageList hImageList, spinPixelFormatEnums pixelFormat, spinImage *phImage)
 Retrieves a image from a image list given its pixel format. More...
 
SPINNAKERC_API spinImageListGetByStreamIndex (spinImageList hImageList, uint64_t streamIndex, spinImage *phImage)
 Retrieves a image from a image list given its stream index. More...
 
SPINNAKERC_API spinImageListRemoveByPixelFormat (spinImageList hImageList, spinPixelFormatEnums pixelFormat)
 Removes a image from a image list using its pixel format. More...
 
SPINNAKERC_API spinImageListRemoveByStreamIndex (spinImageList hImageList, uint64_t streamIndex)
 Removes a image from a image list using its stream index. More...
 
SPINNAKERC_API spinImageListRelease (spinImageList hImageList)
 
SPINNAKERC_API spinImageListSave (spinImageList hImageList, const char *fileName)
 Saves an image list as an object to a file. More...
 
SPINNAKERC_API spinImageListLoad (spinImageList *phImageList, const char *fileName)
 Creates an image list object from file. More...
 

Detailed Description

The functions in this section provide access to information, objects, and functionality of image lists. This includes updating, size and image retrieval, and clearance.

Function Documentation

◆ spinImageListAppend()

SPINNAKERC_API spinImageListAppend ( spinImageList  hImageListBase,
spinImageList  hImageListToAppend 
)

Appends all the images from one image list to another.

See also
spinError
Parameters
hImageListBaseThe image list to receive the other
hImageListToAppendThe image list to add to the other
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error

◆ spinImageListClear()

SPINNAKERC_API spinImageListClear ( spinImageList  hImageList)

Clears a image list.

See also
spinError
Parameters
hImageListThe image list to clear
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error

◆ spinImageListCreateEmpty()

SPINNAKERC_API spinImageListCreateEmpty ( spinImageList phImageList)

Creates an empty image list (image lists created this way must be destroyed)

See also
spinError
Parameters
phImageListThe image list handle pointer in which the empty image list is returned
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error

◆ spinImageListDestroy()

SPINNAKERC_API spinImageListDestroy ( spinImageList  hImageList)

Destroys a image list.

See also
spinError
Parameters
hImageListThe image list to destroy
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error

◆ spinImageListGet()

SPINNAKERC_API spinImageListGet ( spinImageList  hImageList,
size_t  index,
spinImage phImage 
)

Retrieves a image from a image list using an index.

This function will return a SPINNAKER_ERR_INVALID_PARAMETER error if the input index is out of range.

See also
spinError
Parameters
hImageListThe image list of the image to retrieve
indexThe index of the image
phImageThe image handle pointer in which the image is returned
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error

◆ spinImageListGetByPixelFormat()

SPINNAKERC_API spinImageListGetByPixelFormat ( spinImageList  hImageList,
spinPixelFormatEnums  pixelFormat,
spinImage phImage 
)

Retrieves a image from a image list given its pixel format.

This function will return a NULL spinImage pointer if no matching image pixel format is found.

See also
spinError
Parameters
hImageListThe image list of the image to retrieve
pixelFormatThe pixel format of the image to retrieve
phImageThe image handle pointer in which the image is returned
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error

◆ spinImageListGetByStreamIndex()

SPINNAKERC_API spinImageListGetByStreamIndex ( spinImageList  hImageList,
uint64_t  streamIndex,
spinImage phImage 
)

Retrieves a image from a image list given its stream index.

This function will return a NULL spinImage pointer if no matching image stream index is found.

See also
spinError
Parameters
hImageListThe image list of the image to retrieve
streamIndexThe stream index of the image to retrieve
phImageThe image handle pointer in which the image is returned
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error

◆ spinImageListGetSize()

SPINNAKERC_API spinImageListGetSize ( spinImageList  hImageList,
size_t *  pSize 
)

Retrieves the number of images in an image list.

See also
spinError
Parameters
hImageListThe image list where the images to be counted are
pSizeThe unsigned integer pointer in which the number of images is returned
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error

◆ spinImageListLoad()

SPINNAKERC_API spinImageListLoad ( spinImageList phImageList,
const char *  fileName 
)

Creates an image list object from file.

See also
spinImageListSave()
spinError
Parameters
phImageListThe image list handle pointer in which the empty image list is returned
fileNameName of the file to load an image object from.
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error

◆ spinImageListRelease()

SPINNAKERC_API spinImageListRelease ( spinImageList  hImageList)

◆ spinImageListRemove()

SPINNAKERC_API spinImageListRemove ( spinImageList  hImageList,
size_t  index 
)

Removes a image from a image list using its index.

See also
spinError
Parameters
hImageListThe image list of the camera to remove
indexThe index of the image to remove
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error

◆ spinImageListRemoveByPixelFormat()

SPINNAKERC_API spinImageListRemoveByPixelFormat ( spinImageList  hImageList,
spinPixelFormatEnums  pixelFormat 
)

Removes a image from a image list using its pixel format.

See also
spinError
Parameters
hImageListThe image list of the image to remove
pixelFormatThe pixel format of the image to remove
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error

◆ spinImageListRemoveByStreamIndex()

SPINNAKERC_API spinImageListRemoveByStreamIndex ( spinImageList  hImageList,
uint64_t  streamIndex 
)

Removes a image from a image list using its stream index.

See also
spinError
Parameters
hImageListThe image list of the image to remove
streamIndexThe stream index of the image to remove
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error

◆ spinImageListSave()

SPINNAKERC_API spinImageListSave ( spinImageList  hImageList,
const char *  fileName 
)

Saves an image list as an object to a file.

See also
spinImageListLoad()
spinError
Parameters
hImageListThe image list of the image to remove
fileNameName of the file to save the current image list object to. It is recommended to use the file extension 'sil'.
Returns
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error