[Gegl-developer] babl: format comparison

2011-05-21 Thread Daniel Hiepler
Hi, what would be the best-practice to check if two BablFormats are the same? I would need something like: Babl *format1 = babl_format("R'G'B' u8"); Babl *format2 = babl_format("CIE Lab float"); if(is_same_format(format1, format2)) { ... } else { ... } Also I would need to get the current sour

Re: [Gegl-developer] babl: format comparison

2011-05-21 Thread Øyvind Kolås
On Sat, May 21, 2011 at 12:03 PM, Daniel Hiepler wrote: > Hi, > > what would be the best-practice to check if two BablFormats are the > same? I would need something like: > > Babl *format1 = babl_format("R'G'B' u8"); > Babl *format2 = babl_format("CIE Lab float"); > > if(is_same_format(format1, fo