Image Processing Blackfin

Hi!, i'd like to share with yours the way that i achieve (simple) image processing, i used the stb_image library and expect that this could be usefull for others that just need basic image manipulation.

Download the 2 libraries: stb_image.c and stb_image_write.h and the test.c from the attached file that is the app.

test.c is an app that will give a contrast correction in the image using a transformation.

Be sure that the PATH has been correctly setup in the host, if not sure do:

$ export PATH=$PATH:/opt/uClinux/bfin-uclinux/bin:/opt/uClinux/bfin-linux-uclibc/bin
Now to build the executable for host and test the app>
$ gcc -g -o exe test.c -lm 
Test the program in host:
$ ./exe lena.jpg output.bmp
To build executable for blackfin targets>
$ bfin-uclinux-gcc -Wl,-elf2flt test.c -o bftest -lm
Test the program in blackfin:
$ ./exe lena.jpg output.bmp
that's all, other info about blackfin for spanish users>