Blink API
|
Reference to a Blink image. More...
#include <Blink.h>
Public Member Functions | |
Image () | |
Image ref not pointing to any data. | |
Image (const Image &src) | |
Copy reference to source image. Both images will point to the same data. | |
Image (const BlinkImageInfo &info, ComputeDevice &device) | |
Image & | operator= (const Image &src) |
Image | distributeTo (const ComputeDevice &dev) |
Return a reference to the image with the same data on the specified device performing a copy if necessary. | |
Image | makeLike (const ComputeDevice &dev) |
Return a reference to a new image with the same layout on the specified device. | |
void | copyFrom (const Image &src) |
Copies the data from src on any device into this image. The formats of the images must match. | |
BlinkImageInfo | info () const |
Fetch info for image. | |
void | clear () |
Clear reference to image. | |
bool | isEmpty () const |
Returns true if there is no underlying data. | |
void | copyToBuffer (void *buffer, const BlinkBufferDesc &bufferDesc) const |
Copy the contents of the image to the provided buffer. | |
void | copyFromBuffer (const void *buffer, const BlinkBufferDesc &bufferDesc) const |
Copy provided buffer to the image. | |
Image (BlinkRef ref) | |
Friends | |
Image | BlinkImageForBlinkRef (BlinkRef) |
Reference to a Blink image.
Image Blink::Image::distributeTo | ( | const ComputeDevice & | dev | ) |
Return a reference to the image with the same data on the specified device performing a copy if necessary.
If the image is already on the specified device then return a reference to the image. Otherwise copy the image to the device and return a reference to the copy.
Image Blink::Image::makeLike | ( | const ComputeDevice & | dev | ) |
Return a reference to a new image with the same layout on the specified device.
An Image returned from this call will be compatible for a copyFrom.
©2013 The Foundry Visionmongers, Ltd. All Rights Reserved. |