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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.24.8 with SMTP id q8mr16278487obf.25.1412581005661; Mon, 06 Oct 2014 00:36:45 -0700 (PDT) X-Received: by 10.140.94.10 with SMTP id f10mr1397qge.11.1412581005548; Mon, 06 Oct 2014 00:36:45 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!uq10no4720227igb.0!news-out.google.com!i10ni60qaf.0!nntp.google.com!s7no779374qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 6 Oct 2014 00:36:45 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=130.243.94.123; posting-account=qQYzOAoAAACKyBgnnWDmxmZSLHt67JIC NNTP-Posting-Host: 130.243.94.123 References: <1d5d2d61-9595-4571-9d4e-308bb19f0b8d@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: how to read image in Ada? From: Nahro Nadir Injection-Date: Mon, 06 Oct 2014 07:36:45 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:22125 Date: 2014-10-06T00:36:45-07:00 List-Id: 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 > > 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 > > > > > > -- > > 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.