GPUOpen-ProfessionalCompute-Libraries / amdovx-core

AMD OpenVX Core -- a sub-module of amdovx-modules:
https://github.com/GPUOpen-ProfessionalCompute-Libraries/amdovx-modules
MIT License
149 stars 53 forks source link

tensor_to_image: make save output as image possible #56

Closed reger-men closed 7 years ago

reger-men commented 7 years ago

Please take a look at this function, because Iam not sure if it the right place.

rgiduthuri commented 7 years ago

@reger-men I can't accept this merge request because the code is incomplete...

If you like to support reading/writing .png/.jpg/.jpeg images, try to modify the CVxParamImage::ReadFrame(int frameNumber) and CVxParamImage::WriteFrame(int frameNumber) functions to detect the fileName extensions and trigger the new function calls that take fileNames as input, such as:

int WriteImageCompressed(vx_image image, vx_rectangle_t * rectFull, const char * fileName)

Please re-open a new merge request once you've the code ready. Thx