From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1fac2bb18a119721 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-14 19:29:28 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: x24702@usma.edu (Zach Swanson) Newsgroups: comp.lang.ada Subject: Re: ada jpeg binding? Date: 14 Mar 2002 19:29:28 -0800 Organization: http://groups.google.com/ Message-ID: <50c1a1b.0203141929.7146c649@posting.google.com> References: NNTP-Posting-Host: 134.240.36.230 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1016162968 27703 127.0.0.1 (15 Mar 2002 03:29:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 15 Mar 2002 03:29:28 GMT Xref: archiver1.google.com comp.lang.ada:21254 Date: 2002-03-15T03:29:28+00:00 List-Id: "Beard, Frank [Contractor]" wrote in message news:... > 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.