From: "Christoph Bauer" <Christoph.Bauer@lmsintl.com>
To: <caml-list@inria.fr>
Subject: bigarray & int24
Date: Mon, 31 Mar 2008 11:58:09 +0200 [thread overview]
Message-ID: <BB046CA812535C45BD0029AA9D04BA7902C90A60@KL-SRV57.lmsintl.com> (raw)
Hi,
my program should read unaligned 3 byte integers. (A real world
example for such a format would be an RGB image). What is
the best approach?
- extend bigarray for the int24 format and send the patch to INRIA
- write a C-function, which converts the data to an int32-array
- read an 1-byte-bigarray and construct an int-bigarray
- ???
It should be a bigarray solution, because my program reads other
(supported)
formats as well.
Speed matters, because there are a lot of data.
Thanks,
Christoph Bauer
--
c++; /* this makes c bigger but returns the old value */ (Unknown)
next reply other threads:[~2008-03-31 9:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-31 9:58 Christoph Bauer [this message]
2008-03-31 10:30 ` [Caml-list] " Berke Durak
2008-03-31 11:27 ` Sylvain Le Gall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BB046CA812535C45BD0029AA9D04BA7902C90A60@KL-SRV57.lmsintl.com \
--to=christoph.bauer@lmsintl.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox