[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Berke Durak <berke.durak@e...> |
| Subject: | Re: [Caml-list] bigarray & int24 |
Christoph Bauer a écrit : > 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 Last time I did this, I used a (m x n x 3) byte bigarray, also known pendantically as a rank 3 tensor, where m is the number of rows and n the number of columns. Should work reasonably well. -- Berke DURAK