On Wed, Jul 16, 2014 at 11:05 AM, Markus Teich <markus.te...@stusta.mhn.de> wrote: > Lee Fallat 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!
- Re: [dev] Looking for simple, alpha supporting image f... koneu
- Re: [dev] Looking for simple, alpha supporting image f... Lee Fallat
- Re: [dev] Looking for simple, alpha supporting image f... FRIGN
- Re: [dev] Looking for simple, alpha supporting image f... Lee Fallat
- Re: [dev] Looking for simple, alpha supporting image f... Lee Fallat
- Re: [dev] Looking for simple, alpha supporting image f... FRIGN
- Re: [dev] Looking for simple, alpha supporting image f... Markus Teich
- Re: [dev] Looking for simple, alpha supporting image f... Lee Fallat
- Re: [dev] Looking for simple, alpha supporting image f... Charlie Murphy
- Re: [dev] Looking for simple, alpha supporting image f... Markus Teich
- Re: [dev] Looking for simple, alpha supporting image f... Lee Fallat
- Re: [dev] Looking for simple, alpha supporting image f... Charlie Murphy
- Re: [dev] Looking for simple, alpha supporting image f... koneu
- Re: [dev] Looking for simple, alpha supporting image f... Charlie Murphy
- Re: [dev] Looking for simple, alpha supporting image format Markus Teich
- Re: [dev] Looking for simple, alpha supporting image f... Nick
- Re: [dev] Looking for simple, alpha supporting image f... FRIGN
- Re: [dev] Looking for simple, alpha supporting image f... Markus Teich
- Re: [dev] Looking for simple, alpha supporting image f... FRIGN
- Re: [dev] Looking for simple, alpha supporting image f... Lee Fallat
- Re: [dev] Looking for simple, alpha supporting image f... koneu