English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2008-03-31 (09:58)
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)