Boost logo

Boost Users :

Subject: Re: [Boost-users] [GIL] Black filled or not ?
From: Christian Henning (chhenning_at_[hidden])
Date: 2010-01-13 10:36:42


Hi Eloi, for performance reasons gil is not initializing the array
with a default value. Also, I wouldn't trust the compiler to do
anything special since it might be different from platform to
platform. Just call fill_pixels which in your case ( rgb32f_image_t )
should be reduced to a memset call.

Regards,
Christian

On Wed, Jan 13, 2010 at 7:37 AM, Eloi Du Bois <eloi.du.bois_at_[hidden]> wrote:
> Hi all !
>
> I would like to know, when creating an image like that:
> rgb32f_image_t img(w, h);
>
> is the image filled with 0 by default or should I call fill_pixels ?
>
> Thank you !
> Eloi.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net