From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 8BF75BBCA for ; Mon, 31 Mar 2008 11:58:23 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag8GANZS8EfAXQIn/2dsb2JhbACBWqZu X-IronPort-AV: E=Sophos;i="4.25,581,1199660400"; d="scan'208";a="8995193" Received: from concorde.inria.fr ([192.93.2.39]) by mail2-smtp-roc.national.inria.fr with ESMTP; 31 Mar 2008 11:58:23 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m2V9wBdx009470 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 31 Mar 2008 11:58:23 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiECANZS8EfVRIjmiGdsb2JhbACBWo9oAQEBDyaWTg X-IronPort-AV: E=Sophos;i="4.25,581,1199660400"; d="scan'208";a="24392333" Received: from kaiserslautern1.lms-gmbh.de (HELO mail-outfwd.lms.be) ([213.68.136.230]) by mail4-smtp-sop.national.inria.fr with ESMTP; 31 Mar 2008 11:58:14 +0200 Received: from localhost (unknown [127.0.0.1]) by mail-outfwd.lms.be (Postfix) with ESMTP id F0A2A7F40C for ; Mon, 31 Mar 2008 11:16:51 +0000 (UTC) X-Virus-Scanned: by IT Services Received: from mail-kl.lmsintl.com ([127.0.0.1]) by localhost (kl-ftp.lmsintl.com [127.0.0.1]) (amavisd-new, port 20024) with ESMTP id GTG9dT6zffEa for ; Mon, 31 Mar 2008 13:16:51 +0200 (CEST) Received: from KL-SRV57.lmsintl.com (unknown [10.2.100.57]) by mail-kl.lmsintl.com (Postfix) with ESMTP id D21BBB6EC6 for ; Mon, 31 Mar 2008 11:16:51 +0000 (UTC) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: bigarray & int24 Date: Mon, 31 Mar 2008 11:58:09 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: bigarray & int24 Thread-Index: AciTFbm78wdoqgfGQbu54xaeF+rmUw== From: "Christoph Bauer" To: X-Miltered: at concorde with ID 47F0B5B3.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bigarray:01 byte:01 integers:01 bigarray:01 int:01 int:01 data:02 data:02 supported:02 construct:02 christoph:04 christoph:04 inria:06 rgb:93 extend:07 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 -- =20 c++; /* this makes c bigger but returns the old value */ (Unknown)