I am looking for a demo/tutorial on how i would pass images from my Windows Runtime components to my native algorithms.
1) Should i pass paths to the files on the system and have my naive library load the images?
2) Should i pass byte arrays?
Can i handle it to use both file system and maybe a live stream from the camera?
Comments: I might have left out some information, sorry, the algorithm used to process the images are a cross-platform implementation in c++. I want to expose this to WP8 and Win8 apps. Therefor i need to get the images from the UI to the Runtime-Components and then to the c++ libraries. I agree that i dont want to decode it multiply times. I just need some advice/example how this would look in code. I agree that it somehow would be to pass pointers to the Runtime Component(API between the algorithm and App).
Therefor it would also be nice if there are any way to handle how the memory layout of the image are presented at the application such it fits into the Algorithm design. OpenCV ect would have BGRBGRBGR layout for a 1x3 pixel rgb image. (I hope this makes my question more clear)