grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] PNG image reader


From: Bean
Subject: Re: [PATCH] PNG image reader
Date: Thu, 24 Jan 2008 20:59:27 +0800

On Jan 24, 2008 8:14 PM, Marco Gerards <address@hidden> wrote:
> It would be nice, not required.  I don't expect too much problems
> here...
>
> Perhaps a better approach would be possible to do a check after
> reading a size:
>
> int size = foo();
>
> Check the size of the file here
>
> while (size--)
> {
>   read pixels;
> }
>
>
png is compressed, it's not easy to separate the pixels.

> Or just check for grub_errno or so after reading the picture?

yes, after the picture is decoded, grub_errno is checked, if it's non
zero, the bitmap image will be deallocated.

-- 
Bean




reply via email to

[Prev in Thread] Current Thread [Next in Thread]