Spinnaker SDK C++
4.2.0.21
 
 

 
Loading...
Searching...
No Matches

Provides the functionality for the user to post process images on an NVIDIA GPU device. More...

#include <SpinnakerGPU.h>

Inheritance diagram for SpinnakerGPU:
ISpinnakerGPU

Public Member Functions

 SpinnakerGPU ()
 Creates SpinnakerGPU context for managing cuda memory allocation and deallocation provided the host image dimensions.
 
 ~SpinnakerGPU ()
 Default destructor.
 
ImagePtr Decompress (const ImagePtr &srcImage) const
 Decompresses the source image buffer and returns the result in a new image.
 
void Decompress (const ImagePtr &srcImage, ImagePtr &destImage) const
 Decompresses the source image buffer and stores the result in the destination image.
 
- Public Member Functions inherited from ISpinnakerGPU
virtual ~ISpinnakerGPU (void)
 
virtual ImagePtr Decompress (const ImagePtr &srcImage) const =0
 
virtual void Decompress (const ImagePtr &srcImage, ImagePtr &destImage) const =0
 

Additional Inherited Members

- Protected Member Functions inherited from ISpinnakerGPU
 ISpinnakerGPU ()
 
 ISpinnakerGPU (const ISpinnakerGPU &)
 
ISpinnakerGPUoperator= (const ISpinnakerGPU &)
 
- Protected Attributes inherited from ISpinnakerGPU
SpinnakerGPUData * m_pSpinnakerGPUData
 

Detailed Description

Provides the functionality for the user to post process images on an NVIDIA GPU device.

Constructor & Destructor Documentation

◆ SpinnakerGPU()

Creates SpinnakerGPU context for managing cuda memory allocation and deallocation provided the host image dimensions.

NOTE: The library supports NVIDIA CUDA device with compute capability >= 3.5

Returns
SpinnakerGPU object

◆ ~SpinnakerGPU()

Default destructor.

Member Function Documentation

◆ Decompress() [1/2]

ImagePtr Decompress ( const ImagePtr srcImage) const
virtual

Decompresses the source image buffer and returns the result in a new image.

The destination image does not need to be configured in any way before the call is made.

Parameters
srcImageThe source image from which to convert the image from.
Returns
The decompressed image.

Implements ISpinnakerGPU.

◆ Decompress() [2/2]

void Decompress ( const ImagePtr srcImage,
ImagePtr destImage 
) const
virtual

Decompresses the source image buffer and stores the result in the destination image.

The destination image needs to be configured to have the correct buffer size before calling this function. See ResetImage() to setup the correct buffer size according to the decompressed pixel format.

See also
ResetImage
Parameters
srcImageThe source image from which to decompress the image from.
destImageThe destination image in which the decompressed image data will be stored.

Implements ISpinnakerGPU.


The documentation for this class was generated from the following file: