Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

IMGLIB functions - how can be implemented for 16-bit data on C674x?

$
0
0

Hello,

I've downloaded the IMGlib and have studied the sources for the functions I need. All of our image data is in 16-bit format. The specific functions that I need to run as efficiently as possible on 16-bit data are:

void IMG_boundary(const unsigned char * restrict in_data, int rows, int cols, int * restrict out_coord, int * restrict out_gray)

and

void IMG_thr_le2min(const unsigned char * restrict in_data, unsigned char * restrict out_data, short cols, short rows, unsigned char threshold).

If I write a 16-bit version (input and output as WORD* or u16*), how can I ensure that the compiler optimizes it well?

Can I take the assembly versions of the functions and change them to work with 16-bit data?

Thanks,

Mechi


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>