M
Mark Feller
I have an embedded application where malloc( ) is not available. So I
declare images as globals, but want to be able to pass image information
including a pointer in a structure, as in the following:
unsigned short image[640][480];
typedef struct{
unsigned short** img_ptr;
unsigned short img_width;
unsigned short img_height;
} IMAGE;
int foo(IMAGE* x);
The "unsigned short**" is the wrong way to do this, but I am still looking
for the correct way. Thanks for any advice.
declare images as globals, but want to be able to pass image information
including a pointer in a structure, as in the following:
unsigned short image[640][480];
typedef struct{
unsigned short** img_ptr;
unsigned short img_width;
unsigned short img_height;
} IMAGE;
int foo(IMAGE* x);
The "unsigned short**" is the wrong way to do this, but I am still looking
for the correct way. Thanks for any advice.