Boost logo

Boost :

Subject: Re: [boost] [GIL] Pixel Layout Padding?
From: TONGARI J (tongari95_at_[hidden])
Date: 2013-12-28 23:42:48


2013/12/29 Christian Henning <chhenning_at_[hidden]>
>
> So, pixel<uint8_t, rgb_layout, 1 > in memory looks like ( a letter
> representing a byte ):
>
> rgbxrgbxrgbx...
>
> pixel<uint8_t,rgb_layout, 2 > would be
>
> rgbxxrgbxxrgbxx...
>
> Is that correct?
>

Yes.

> Do you already have some code which could be added to GIL? I would be
> willing to incorporate it and write tests and update documentation.
>

Here's some code I extracted from my own lib, surely it won't compile for
you, but I hope you'd get some idea.
https://www.dropbox.com/sh/4dwin19dtcva5q5/k1cNXd0oyD


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk