« Return to Thread: On-the-fly color space conversions

Re: On-the-fly color space conversions

by Lorne Laliberte :: Rate this Message:

Reply to Author | View in Thread

Hi Stephen,

Can you convert the images to RGB colorspace when they're loaded? Or
do you need to remain in their colorspace during processing?

I haven't done anything like this yet, but I'm planning to do an
on-the-fly RGB to HSL conversion for a colorizing filter I'd like to
implement. I wasn't planning on implementing a full pixel format for
it though -- just doing RGB to HSL and back during the lifetime of the
effect. I don't know if that will perform satisfactorily yet though; I
may need to implement a more generalized convertor, and "cache" the
HSL version so the conversions could be minimized. I'd be happy to
share any code I come up with when I get to that point.

I wonder if it could be done using an adaptor, sort of along the lines
of agg_pixfmt_amask_adaptor.h or agg_pixfmt_transposer.h?

What colorspaces do you need to convert from?

- Lorne Laliberte


On Fri, Nov 28, 2008 at 7:47 AM, Stephan Assmus <superstippi@...> wrote:

> Hi all,
>
> has anyone worked with on-the-fly colorspace conversions, or using images with different colorspaces within the same rendering pipeline? I've looked closer at agg_image_accessors.h, but it seems to be meant only for wrapping buffer byte offsets when there is out-of-bounds access. What I am looking for, sort of, is some kind of pixel format that converts into the format of the target buffer when reading pixels, so that image filters and span generators such would all work. Has anyone done something like this already and can share some experience?
>
> Thanks and best regards,
> -Stephan
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Vector-agg-general mailing list
> Vector-agg-general@...
> https://lists.sourceforge.net/lists/listinfo/vector-agg-general

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vector-agg-general mailing list
Vector-agg-general@...
https://lists.sourceforge.net/lists/listinfo/vector-agg-general

 « Return to Thread: On-the-fly color space conversions