Subject: Re: [boost] [GIL] Pixel Layout Padding?
From: TONGARI J (tongari95_at_[hidden])
Date: 2013-12-27 13:05:00
2013/12/28 Christian Henning <chhenning_at_[hidden]>
> > > Could you describe a use case?
> > >
> > I have to work with something like RGBQUAD which's layout is BGRX:
> QQ, the rgbReserved represents the alignment?
At least it requires 4 bytes by that structure.
Also note that Quartz 2D also has padded RGB: http://tinyurl.com/kdawwkl
So I think GIL being a generic library is reasonable to fill such a
Now I have my pixel defined as:
template<class T, class Layout, int padding = 0>
So RGBX becomes pixel<uint8_t, rgb_layout_t, 1>.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk