Babl 0.1.10

A dynamic, any to any, pixel format conversion library.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!

What's new in Babl 0.0.22:

  • Speed improvements due to: coalesced hashing, early bail out upon creation of duplicate formats, caching of non existing paths.
  • Large amounts of the core has also been reviewed and refactored. Improved conversion coverage in the matrix.
Read full changelog
send us
an update
LICENSE TYPE:
LGPL (GNU Lesser General Public License) 
USER RATING:
3.5/5 16
DEVELOPED BY:
Babl Team
HOMEPAGE:
gegl.org
CATEGORY:
ROOT \ Multimedia \ Graphics
babl is a dynamic, any to any, pixel format translation library.

Babl allows converting between different methods of storing pixels known as pixel formats that have with different bitdepths and other data representations, color models and component permutations.

A vocabulary to formulate new pixel formats from existing primitives is provided as well as the framework to add new color models and data types.

Usage:

The simplest scenario for using babl is converting between linear buffers represented by an existing BablPixelFormat.

babl_process (babl_fish (babl_format ("srgb"), babl_format ("CIE Lab float")),
srgb_buffer, lab_buffer,
pixel_count);


If the existing pixel formats are not sufficient for your conversion needs, new ones can be created on the fly. The constructor will provide the prior created one if duplicates are registered.

format = babl_format_new (babl_model ("R'G'B'"),
babl_type ("u8"),
babl_component ("B'"),
babl_component ("G'"),
babl_component ("R'"),
NULL);

babl_process (babl_fish (source_format, destination_format),
source_buffer, destination_buffer,
pixel_count);

Last updated on May 3rd, 2012

feature list

#pixel conversion #image conversion #GEGL library #pixel #image #graphics #conversion

Add your review! 1 USER REVIEW SO FAR

SUBMIT