Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Raw image data manipulation
Raw image data manipulation [message #11664] |
Thu, 20 September 2007 22:44 |
nasos_i
Messages: 5 Registered: September 2007
|
Promising Member |
|
|
Hi all,
I have just started playing around with upp and I am really excited about its features. I am trying to adopt my code into it and I have to say that it seem astonishingly trivial in most cases.
I've been also working with Adobe's Generic Image Library (Adobe's GIL) and one of the aspects I am concerned in, is image raw data manipulation (the real image data in memory). I'd prefer sharing that data between upp/gil and maybe a capturing device for real-time image processing. I can have it in the form of interleaved RGBA, upp is using, but I can't figure out a way other than copying channel values, pixel by pixel, from my GIL image type to upp image.
Ideally the code would look like this roughly.
// This is GIL code
rgb8_image_t gil_img;
.......
unsigned char* gil_data = interleaved_view_get_raw_data( view( img ));
// This is upp code
img.data = gil_data; //<-- Of course this can't work
.....
Any ideas/suggestions?
|
|
|
Goto Forum:
Current Time: Sun Apr 28 23:25:58 CEST 2024
Total time taken to generate the page: 0.03536 seconds
|