
Hi all,
Sorry to bother you with my problems but I am experiencing a new probable
bug:
I am trying to manage with data that are set as follow:
P;P;P;P;......
Where P is a rgb pixel (10 bits per components) packed on an uint32 as
follow:
00RGB;00RGB;00RGB;00RGB........
I mean there is two bits unused on each 32 bits pixel.
So I tried to set up a view using packed_pixel and a bug occurs when using
copy_and_convert_pixels...
The very strange thing is that it is working when using color_convert on two
pixels...
I think there may exist something I didn't understood... Anyway, I give you
the buggy code:
/// 10 bits rgb packed to uint32_t starting at the 2nd bit
typedef const packed_channel_reference

Hi Eloi,
You are constructing a view whose height is zero. Could that be the problem?
Lubomir
On 12/15/09 5:01 AM, "Eloi Du Bois"

Ouups... I think that *may* be a problem, but it is a typing error, I tried
on views of a bigger size. I will retry this later.
Thanks :)
2009/12/15 Lubomir Bourdev
Hi Eloi,
You are constructing a view whose height is zero. Could that be the problem?
Lubomir
On 12/15/09 5:01 AM, "Eloi Du Bois"
wrote: rgb10_packed_view_t vw10 = interleaved_view( 1, 0, (rgb10_packed_pixel_t*)( data ), sizeof( uint32_t ) );
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Okay, sorry... You are right: the code is now working :)
I have to look deeper why is there something wrong when converting colors...
2009/12/15 Eloi Du Bois
Ouups... I think that *may* be a problem, but it is a typing error, I tried on views of a bigger size. I will retry this later.
Thanks :)
2009/12/15 Lubomir Bourdev
Hi Eloi,
You are constructing a view whose height is zero. Could that be the problem?
Lubomir
On 12/15/09 5:01 AM, "Eloi Du Bois"
wrote: rgb10_packed_view_t vw10 = interleaved_view( 1, 0, (rgb10_packed_pixel_t*)( data ), sizeof( uint32_t ) );
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Eloi, it would be best when you can create a very small code sample
that exhibits a problem. The smaller the better. ;-)
Christian
On Wed, Dec 16, 2009 at 4:45 AM, Eloi Du Bois
Okay, sorry... You are right: the code is now working :) I have to look deeper why is there something wrong when converting colors...
2009/12/15 Eloi Du Bois
Ouups... I think that *may* be a problem, but it is a typing error, I tried on views of a bigger size. I will retry this later.
Thanks :)
2009/12/15 Lubomir Bourdev
Hi Eloi,
You are constructing a view whose height is zero. Could that be the problem?
Lubomir
On 12/15/09 5:01 AM, "Eloi Du Bois"
wrote: rgb10_packed_view_t vw10 = interleaved_view( 1, 0, (rgb10_packed_pixel_t*)( data ), sizeof( uint32_t ) );
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Ok, I will do my best... I am tracking the problem... Work in progress...
2009/12/16 Christian Henning
Eloi, it would be best when you can create a very small code sample that exhibits a problem. The smaller the better. ;-)
Christian
On Wed, Dec 16, 2009 at 4:45 AM, Eloi Du Bois
wrote: Okay, sorry... You are right: the code is now working :) I have to look deeper why is there something wrong when converting
colors... > > 2009/12/15 Eloi Du Bois <eloi.du.bois@gmail.com> >> >> Ouups... I think that *may* be a problem, but it is a typing error, I >> tried on views of a bigger size. I will retry this later. >> >> Thanks :) >> >> 2009/12/15 Lubomir Bourdev <lbourdev@adobe.com> >>> >>> Hi Eloi, >>> >>> You are constructing a view whose height is zero. Could that be the >>> problem? >>> >>> Lubomir >>> >>> >>> On 12/15/09 5:01 AM, "Eloi Du Bois" <eloi.du.bois@gmail.com> wrote: >>> >>> rgb10_packed_view_t vw10 = >>> interleaved_view( 1, 0, (rgb10_packed_pixel_t*)( data ), >>> sizeof( uint32_t ) ); >>> >>> _______________________________________________ >>> Boost-users mailing list >>> Boost-users@lists.boost.org >>> http://lists.boost.org/mailman/listinfo.cgi/boost-users >> > > > _______________________________________________ > Boost-users mailing list > Boost-users@lists.boost.org > http://lists.boost.org/mailman/listinfo.cgi/boost-users > _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Christian Henning
-
Eloi Du Bois
-
Lubomir Bourdev