Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
bigarray & int24
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christoph Bauer <Christoph.Bauer@l...>
Subject: bigarray & int24

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
formats as well.

Speed matters, because there are a lot of data.


Christoph Bauer
c++; /* this makes c bigger but returns the old value */ (Unknown)