Re: [Gimp-developer] Overlay Mode - fix.



On Wed, Nov 14, 2012 at 3:29 AM, Øyvind Kolås <pippin gimp org> wrote:
> babl_process (babl_format ("R'G'B'A u8"), babl_format ("RGBA float"),
> source_buffer, destination_buffer, n_pixels);

I should have looked up the header or some actual code first, the
first argument of babl_process is a babl-fish for the conversion that
can be cached, more correct code could be:

const Babl *fish = babl_fish (babl_format ("R'G'B'A u8"), babl_format
("RGBA float"));
..
babl_process (fish, source_buffer, destination_buffer, pixel_count);
-- 
@hodefoting


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]