comp.lang.ada
 help / color / mirror / Atom feed
From: "Patrice Freydiere" <frett27@free.fr>
Subject: Re: Binding to C
Date: Tue, 12 Aug 2003 08:40:21 +0200
Date: 2003-08-12T08:37:28+02:00	[thread overview]
Message-ID: <pan.2003.08.12.06.40.13.734522@free.fr> (raw)
In-Reply-To: %VVZa.9764$Kx1.137096@newsfep4-glfd.server.ntli.net

On Tue, 12 Aug 2003 00:49:20 +0100, chris wrote:

> Patrice Freydiere wrote:
> 
>> so it can gives you some ideas for C binding from ADA.
> 
> Thanks.
> 
> 
>> ps: when i started writing the simplejpeglib binding for ADA.
>> i had a lot of interfacing problems du to the portability macros of the
>> jpeglib. (it's surely possible, but when i've started my binding, my C
>> interfacing Skills from ADA was poor).
>> So i decided in my design to build a simple C interface to make Ada
>> binding easier. This permit me to be "C structure independent" and provide a
>> more easy upgrade of the jpeglib.
> 
> This is a problem... and I haven't found a *convienant* way to solve 
> this (other than wrapping it up as you and Warren pointed out - thanks). 
>   Macros change this, that and the other.  My ada code would need to be 
> changed at the spec level on different platforms, compilers, etc... 
> yuck.  A more experienced Ada developer could probably organise it 
> better, but
> 
> All I really want to do now is *decode* and encode (at various 
> qualities) a jpeg (in RBG).  Later things might get more complicated, 
> but for now that's it.  I'm going to look at your lib again now I've got 
> a bit more time.

chris, it's difficult to add a quality parameter to SimpleJpegLib.
The SimpleJpegLib, gives you the RGB values of an encoded JPEG File.

Patrice




  reply	other threads:[~2003-08-12  6:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-21 18:59 Binding to C chris
2003-07-21 20:02 ` Martin Krischik
2003-07-22 17:12   ` chris
2003-07-23 13:47     ` Martin Krischik
2003-07-27 13:11     ` Matthew Heaney
2003-07-27 13:07   ` Matthew Heaney
2003-07-21 21:07 ` tmoran
2003-07-21 21:57   ` chris
2003-07-27 13:04 ` Matthew Heaney
2003-07-28 20:52 ` Freejack
2003-07-29 19:21   ` chris
2003-08-09 11:29 ` Patrice Freydiere
2003-08-09 13:09   ` Jeffrey Creem
2003-08-09 13:54     ` Patrice Freydiere
2003-08-11 23:49   ` chris
2003-08-12  6:40     ` Patrice Freydiere [this message]
2003-08-12 11:58       ` chris
replies disabled

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