comp.lang.ada
 help / color / mirror / Atom feed
* ada jpeg binding?
@ 2002-03-14  5:06 Zach Swanson
  2002-03-14 11:13 ` Bobby D. Bryant
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Zach Swanson @ 2002-03-14  5:06 UTC (permalink / raw)


I have need of access to the standard jpeg libraries (libjpeg.a) in
Ada,
anyone know of any bindings that are already available out there? I've
done some pretty extensive searching on the web already and come up
with nothing, I'm hoping that perhaps one of you might have already
written something like this.
Thanks

Zach Swanson
USMA '02



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ada jpeg binding?
  2002-03-14  5:06 ada jpeg binding? Zach Swanson
@ 2002-03-14 11:13 ` Bobby D. Bryant
  2002-03-14 13:25 ` Steve Sangwine
  2002-03-16  2:53 ` Steve Doiel
  2 siblings, 0 replies; 6+ messages in thread
From: Bobby D. Bryant @ 2002-03-14 11:13 UTC (permalink / raw)


On Wed, 13 Mar 2002 23:06:04 -0600, Zach Swanson wrote:

> I have need of access to the standard jpeg libraries (libjpeg.a) in
> Ada,
> anyone know of any bindings that are already available out there? I've
> done some pretty extensive searching on the web already and come up
> with nothing, I'm hoping that perhaps one of you might have already
> written something like this.

The documentation indicates that GtkAda supports them in Gdk.Pixbuf,
though I've never actually tried it.

Bobby Bryant
Austin, Texas



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ada jpeg binding?
  2002-03-14  5:06 ada jpeg binding? Zach Swanson
  2002-03-14 11:13 ` Bobby D. Bryant
@ 2002-03-14 13:25 ` Steve Sangwine
  2002-03-16  2:53 ` Steve Doiel
  2 siblings, 0 replies; 6+ messages in thread
From: Steve Sangwine @ 2002-03-14 13:25 UTC (permalink / raw)


On Thu, 14 Mar 2002 05:06:04 -0000, x24702@usma.edu (Zach Swanson)
wrote:

>I have need of access to the standard jpeg libraries (libjpeg.a) in
>Ada,
>anyone know of any bindings that are already available out there? I've
>done some pretty extensive searching on the web already and come up
>with nothing, I'm hoping that perhaps one of you might have already
>written something like this.

I have written a Portable Network Graphics library in Ada, which is
perhaps 'something like this' if what you really want to do is
read/write images. But if they have to be in JPEG format, then it will
be no good. I don't know of a binding to libjpeg.

Steve Sangwine
University of Essex, UK.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: ada jpeg binding?
@ 2002-03-14 17:56 Beard, Frank [Contractor]
  2002-03-15  3:29 ` Zach Swanson
  0 siblings, 1 reply; 6+ messages in thread
From: Beard, Frank [Contractor] @ 2002-03-14 17:56 UTC (permalink / raw)


Zach,

You didn't say what OS you were trying to do this on, but if it's
Windows:

If you only need to open and display them, then you can use the
LoadBitmapFile function in conjunction with the Bitmap procedure
from the Win32 API bindings.  I'm using the Aonix GUI Builder
which in turn calls the APIs.  You should be able to get a copy
of the Win32 bindings from www.adapower.com, or Windex probably
provides them as well.

Frank

-----Original Message-----
From: x24702@usma.edu [mailto:x24702@usma.edu]
Sent: Thursday, March 14, 2002 12:06 AM
To: comp.lang.ada@ada.eu.org
Subject: ada jpeg binding?


I have need of access to the standard jpeg libraries (libjpeg.a) in
Ada,
anyone know of any bindings that are already available out there? I've
done some pretty extensive searching on the web already and come up
with nothing, I'm hoping that perhaps one of you might have already
written something like this.
Thanks

Zach Swanson
USMA '02
_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada.eu.org
http://ada.eu.org/mailman/listinfo/comp.lang.ada



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ada jpeg binding?
  2002-03-14 17:56 Beard, Frank [Contractor]
@ 2002-03-15  3:29 ` Zach Swanson
  0 siblings, 0 replies; 6+ messages in thread
From: Zach Swanson @ 2002-03-15  3:29 UTC (permalink / raw)


"Beard, Frank [Contractor]" <beardf@spawar.navy.mil> wrote in message news:<mailman.1016128682.1080.comp.lang.ada@ada.eu.org>...
> Zach,
> 
> You didn't say what OS you were trying to do this on, but if it's
> Windows:
> 
> If you only need to open and display them, then you can use the
> LoadBitmapFile function in conjunction with the Bitmap procedure
> from the Win32 API bindings.  I'm using the Aonix GUI Builder
> which in turn calls the APIs.  You should be able to get a copy
> of the Win32 bindings from www.adapower.com, or Windex probably
> provides them as well.
> 
> Frank


Sorry about that, we are working in Windows 2000 right now, although
what we'd like is a less OS specific interface, as we are recommending
the next research team use some version of Linux. (for other reasons
in the project)

What we're looking for specifically concerning the jpeg format is the
ability to read the file into memory, access the individual pixel
components to change values, and then write the file back to disk.
Right now we're having to do some pretty covoluted hacks to get around
not having jpeg access.

If you're wondering what we need all this for, our senior capstone
project is to design an autonomous vehicle for the IGVC. (Intelligent
Ground Vehicle Contest www.igvc.org) My team is responsible for the
autonomous portion of the project. We're using a digital camera to
provide computer vision (using a parabolic mirror and mirror
undistortion techniques), and the camera returns the files in jpeg
format. (no other format available with this model) Right now we have
to use some libraries built for cygwin that can read jpegs, but then
we have to precompile this code and run it as a spawned process to
convert the jpeg to a bitmap so that we can load it into our main ada
routines.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ada jpeg binding?
  2002-03-14  5:06 ada jpeg binding? Zach Swanson
  2002-03-14 11:13 ` Bobby D. Bryant
  2002-03-14 13:25 ` Steve Sangwine
@ 2002-03-16  2:53 ` Steve Doiel
  2 siblings, 0 replies; 6+ messages in thread
From: Steve Doiel @ 2002-03-16  2:53 UTC (permalink / raw)


"Zach Swanson" <x24702@usma.edu> wrote in message
news:50c1a1b.0203132106.13f2315f@posting.google.com...
> I have need of access to the standard jpeg libraries (libjpeg.a) in
> Ada,
> anyone know of any bindings that are already available out there? I've
> done some pretty extensive searching on the web already and come up
> with nothing, I'm hoping that perhaps one of you might have already
> written something like this.
> Thanks
>
> Zach Swanson
> USMA '02

If you have the C header files there are tools available that will
automatically create bindings.  I have used cbind4win32.  I found that I had
to tweak the bindings a little, but it was much easier than creating a
binding from scratch.

SteveD






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-03-16  2:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-14  5:06 ada jpeg binding? Zach Swanson
2002-03-14 11:13 ` Bobby D. Bryant
2002-03-14 13:25 ` Steve Sangwine
2002-03-16  2:53 ` Steve Doiel
  -- strict thread matches above, loose matches on Subject: below --
2002-03-14 17:56 Beard, Frank [Contractor]
2002-03-15  3:29 ` Zach Swanson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox