comp.lang.ada
 help / color / mirror / Atom feed
From: Nahro Nadir <nahro.h.n@gmail.com>
Subject: Re: how to read image in Ada?
Date: Mon, 6 Oct 2014 00:36:45 -0700 (PDT)
Date: 2014-10-06T00:36:45-07:00	[thread overview]
Message-ID: <c7142729-a346-4bfe-9ea7-9566b0d012cb@googlegroups.com> (raw)
In-Reply-To: <gak03a16t6ahlaeojrudko244csjnt5959@4ax.com>

On Saturday, October 4, 2014 10:04:26 PM UTC+2, Dennis Lee Bieber wrote:
> On Fri, 3 Oct 2014 04:46:55 -0700 (PDT), Nahro Nadir <nahro.h.n@gmail.com>
> 
> declaimed the following:
> 
> 
> 
> >I'm new in Ada programming language, I want to read and manipulate images in Ada without binding other libraries like opencv. Is there any way to read images in Ada? Or convert it to pixel values (RGB) especially bitmap images.
> 
> 
> 
> 	Well, technically, they are all just binary files...
> 
> 
> 
> 	The problem is, each format encodes the data in a different way, and
> 
> you'd need to read the specification for those formats and write code that
> 
> translates them to whatever you want...
> 
> 
> 
> 	There is a big difference between a format using RLE vs JPEG vs ILBM.
> 
> (The Amiga native graphics were bit-plane oriented, so one had a matrix of
> 
> all the least-significant bits, followed by a matrix of next significant
> 
> bits, etc. until the most-significant bits; other formats have all bits for
> 
> one pixel packed as a single item)
> 
> 
> 
> 	Or use a library that someone else has already created to do the same
> 
> thing <G>
> 
> 
> 
> 	
> 
> -- 
> 
> 	Wulfraed                 Dennis Lee Bieber         AF6VN
> 
>     wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Well i couldn't found a library which is written in Ada and i dont want to use binding to other languages because its very slow.

  reply	other threads:[~2014-10-06  7:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-03 11:46 how to read image in Ada? Nahro Nadir
2014-10-03 12:44 ` Anatoly Chernyshev
2014-10-04 20:04 ` Dennis Lee Bieber
2014-10-06  7:36   ` Nahro Nadir [this message]
2014-10-06  8:30     ` Simon Wright
2014-10-06 12:16       ` Nahro Nadir
2014-10-06  7:48 ` gautier_niouzes
2014-10-06 12:19   ` Nahro Nadir
replies disabled

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