blob: 9d9b2e281d878e536f2e89f9d61876948e6177c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/* 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
* <http://www.gnu.org/licenses/>.
*/
#ifndef _BABL_H
#error this file is only to be included by babl.h
#endif
/****************************************************************/
/* BablModel */
BABL_NAMED_CLASS_DECLARE (model);
/*
* Babl * babl_model_new (["name", const char *name,]
* BablComponent *component1,
* [BablComponent *componentN, ...]
* NULL);
*
* If no name is provided a name is generated by concatenating the
* name of all the involved components.
*
*/
#define babl_model babl_model_from_name
typedef struct
{
BablInstance instance;
BablList *from_list;
int components;
BablComponent **component;
BablType **type; /*< must be doubles, used here for convenience in code */
} BablModel;
|