main.html
Main Page
|
classes.html
Alphabetical List
|
annotated.html
Data Structures
|
dirs.html
Directories
|
files.html
File List
|
functions.html
Data Fields
|
globals.html
Globals
dir_000000.html
libexif
&raquo
dir_000001.html
canon
mnote-canon-tag.c
mnote-canon-tag_8c.html
Go to the documentation of this file.
00001
/* mnote-canon-tag.c
00002
*
00003
* Copyright ? 2002 Lutz M?ller <lutz@users.sourceforge.net>
00004
*
00005
* This library is free software; you can redistribute it and/or
00006
* modify it under the terms of the GNU Lesser General Public
00007
* License as published by the Free Software Foundation; either
00008
* version 2 of the License, or (at your option) any later version.
00009
*
00010
* This library is distributed in the hope that it will be useful,
00011
* but WITHOUT ANY WARRANTY; without even the implied warranty of
00012
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013
* Lesser General Public License for more details.
00014
*
00015
* You should have received a copy of the GNU Lesser General Public
00016
* License along with this library; if not, write to the
00017
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018
* Boston, MA 02111-1307, USA.
00019
*/
00020
00021
#include <config.h>
00022
#include "
mnote-canon-tag_8h.html
mnote-canon-tag.h
"
00023
00024
#include <stdlib.h>
00025
00026
#include <
i18n_8h.html
libexif/i18n.h
>
00027
00028
static
struct
{
mnote-canon-tag_8c.html#a0
00029
mnote-canon-tag_8h.html#a0
MnoteCanonTag
mnote-canon-tag_8c.html#a0
tag
;
mnote-canon-tag_8c.html#a1
00030
const
char
*
mnote-canon-entry_8c.html#a6
name
;
mnote-canon-tag_8c.html#a2
00031
const
char
*
mnote-canon-tag_8c.html#a2
title
;
mnote-canon-tag_8c.html#a3
00032
const
char
*
mnote-canon-tag_8c.html#a3
description
;
00033 }
mnote-canon-tag_8c.html#a4
table
[] = {
00034         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
,
"Settings1"
,
i18n_8h.html#a7
N_
(
"Settings (first part)"
),
""
},
00035         {
mnote-canon-tag_8h.html#a18a4
MNOTE_CANON_TAG_SETTINGS_2
,
"Settings2"
,
i18n_8h.html#a7
N_
(
"Settings (second part)"
),
""
},
00036         {
mnote-canon-tag_8h.html#a18a5
MNOTE_CANON_TAG_IMAGE_TYPE
,
"ImageType"
,
i18n_8h.html#a7
N_
(
"Image type"
),
""
},
00037         {
mnote-canon-tag_8h.html#a18a6
MNOTE_CANON_TAG_FIRMWARE
,
"FirmwareVersion"
,
i18n_8h.html#a7
N_
(
"Firmware version"
),
""
},
00038         {
mnote-canon-tag_8h.html#a18a7
MNOTE_CANON_TAG_IMAGE_NUMBER
,
"ImageNumber"
,
i18n_8h.html#a7
N_
(
"Image number"
),
""
},
00039         {
mnote-canon-tag_8h.html#a18a8
MNOTE_CANON_TAG_OWNER
,
"OwnerName"
,
i18n_8h.html#a7
N_
(
"Owner name"
),
""
},
00040         {
mnote-canon-tag_8h.html#a18a10
MNOTE_CANON_TAG_SERIAL_NUMBER
,
"SerialNumber"
,
i18n_8h.html#a7
N_
(
"Serial number"
),
""
},
00041         {
mnote-canon-tag_8h.html#a18a12
MNOTE_CANON_TAG_CUSTOM_FUNCS
,
"CustomFunctions"
,
i18n_8h.html#a7
N_
(
"Custom functions"
),
""
},
00042         {0, NULL, NULL, NULL}
00043 };
00044
00045
static
struct
{
00046
mnote-canon-tag_8h.html#a0
MnoteCanonTag
mnote-canon-tag_8c.html#a0
tag
;
mnote-canon-tag_8c.html#a5
00047
unsigned
int
mnote-canon-entry_8c.html#a4
subtag
;
00048
const
char
*
mnote-canon-entry_8c.html#a6
name
;
00049 }
mnote-canon-tag_8c.html#a6
table_sub
[] = {
00050         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
,  0,
i18n_8h.html#a7
N_
(
"Macro mode"
)},
00051         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
,  1,
i18n_8h.html#a7
N_
(
"Self time"
)},
00052         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
,  2,
i18n_8h.html#a7
N_
(
"Quality"
)},
00053         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
,  3,
i18n_8h.html#a7
N_
(
"Flash mode"
)},
00054         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
,  4,
i18n_8h.html#a7
N_
(
"Continuous drive mode"
)},
00055         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
,  6,
i18n_8h.html#a7
N_
(
"Focus mode"
)},
00056         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
,  9,
i18n_8h.html#a7
N_
(
"Image size"
)},
00057         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 10,
i18n_8h.html#a7
N_
(
"Easy shooting mode"
)},
00058         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 12,
i18n_8h.html#a7
N_
(
"Contrast"
)},
00059         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 13,
i18n_8h.html#a7
N_
(
"Saturation"
)},
00060         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 14,
i18n_8h.html#a7
N_
(
"Sharpness"
)},
00061         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 15,
i18n_8h.html#a7
N_
(
"ISO"
)},
00062         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 16,
i18n_8h.html#a7
N_
(
"Metering mode"
)},
00063         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 17,
i18n_8h.html#a7
N_
(
"Focus type"
)},
00064         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 18,
i18n_8h.html#a7
N_
(
"AF point selected"
)},
00065         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 19,
i18n_8h.html#a7
N_
(
"Exposure mode"
)},
00066         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 21,
i18n_8h.html#a7
N_
(
"Lens type"
)},
00067         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 22,
i18n_8h.html#a7
N_
(
"Long focal length of lens"
)},
00068         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 23,
i18n_8h.html#a7
N_
(
"Short focal length of lens"
)},
00069         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 24,
i18n_8h.html#a7
N_
(
"Focal units per mm"
)},
00070         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 25,
i18n_8h.html#a7
N_
(
"Maximal aperture"
)},
00071         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 27,
i18n_8h.html#a7
N_
(
"Flash activity"
)},
00072         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 28,
i18n_8h.html#a7
N_
(
"Flash details"
)},
00073         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 31,
i18n_8h.html#a7
N_
(
"Focus mode"
)},
00074         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 35,
i18n_8h.html#a7
N_
(
"Zoomed resolution"
)},
00075         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 36,
i18n_8h.html#a7
N_
(
"Zoomed resolution base"
)},
00076         {
mnote-canon-tag_8h.html#a18a2
MNOTE_CANON_TAG_SETTINGS_1
, 41,
i18n_8h.html#a7
N_
(
"Color tone"
)},
00077         {
mnote-canon-tag_8h.html#a18a4
MNOTE_CANON_TAG_SETTINGS_2
,  6,
i18n_8h.html#a7
N_
(
"White balance"
)},
00078         {
mnote-canon-tag_8h.html#a18a4
MNOTE_CANON_TAG_SETTINGS_2
,  8,
i18n_8h.html#a7
N_
(
"Sequence number"
)},
00079         {
mnote-canon-tag_8h.html#a18a4
MNOTE_CANON_TAG_SETTINGS_2
, 13,
i18n_8h.html#a7
N_
(
"AF point used"
)},
00080         {
mnote-canon-tag_8h.html#a18a4
MNOTE_CANON_TAG_SETTINGS_2
, 14,
i18n_8h.html#a7
N_
(
"Flash bias"
)},
00081         {
mnote-canon-tag_8h.html#a18a4
MNOTE_CANON_TAG_SETTINGS_2
, 18,
i18n_8h.html#a7
N_
(
"Subject distance"
)},
00082         {0, 0, NULL}
00083 };
00084
00085
const
char
*
mnote-canon-tag_8h.html#a13
00086
mnote-canon-tag_8c.html#a7
mnote_canon_tag_get_name
(
mnote-canon-tag_8h.html#a0
MnoteCanonTag
t)
00087 {
00088
unsigned
int
i;
00089
00090
for
(i = 0; i <
sizeof
(
mnote-canon-tag_8c.html#a4
table
) /
sizeof
(table[0]); i++)
00091
if
(table[i].
mnote-canon-tag_8c.html#a0
tag
== t)
return
(
i18n_8h.html#a6
_
(table[i].
mnote-canon-entry_8c.html#a6
name
));
00092
return
NULL;
00093 }
00094
00095
const
char
*
mnote-canon-tag_8h.html#a14
00096
mnote-canon-tag_8c.html#a8
mnote_canon_tag_get_name_sub
(
mnote-canon-tag_8h.html#a0
MnoteCanonTag
t,
unsigned
int
s)
00097 {
00098
unsigned
int
i;
00099
for
(i = 0; i <
sizeof
(
mnote-canon-tag_8c.html#a6
table_sub
) /
sizeof
(table_sub[0]); i++)
00100
if
((table_sub[i].
mnote-canon-tag_8c.html#a0
tag
== t) && (table_sub[i].
mnote-canon-entry_8c.html#a4
subtag
== s))
00101
return
i18n_8h.html#a6
_
(table_sub[i].
mnote-canon-entry_8c.html#a6
name
);
00102
return
mnote-canon-tag_8c.html#a7
mnote_canon_tag_get_name
(t);
00103 }
00104
00105
const
char
*
mnote-canon-tag_8h.html#a15
00106
mnote-canon-tag_8c.html#a9
mnote_canon_tag_get_title
(
mnote-canon-tag_8h.html#a0
MnoteCanonTag
t)
00107 {
00108
unsigned
int
i;
00109
00110
i18n_8h.html#a5
bindtextdomain
(GETTEXT_PACKAGE, LOCALEDIR);
00111
for
(i = 0; i <
sizeof
(
mnote-canon-tag_8c.html#a4
table
) /
sizeof
(table[0]); i++)
00112
if
(table[i].
mnote-canon-tag_8c.html#a0
tag
== t)
return
(
i18n_8h.html#a6
_
(table[i].
mnote-canon-tag_8c.html#a2
title
));
00113
return
NULL;
00114 }
00115
00116
const
char
*
mnote-canon-tag_8h.html#a16
00117
mnote-canon-tag_8c.html#a10
mnote_canon_tag_get_title_sub
(
mnote-canon-tag_8h.html#a0
MnoteCanonTag
t,
unsigned
int
s)
00118 {
00119
unsigned
int
i;
00120
for
(i = 0; i <
sizeof
(
mnote-canon-tag_8c.html#a6
table_sub
) /
sizeof
(table_sub[0]); i++)
00121
if
((table_sub[i].
mnote-canon-tag_8c.html#a0
tag
== t) && (table_sub[i].
mnote-canon-entry_8c.html#a4
subtag
== s))
00122
return
i18n_8h.html#a6
_
(table_sub[i].
mnote-canon-entry_8c.html#a6
name
);
00123
return
mnote-canon-tag_8c.html#a9
mnote_canon_tag_get_title
(t);
00124 }
00125
00126
const
char
*
mnote-canon-tag_8h.html#a17
00127
mnote-canon-tag_8c.html#a11
mnote_canon_tag_get_description
(
mnote-canon-tag_8h.html#a0
MnoteCanonTag
t)
00128 {
00129
unsigned
int
i;
00130
00131
i18n_8h.html#a5
bindtextdomain
(GETTEXT_PACKAGE, LOCALEDIR);
00132
for
(i = 0; i <
sizeof
(
mnote-canon-tag_8c.html#a4
table
) /
sizeof
(table[0]); i++)
00133
if
(table[i].
mnote-canon-tag_8c.html#a0
tag
== t)
return
(
i18n_8h.html#a6
_
(table[i].
mnote-canon-tag_8c.html#a3
description
));
00134
return
NULL;
00135 }
Generated on Fri Sep 9 16:28:11 2005 for EXIF library (libexif) Internals by
http://www.doxygen.org/index.html
doxygen
1.4.4
