caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* bigarray & int24
@ 2008-03-31  9:58 Christoph Bauer
  2008-03-31 10:30 ` [Caml-list] " Berke Durak
  2008-03-31 11:27 ` Sylvain Le Gall
  0 siblings, 2 replies; 3+ messages in thread
From: Christoph Bauer @ 2008-03-31  9:58 UTC (permalink / raw)
  To: caml-list

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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-31 11:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-31  9:58 bigarray & int24 Christoph Bauer
2008-03-31 10:30 ` [Caml-list] " Berke Durak
2008-03-31 11:27 ` Sylvain Le Gall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).