www.flickr.com
tres frijoles' photos More of tres frijoles' photos
You are here: tearsoffire.org > Projects Web > ElectronicsProjects > BlackfinProjects > BfJpgTn r4 - 25 Jun 2007 - 15:43 - ChristopherPepe


Start of topic | Skip to actions

BfJpgTn



about

for whatever reason i need to be able to resize images on the fly on a blackfin SBC. This may eventually be part of the BalloonSatellite or my future mars rover or something. At the moment I need this functionality for a demo I'm doing at work. I'll flesh this out as it comes about but for now I just need to keep notes will I get it built.
480546387_0162c551d6.jpg
2k thumbnail
480546389_7df7df03f5.jpg
37k original

This package is available on sourceforge here.

This program requires libjpeg so be sure to build that in to your uClinux image.

lame build

  • blow up the tarball somewhere
  • run ./configure (you shouldn't need to run make but configure will setup the config.h file)
  • change to the src dir
  • comment out #define HAVE_STDLIB_H 1 in config.h or better yet throw an #ifndef around it
  • change # include <config.h> to # include "config.h" in the source files
  • execute the following to build for blackfin
    • obviously change the library and include paths for your system (do i really need to tell you that?)

#lame build script to get jpgtn compiled for the blackfin running uClinux
bfin-uclinux-gcc -DHAVE_CONFIG_H -I/home/cpepe/working/uClinux-dist-adi/lib/libjpeg/ -g -O2 -c jpgtn.c
bfin-uclinux-gcc -DHAVE_CONFIG_H -I/home/cpepe/working/uClinux-dist-adi/lib/libjpeg/ -g -O2 -c readjpeg.c
bfin-uclinux-gcc -DHAVE_CONFIG_H -I/home/cpepe/working/uClinux-dist-adi/lib/libjpeg/ -g -O2 -c writejpeg.c
bfin-uclinux-gcc -DHAVE_CONFIG_H -I/home/cpepe/working/uClinux-dist-adi/lib/libjpeg/ -g -O2 -c resizepic.c
bfin-uclinux-gcc -Wl,-elf2flt -L/home/cpepe/working/uClinux-dist-adi/lib/libjpeg/ -g -O2 -o jpgtn  jpgtn.o readjpeg.o writejpeg.o resizepic.o  -ljpeg

  • jpgtn: jpgtn cross-compiled for the blackfin

-- ChristopherPepe - 01 May 2007

toggleopenShow attachmentstogglecloseHide attachments
Topic attachments
I Attachment Action Size Date Who Comment
elseEXT jpgtn manage 113.4 K 02 May 2007 - 08:14 ChristopherPepe jpgtn cross-compiled for the blackfin
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding tearsoffire.org? Send feedback