File: libics_data.c

package info (click to toggle)
libics 1.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,280 kB
  • sloc: sh: 8,735; ansic: 5,994; makefile: 125
file content (118 lines) | stat: -rw-r--r-- 3,836 bytes parent folder | download | duplicates (2)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*
 * libics: Image Cytometry Standard file reading and writing.
 *
 * Copyright (C) 2000-2006 Cris Luengo and others
 * email: clluengo@users.sourceforge.net
 *
 * Large chunks of this library written by
 *    Bert Gijsbers
 *    Dr. Hans T.M. van der Voort
 * And also Damir Sudar, Geert van Kempen, Jan Jitze Krol,
 * Chiel Baarslag and Fons Laan.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
/*
 * FILE : libics_data.c
 *
 * This file declares some data structures used when reading and
 * writing the ICS headers.
 */

#include "libics_intern.h"

Ics_Symbol G_CatSymbols[] =
{
   { "source",           ICSTOK_SOURCE },
   { "layout",           ICSTOK_LAYOUT },
   { "representation",   ICSTOK_REPRES },
   { "parameter",        ICSTOK_PARAM },
   { ICS_HISTORY,        ICSTOK_HISTORY }, /* Don't want duplicate strings... */
   { "sensor",           ICSTOK_SENSOR },
   { "end",              ICSTOK_END }
};

Ics_Symbol G_SubCatSymbols[] =
{
   {"file",               ICSTOK_FILE },
   {"offset",             ICSTOK_OFFSET },
   {"parameters",         ICSTOK_PARAMS },
   {"order",              ICSTOK_ORDER },
   {"sizes",              ICSTOK_SIZES },
   {"coordinates",        ICSTOK_COORD },
   {"significant_bits",   ICSTOK_SIGBIT },
   {"format",             ICSTOK_FORMAT },
   {"sign",               ICSTOK_SIGN },
   {"compression",        ICSTOK_COMPR },
   {"byte_order",         ICSTOK_BYTEO },
   {"origin",             ICSTOK_ORIGIN },
   {"scale",              ICSTOK_SCALE },
   {"units",              ICSTOK_UNITS },
   {"labels",             ICSTOK_LABELS },
   {"SCIL_TYPE",          ICSTOK_SCILT },
   {"type",               ICSTOK_TYPE },
   {"model",              ICSTOK_MODEL },
   {"s_params",           ICSTOK_SPARAMS }
};

Ics_Symbol G_SubSubCatSymbols[] =
{
   {"Channels",          ICSTOK_CHANS },
   {"PinholeRadius",     ICSTOK_PINHRAD },
   {"LambdaEx",          ICSTOK_LAMBDEX },
   {"LambdaEm",          ICSTOK_LAMBDEM },
   {"ExPhotonCnt",       ICSTOK_PHOTCNT },
   {"RefrInxMedium",     ICSTOK_REFRIME },
   {"NumAperture",       ICSTOK_NUMAPER },
   {"RefrInxLensMedium", ICSTOK_REFRILM },
   {"PinholeSpacing",    ICSTOK_PINHSPA }
};

Ics_Symbol G_ValueSymbols[] =
{
   {"uncompressed",      ICSTOK_COMPR_UNCOMPRESSED },
   {"compress",          ICSTOK_COMPR_COMPRESS },
   {"gzip",              ICSTOK_COMPR_GZIP },
   {"integer",           ICSTOK_FORMAT_INTEGER },
   {"real",              ICSTOK_FORMAT_REAL },
   {"float",             ICSTOK_FORMAT_REAL }, /* CAUTION: this makes this list one longer than you'd expect */
   {"complex",           ICSTOK_FORMAT_COMPLEX },
   {"signed",            ICSTOK_SIGN_SIGNED },
   {"unsigned",          ICSTOK_SIGN_UNSIGNED }
};

Ics_SymbolList G_Categories =
{
   ICSTOK_LASTMAIN,
   G_CatSymbols
};

Ics_SymbolList G_SubCategories =
{
   ICSTOK_LASTSUB - ICSTOK_FIRSTSUB - 1,
   G_SubCatSymbols
};

Ics_SymbolList G_SubSubCategories =
{
   ICSTOK_LASTSUBSUB - ICSTOK_FIRSTSUBSUB - 1,
   G_SubSubCatSymbols
};

Ics_SymbolList G_Values =
{
   ICSTOK_LASTVALUE - ICSTOK_FIRSTVALUE - 1 + 1, /* See above: this list is one longer than expected. */
   G_ValueSymbols
};