
27 Dec
2013
27 Dec
'13
6:05 p.m.
2013/12/28 Christian Henning <chhenning@gmail.com>
Could you describe a use case?
I have to work with something like RGBQUAD which's layout is BGRX:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd162938(v=vs.85).as...
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 requirement. Now I have my pixel defined as: template<class T, class Layout, int padding = 0> class pixel; So RGBX becomes pixel<uint8_t, rgb_layout_t, 1>.