Hello all
I have a struct that looks as follows and I wish to allocate memory for certain members of the struct -
char mode[IMAGING_MODE_LENGTH];
int type;
int depth;
int bands;
int xsize;
int ysize;
ImagingPalette palette;
/* Data pointers */
UINT8 **image8; /* Set for 8-bit images (pixelsize=1). */
INT32 **image32; /* Set for 32-bit images (pixelsize=4). */
/* Internals */
char **image; /* Actual raster data. */
char *block; /* Set if data is allocated in a single block. */
ImagingMemoryBlock *blocks; /* Memory blocks for pixel storage */
int pixelsize; /* Size of a pixel, in bytes (1, 2 or 4) */
int linesize; /* Size of a line, in bytes (xsize * pixelsize) */
void (*destroy)(Imaging im);
And as it can be seen, it has a lot of double pointers which contain the actual image data. I want to transfer that data to the GPU for further processing.
I am not clear as to how to transfer data from a double-pointer array in SYCL as it is (i.e. without flattening the array)
Thanks In Advance