MESSAGE
DATE | 2016-12-06 |
FROM | Ruben Safir
|
SUBJECT | Re: [Learn] png data format
|
From learn-bounces-at-nylxs.com Tue Dec 6 09:57:15 2016 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www.mrbrklyn.com (www.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 29DC1161312; Tue, 6 Dec 2016 09:57:15 -0500 (EST) X-Original-To: learn-at-nylxs.com Delivered-To: learn-at-nylxs.com Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) by mrbrklyn.com (Postfix) with ESMTP id 3D54A160E77 for ; Tue, 6 Dec 2016 09:57:11 -0500 (EST) Received: by mail-qk0-f181.google.com with SMTP id x190so382002041qkb.0 for ; Tue, 06 Dec 2016 06:57:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=my.liu.edu; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=2fZ2kD/uWuIjtxwd31xjx9XOJammlF0vwmfhVSeL124=; b=qY1f5gi1D6Us6LmMpqrn86a0e7e+rsCAu8q/KanQrk8WefWdD4yXIqMRDi7V6AG0xX BYVNNQrYqLpgY3nQA1KxV/7CzxFeZ0zc+GFqu51Uwfo5VfRK0ExC8UZPbTr/dQa/zDs7 SJyP2nkJhhM3UUfpi1ZcaHLJbg7awPkWqeP+E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=2fZ2kD/uWuIjtxwd31xjx9XOJammlF0vwmfhVSeL124=; b=Ot8TvBf5S4g8UqWhJVqIDMITKZ8mVQ2d6JqeBxL9aFj5NMora1XuIkDDDuydACf//l /o1yhZjtd1lzEHMQn2ZBxnpSbZqWxJdrwPIYCsk6N9Kr97lmvbanUyKiNO576uNP3WO7 6dLsCyMA0Rk1/LI4rQxKbNXctlSmVlWQG6ANpbyoeiwhIDYK+krWehko2oSpB4fyivJ5 5XPKbcxPhOvSQXx6sJxSeGkvQjBLghj0iNp3wtgc1FFHUZj0zER2OmfGIkAshB209R+3 FX7bR40Pr4tpTXisE8Wq6VoW/0l2XbLzSuRrJJVSo3sSeQ4IvH5y+LD++Zgofty9bDPb 3utg== X-Gm-Message-State: AKaTC02PYsaA89G69j5YQnu2uer/DByvirWLmK4vbShC4TjolkMdKTiBYLlA+uAczSMFfbiT X-Received: by 10.55.154.200 with SMTP id c191mr55582922qke.117.1481034894044; Tue, 06 Dec 2016 06:34:54 -0800 (PST) Received: from [10.0.0.62] (www.mrbrklyn.com. [96.57.23.82]) by smtp.googlemail.com with ESMTPSA id b16sm12165469qkg.41.2016.12.06.06.34.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 06:34:53 -0800 (PST) To: learn-at-nylxs.com References: <66105244-4afa-4330-b0c2-0661bde965fd-at-mrbrklyn.com> <87bmwpf857.fsf-at-contrapunctus.net> From: Ruben Safir Message-ID: <5d5d8f0b-b7ab-ee89-5ab3-2643ac1a7460-at-my.liu.edu> Date: Tue, 6 Dec 2016 09:34:53 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <87bmwpf857.fsf-at-contrapunctus.net> Subject: Re: [Learn] png data format X-BeenThere: learn-at-nylxs.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: learn-bounces-at-nylxs.com Sender: "Learn"
On 12/06/2016 09:24 AM, Christopher League wrote: > I can't really confirm this based on the numbers you've given (218103808 > isn't how I think it would come out) but it sounds A LOT like an > endianness issue. That is, the 4 bytes are stored big-endian in the > file, but you're operating on a system (Intel) that is little-endian. So > if you read an entire uint32 at once, it doesn't come out correctly. > Reading one byte at a time, you can then swap the bytes into the right > order. >
I thought it might be an ended issue which is something I'm not at all familier with. That finally sent me to the source code of the holotype libs, and they seem to be popping them off one byte each. I also tried signed and unsigned. But I can't connect that number to any variation of 00000000 00000000 00000000 00001101
> Also, that's not a hex dump, right...? is it octal? decimal?
the program is man hexdump and yes, that was an oct output by byte. I've been at this over night and working on this for 2 days.
-- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013 _______________________________________________ Learn mailing list Learn-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/learn
|
|