comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: A generic image decoder - specification design
Date: Sun, 2 May 2010 23:01:12 +0000 (UTC)
Date: 2010-05-02T23:01:12+00:00	[thread overview]
Message-ID: <hrl07o$5er$1@speranza.aioe.org> (raw)
In-Reply-To: 9itrt552ibsvfsp1ijcuej9725ra4kofmu@4ax.com

> >I guess it might be more than 255 per fundamental color, but I got
> >lost in the docs.
> >Perhaps I should let this 255 boundary as a generic parameter as well.
>
> If it's not just for viewers, but also for photography and graphic arts,
> it would be well worth supporting 16-bit per channel colour depths.

  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.  CLAW uses tags to
distinguish images with different memory layouts, so image processing
dispatches to the correct code for the image at hand.
  Picture : Claw.Bitmaps.Root_DIBitmap_Type'Class
      := Claw.Bitmaps.Root_DIBitmap_Type'Class'Input(Stream);
The different images have arrays of, e.g.,
    for RGB555_Color_Type use record
        Blue  at 0 range 0 .. 4;
        Green at 0 range 5 .. 9;
        Red   at 0 range 10 .. 14;
        Alpha at 0 range 15 .. 15;
    end record;
    for Triple_Color_Type use record
        Blue  at 0 range 0 .. 7;
        Green at 1 range 0 .. 7;
        Red   at 2 range 0 .. 7;
    end record;

But is your package aimed more at processing images, or at doing IO on
the myriad file formats of images?  And how about video?



  reply	other threads:[~2010-05-02 23:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-01 17:03 A generic image decoder - specification design Gautier write-only
2010-05-01 20:30 ` Gautier write-only
2010-05-02  9:19   ` Andre
2010-05-02 10:48     ` RasikaSrinivasan@gmail.com
2010-05-02 15:09     ` Gautier write-only
2010-05-02 15:21       ` Dmitry A. Kazakov
2010-05-02 19:21         ` Gautier write-only
2010-05-02 11:45 ` brian
2010-05-02 15:15   ` Gautier write-only
2010-05-02 19:24   ` Gautier write-only
2010-05-02 22:07     ` Brian Drummond
2010-05-02 23:01       ` tmoran [this message]
2010-05-03 12:18         ` Gautier write-only
2010-05-05 21:07 ` A generic image decoder - first preview! Gautier write-only
2010-05-24 20:51 ` A generic image decoder - specification design Stephen Sangwine
2010-05-24 21:42   ` Gautier write-only
replies disabled

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