Re: [dev] Looking for simple, alpha supporting image format

From: Lee F. <REMOVED_UPON_REQUEST_AT_gmail.com>
Date: Wed, 16 Jul 2014 11:06:38 -0400

On Wed, Jul 16, 2014 at 11:05 AM, Markus Teich
<markus.teich_AT_stusta.mhn.de> wrote:
> Lee F. wrote:
>> fseek(filehandle, 0, SEEK_END);
>> height = (ftell(filehandle) / RGBA_CHANNEL_SIZE) / width;
>>
>> Then you allocate your buffer.
>
> Heyho Lee,
>
> This needs FILE* instead of just a file descriptor, making usage in pipes
> intractable.
>
...And today I learned the beneficial gains from storing height in an
image format. So much for extreme minimalism!
Received on Wed Jul 16 2014 - 17:06:38 CEST

This archive was generated by hypermail 2.3.0 : Wed Jul 16 2014 - 17:12:12 CEST