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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,50b378dbbc6317de X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!192.87.166.28.MISMATCH!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!post1.tilbu1.nb.home.nl!cache6.tilbu1.nb.home.nl!not-for-mail Date: Sun, 02 May 2010 11:19:52 +0200 From: Andre User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: A generic image decoder - specification design References: <0fe40ae3-7582-424c-9b72-9d6d0cb351e2@y36g2000yqm.googlegroups.com> <6d7d1892-e8a1-444d-8ff2-3ee12e281f42@l32g2000yqm.googlegroups.com> In-Reply-To: <6d7d1892-e8a1-444d-8ff2-3ee12e281f42@l32g2000yqm.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <8f304$4bdd43b6$541ed605$26008@cache6.tilbu1.nb.home.nl> X-Complaints-To: abuse.home.news@prolocation.net Organization: @home NNTP-Posting-Host: 84.30.214.5 (84.30.214.5) NNTP-Posting-Date: Sun, 02 May 2010 11:19:50 +0200 X-Trace: 8f3044bdd43b6f1bb73a026008 Xref: g2news2.google.com comp.lang.ada:11282 Date: 2010-05-02T11:19:52+02:00 List-Id: Gautier, The first question which comes up in mind is: where do you want to use it for? Is it an initial step for your Ada based browser? The 2nd question is more basic, are you write the load image functions in Ada or use bindings to existing libraries (like the JPEG one)? Basically all pixel based images are a block of memory. The one which are 8 bit based use normally a Palette (like GIF and 8-bit BMP). The full color versions (JPEG, 24-bit BMP) use 3 or 4 byte per pixel (4th one is in general the alpha channel) in a memory map. So that can easily be modeled. If it is for a browser, you can forget about the 1-, 2- and 4-bit images. So how will be your real image data be modeled? Do you plan to just use a 24-bit with alpha channel format and convert lower grade images (like GIF) into this format? Or do you want to represent the different image types also in you data model? just some feedback, Andr� On 5/1/2010 22:30, Gautier write-only wrote: > Here is already a tiny update: > > http://gen-img-dec.svn.sf.net/viewvc/gen-img-dec/gid.ads?view=markup&pathrev=2 > > I've discovered the possibility of an Inline pragma to a procedure > listed in a generic formal part. At least GNAT and ObjectAda don't > protest on that, so probably it makes some sense... > > G.