./babl-0.1.0-i686/ 0000755 0000000 0000000 00000000000 11272023137 011733 5 ustar root root ./babl-0.1.0-i686/usr/ 0000755 0000000 0000000 00000000000 11272022141 012536 5 ustar root root ./babl-0.1.0-i686/usr/include/ 0000755 0000000 0000000 00000000000 11272022141 014161 5 ustar root root ./babl-0.1.0-i686/usr/include/babl-0.0/ 0000755 0000000 0000000 00000000000 11272022141 015354 5 ustar root root ./babl-0.1.0-i686/usr/include/babl-0.0/babl/ 0000755 0000000 0000000 00000000000 11272022141 016254 5 ustar root root ./babl-0.1.0-i686/usr/include/babl-0.0/babl/babl.h 0000644 0000000 0000000 00000014507 11272022114 017334 0 ustar root root /* babl - dynamically extendable universal pixel conversion library.
* Copyright (C) 2005-2008, Øyvind Kolås.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, see
* .
*/
#ifndef _BABL_H
#define _BABL_H
#ifdef __cplusplus
extern "C" {
#endif
#define BABL_INSIDE_BABL_H
#include
#include
#include
#undef BABL_INSIDE_BABL_H
/**
* Initializes the babl library.
*/
void babl_init (void);
/**
* Deinitializes the babl library and frees any resources used when
* matched with the number of calls to babl_init().
*/
void babl_exit (void);
/**
* Returns the babl object representing the data type given by @name
* such as for example "u8", "u16" or "float".
*/
Babl * babl_type (const char *name);
/**
* Returns the babl object representing the @horizontal and @vertical
* sampling such as for example 2, 2 for the chroma components in
* YCbCr.
*/
Babl * babl_sampling (int horizontal,
int vertical);
/**
* Returns the babl object representing the color component given by
* @name such as for example "R", "cyan" or "CIE L".
*/
Babl * babl_component (const char *name);
/**
* Returns the babl object representing the color model given by @name
* such as for example "RGB", "CMYK" or "CIE Lab".
*/
Babl * babl_model (const char *name);
/**
* Returns the babl object representing the color format given by
* @name such as for example "RGB u8", "CMYK float" or "CIE Lab u16".
*/
Babl * babl_format (const char *name);
/* Create a babl fish capable of converting from source_format to
* destination_format, source and destination can be either strings
* with the names of the formats or Babl-format objects.
*/
Babl * babl_fish (const void *source_format,
const void *destination_format);
/** Process n pixels from source to destination using babl_fish,
* returns number of pixels converted.
*/
long babl_process (Babl *babl_fish,
void *source,
void *destination,
long n);
/**
* Returns a string decsribing a Babl object.
*/
const char * babl_get_name (const Babl *babl);
/**
* Returns whether the @format has an alpha channel.
*/
int babl_format_has_alpha (const Babl *format);
/**
* Returns the bytes per pixel for a babl color format.
*/
int babl_format_get_bytes_per_pixel (const Babl *format);
/**
* Returns the number of components for the given @format.
*/
int babl_format_get_n_components (const Babl *format);
/**
* Returns the type in the given @format for the given
* @component_index.
*/
Babl * babl_format_get_type (const Babl *format,
int component_index);
/**
* Defines a new data type in babl. A data type that babl can have in
* its buffers requires conversions to and from "double" to be
* registered before passing sanity.
*
* babl_type_new (const char *name,
* "bits", int bits,
* ["min_val", double min_val,]
* ["max_val", double max_val,]
* NULL);
*/
Babl * babl_type_new (void *first_arg,
...) BABL_ARG_NULL_TERMINATED;
/**
* Defines a new color component with babl.
*
* babl_component_new (const char *name,
* NULL);
*/
Babl * babl_component_new (void *first_arg,
...) BABL_ARG_NULL_TERMINATED;
/**
* Defines a new color model in babl. If no name is provided a name is
* generated by concatenating the name of all the involved components.
*
* babl_model_new (["name", const char *name,]
* BablComponent *component1,
* [BablComponent *componentN, ...]
* NULL);
*/
Babl * babl_model_new (void *first_arg,
...) BABL_ARG_NULL_TERMINATED;
/**
* Defines a new color format in babl. Provided BablType and|or
* BablSampling is valid for the following components as well. If no
* name is provided a (long) descriptive name is used.
*
* babl_format_new (["name", const char *name,]
* BablModel *model,
* [BablType *type,]
* [BablSampling, *sampling,]
* BablComponent *component1,
* [[BablType *type,]
* [BablSampling *sampling,]
* BablComponent *componentN,
* ...]
* ["planar",]
* NULL);
*/
Babl * babl_format_new (void *first_arg,
...) BABL_ARG_NULL_TERMINATED;
/**
* Defines a new conversion between either two formats, two models or
* two types in babl.
*
* babl_conversion_new (,
* <"linear"|"planar">, conv_func,
* NULL);
*/
Babl * babl_conversion_new (void *first_arg,
...) BABL_ARG_NULL_TERMINATED;
/*
* Backwards compatibility stuff
*
* NOTE: will most likely be removed in the first stable release!
*/
#ifndef BABL_DISABLE_DEPRECATED
#define babl_destroy babl_exit
#endif
#ifdef __cplusplus
}
#endif
#endif
./babl-0.1.0-i686/usr/include/babl-0.0/babl/babl-macros.h 0000644 0000000 0000000 00000002116 11272022114 020607 0 ustar root root /* babl - dynamically extendable universal pixel conversion library.
* Copyright (C) 2005-2008, Øyvind Kolås and others.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, see
* .
*/
#ifndef _BABL_MACROS_H
#define _BABL_MACROS_H
#ifndef BABL_INSIDE_BABL_H
#error "babl-version.h must not be included directly, include babl.h instead."
#endif
#if __GNUC__ >= 4
#define BABL_ARG_NULL_TERMINATED __attribute__((__sentinel__))
#else
#define BABL_ARG_NULL_TERMINATED
#endif
#endif
./babl-0.1.0-i686/usr/include/babl-0.0/babl/babl-types.h 0000644 0000000 0000000 00000003304 11272022114 020467 0 ustar root root /* babl - dynamically extendable universal pixel conversion library.
* Copyright (C) 2005-2008, Øyvind Kolås and others.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, see
* .
*/
#ifndef _BABL_TYPES_H
#define _BABL_TYPES_H
#ifndef BABL_INSIDE_BABL_H
#error "babl-version.h must not be included directly, include babl.h instead."
#endif
/**
* The babl API is based around polymorphism and almost everything is
* a Babl object.
*/
typedef union _Babl Babl;
/* Conversion function between linear data of a either a data types or
* color formats.
*/
typedef long (*BablFuncLinear) (char *src,
char *dst,
long n);
/* TypePlanar,ModelPlanar and FormatPlanar */
typedef long (*BablFuncPlanar) (int src_bands,
char *src[],
int src_pitch[],
int dst_bands,
char *dst[],
int dst_pitch[],
long n);
#endif
./babl-0.1.0-i686/usr/include/babl-0.0/babl/babl-version.h 0000644 0000000 0000000 00000002606 11272022114 021014 0 ustar root root /* babl - dynamically extendable universal pixel conversion library.
* Copyright (C) 2005-2008, Øyvind Kolås and others.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, see
* .
*/
#ifndef _BABL_VERSION_H
#define _BABL_VERSION_H
#ifndef BABL_INSIDE_BABL_H
#error "babl-version.h must not be included directly, include babl.h instead."
#endif
/***
* babl version information
*
* These macros tell the version of babl you are compiling against.
* babl's version number consists of three parts: major, minor and
* micro.
*/
#define BABL_MAJOR_VERSION 0
#define BABL_MINOR_VERSION 1
#define BABL_MICRO_VERSION 0
/** Get the version information on the babl library */
void babl_get_version (int *major,
int *minor,
int *micro);
#endif
./babl-0.1.0-i686/usr/lib/ 0000755 0000000 0000000 00000000000 11272022165 013312 5 ustar root root ./babl-0.1.0-i686/usr/lib/pkgconfig/ 0000755 0000000 0000000 00000000000 11272022165 015261 5 ustar root root ./babl-0.1.0-i686/usr/lib/pkgconfig/babl.pc 0000644 0000000 0000000 00000000370 11272022135 016502 0 ustar root root prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: babl
Description: Dynamic, any to any, pixel format conversion library
Version: 0.1.0
Cflags: -I${includedir}/babl-0.0
Libs: -L${libdir} -lbabl-0.0 -lm
./babl-0.1.0-i686/usr/lib/libbabl-0.0.la 0000755 0000000 0000000 00000001460 11272022112 015506 0 ustar root root # libbabl-0.0.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.26 (1.1220.2.493 2008/02/01 16:58:18)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='libbabl-0.0.so.0'
# Names of this library.
library_names='libbabl-0.0.so.0.100.0 libbabl-0.0.so.0 libbabl-0.0.so'
# The name of the static archive.
old_library=''
# Libraries that this one depends upon.
dependency_libs=' -lm -ldl'
# Version information for libbabl-0.0.
current=100
age=100
revision=0
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/usr/lib'
./babl-0.1.0-i686/usr/lib/libbabl-0.0.so.0.100.0 0000755 0000000 0000000 00000405771 11272022141 016345 0 ustar root root ELF `0 4 4 (
G Qtd 3 e - f A 6 t C , ~ ] K P Q y I 1 a 5 r u O R q h { p B X G T 8 &