Quoting Antonino Daplas ([EMAIL PROTECTED]):
> On Thu, 2002-11-21 at 11:05, Antonino Daplas wrote:
> > Hi,
> > 
> > Since I'm playing around with DirectColor visuals, I've thought of
> > adding a SetColorAdjustment hook to the primary layer using the gamma
> > ramp.  Brightness and contrast adjustments are doable by programming the
> > gamma ramp. Saturation adjustment is not as correct, since its
> > implementation is best done on a per-pixel basis.
> > 
> > The attached function is not thoroughly tested, but seems to work during
> > my debugging sessions.  Also, I'm not sure if the algorithm is correct.
> > It requires an fbdev driver that correctly supports DirectColor visuals
> > (check by running XFBDev and launching the xgamma utility).
> > 
> >
> 
> Here's a test patch for DirectFB-0.9.15 that implements SetColorAdjustment to
> fbdev.c.  It has a much better saturation control which involves
> adding/subtracting a proportion of medium gray.
> 
> I've tested this with a modified df_dok.  Brightness works very well. 
> Contrast and saturation are good at high levels, but produces a dim
> display at low levels.
> 
> I'm not too sure about the code since it involves adding extra
> fb_cmap structures to dfb_fbdev->shared.

I tried to apply it, but it seems that your patch doesn't apply
to the current CVS version.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

                            Convergence GmbH


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to