Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 816EED0E4 for ; Fri, 28 Sep 2012 16:31:40 +0000 (UTC) Received: (qmail 7842 invoked by uid 500); 28 Sep 2012 16:31:40 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 7718 invoked by uid 500); 28 Sep 2012 16:31:40 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 7709 invoked by uid 99); 28 Sep 2012 16:31:39 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2012 16:31:39 +0000 Received: from localhost (HELO mail-ee0-f43.google.com) (127.0.0.1) (smtp-auth username damjan, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2012 16:31:39 +0000 Received: by eekc13 with SMTP id c13so1609998eek.30 for ; Fri, 28 Sep 2012 09:31:37 -0700 (PDT) Received: by 10.14.211.3 with SMTP id v3mr10544428eeo.43.1348849897721; Fri, 28 Sep 2012 09:31:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.127.141 with HTTP; Fri, 28 Sep 2012 09:31:17 -0700 (PDT) From: Damjan Jovanovic Date: Fri, 28 Sep 2012 18:31:17 +0200 Message-ID: Subject: Binary file manipulation tool? To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Hi You wouldn't believe it, but one of the most invaluable testing tools for commons-imaging I've discovered has been an x86 assembler :-). Why? Because images are binary files which often use internal offsets to portions of the image. An assembler lets you easily calculate and insert offsets at compile-time. See https://svn.apache.org/repos/asf/commons/proper/imaging/trunk/src/test/data/images/bmp/4/rle8.asm as an example. However it makes me uncomfortable to have both images and the assembly in my tests when the images can be generated from the assembly, or require nasm to compile tests. Also nasm is all good for little-endian files, but it will never support big-endian. Is there some other binary file manipulation tool you guys know of that I can use instead, preferably one written in Java and ideally with a Maven plugin? Thank you Damjan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org