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!postnews.google.com!37g2000yqm.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: A generic image decoder - specification design Date: Mon, 3 May 2010 05:18:05 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <9itrt552ibsvfsp1ijcuej9725ra4kofmu@4ax.com> NNTP-Posting-Host: 81.62.232.30 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1272889085 9057 127.0.0.1 (3 May 2010 12:18:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 3 May 2010 12:18:05 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 37g2000yqm.googlegroups.com; posting-host=81.62.232.30; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.9) Gecko/20100317 SeaMonkey/2.0.4,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11302 Date: 2010-05-03T05:18:05-07:00 List-Id: On May 3, 1:01=A0am, tmo...@acm.org wrote: > Generic handling at the pixel level will surely be slower than direct > coding that knows what it's operating on, and that will be an issue > if there's any significant pixel level processing. Not necessarily if the generics are properly inlined (perhaps you are thinking of shared generics). The range of primary colors is now a generic parameter too. So there will be tests like "if Color_Range'Last=3D255 then..." which will be resolved at compile-time by smart compilers. [...] > But is your package aimed more at processing images, or at doing IO on > the myriad file formats of images? Only decoding images of various formats, that's all! >=A0And how about video? This is not excluded. Probably I'll add an out parameter, time_of_next_frame, to the Load_image_contents procedure. _________________________________________________________ Gautier's Ada programming -- http://sf.net/users/gdemont/ NB: For a direct answer, e-mail address on the following web site: http://www.fechtenafz.ethz.ch/wm_email.htm