Namespace: Rx::LFR – Class: CudaImage – Header: Rx.LFR/CudaImage.h

CudaImage Class

C++
#include "Rx.LFR/CudaImage.h"
class CudaImage

An image with memory on CUDA device.

Constructors

CudaImage()

Default constructor.

CudaImage(format, devPtr, devPitch, deviceID)

Constructor that wraps the given image data. The ownership is not passed!

CudaImage(cudaImage)

Deleted copy constructor.

CudaImage(cudaImage)

Move constructor.

Destructor

~CudaImage()

Destructor.

Methods

Create(format)

Creates a new CUDA image and allocates its memory on the CUDA device that is currently set via cudaSetDevice.

Destroy()

Destroys this CUDA image and frees all used memory.

Copy()

Creates a copy of this image on the same CUDA device.

Download(image)

Downloads this CUDA image into the given host image. The target image is created inside this function.

Upload(image)

Uploads the given host image into this CUDA image.

SetTimestampID(timestamp, iD)

Sets the timestamp and the ID of the image.

GetFormat()

Returns the format description of this image.

GetData()

Returns the CUDA device pointer that holds the actual image data allocated via cudaMallocPitch.

GetPitch()

Returns the CUDA device pitch returned by cudaMallocPitch.

GetDeviceID()

Returns ID of the CUDA device that owns the memory.

GetImageID()

Gets image identifier.

GetTimestamp()

Gets the timestamp.

Operators

operator=(cudaImage)

Deleted assignment operator.

operator=(cudaImage)

Move assignment operator.