On Tue, 28 Mar 2006, Felix Rubio Dalmau wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: RIPEMD160 > > In SANE documentation is told that the number of bytes per line is > padded by the formula gived there. Can I assume that the bytes of data > are consecutive and, consequently, I should only remove the final bits > (the ones to seem be the "padding bits") ? > For example, if I have a line with 3 pixels, with 3 channels and a > depth of 8 I should have 3 * 3 * 8 bpp/ 8 = 9 bytes but by the > formula, I get 3 * 3 * [(8 + 7)/8 ] = 18 bytes. Can I remove the final > 9 bytes? How must I manage this data? I know that it's a basic > question, but I'm tryin to learn it :-) thanks!
no, this is integer math, hence the []. this basically means that [(8+7)/8] = 1 so both versions are 9 bytes. allan > > - -- > Josep Felix Rubio Dalmau > GnuPG Public Key: > http://keyserver.veridis.com:11371/export?id=-9021467632073768555 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFEKTgGgs1O/IWPAZURAxuRAJ938e2H5c5XPAfT8+leR5wC3bpMHQCfYVtK > Tn7R+ZhNL/6AvpemzFuIw90= > =svlx > -----END PGP SIGNATURE----- > > > > ______________________________________________ > LLama Gratis a cualquier PC del Mundo. > Llamadas a fijos y m?viles desde 1 c?ntimo por minuto. > http://es.voice.yahoo.com > > > -- "so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls" - Max Cavalera From till.kamppe...@gmx.net Tue Mar 28 16:05:34 2006 From: till.kamppe...@gmx.net (Till Kamppeter) Date: Tue Mar 28 16:06:09 2006 Subject: [sane-devel] Legal Aspects In-Reply-To: <173109380018...@lycos-europe.com> References: <173109380018...@lycos-europe.com> Message-ID: <44295ece.8050...@gmx.net> Ullrich Sigwanz wrote: > QUESTION: Is reverse engineering of hardware protocols legal at all? > > > EPKOWA (e.g.) state in their License agreement, that .... > > ...You may neither reverse engineer, reverse compile, reverse > assemble nor otherwise attempt to analyse those parts of the > Program that were provided to you in executable or object code > only..... > You are not allowed to reverse-engineer the PROGRAM's source code (uncompiling or so), this has nothing to do with the device's PROTOCOL. If you obtain the protocol by a USB or Ethernet sniffer, you do not violate the above-mentioned paragraph. Till