  
    
main.htmlMain Page     
classes.htmlData Structures     
files.htmlFiles     
dirs.htmlDirectories   
  
    
files.htmlFile List     
globals.htmlGlobals   
dir_3c4fde49625df9344590fff295c7c38d.htmllibexif  &raquo dir_265b6d436dcd479b211f2ef756056fdc.htmlcanon mnote-canon-tag.c
mnote-canon-tag_8c.htmlGo 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.htmlmnote-canon-tag.h " 00023 
00024 #include <stdlib.h> 00025 
00026 #include < i18n_8h.htmllibexif/i18n.h > 00027 
00028 static struct {
mnote-canon-tag_8c.html#f81b5c697b6608b9a512a4bf55f025e800029          mnote-canon-tag_8h.html#d5d5b446fddafa764414b055e559199cMnoteCanonTag  mnote-canon-tag_8c.html#f81b5c697b6608b9a512a4bf55f025e8tag ;
mnote-canon-tag_8c.html#8f8f80d37794cde9472343e4487ba3eb00030          const char * mnote-canon-entry_8c.html#5ac083a645d964373f022d03df4849c8name ;
mnote-canon-tag_8c.html#8214780964530800368b406c681fd1d900031          const char * mnote-canon-tag_8c.html#8214780964530800368b406c681fd1d9title ;
mnote-canon-tag_8c.html#68344fa88cf4e86b5079fd69a5c22d5700032          const char * mnote-canon-tag_8c.html#68344fa88cf4e86b5079fd69a5c22d57description ;
00033 } mnote-canon-tag_8c.html#76c7996bcc2a41aaf9eb26b44061923btable [] = {
00034         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , "Settings1", i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Settings (first part)"), ""},
00035         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba46c1137eb65df9cf52c252b797f6bae24MNOTE_CANON_TAG_SETTINGS_2 , "Settings2", i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Settings (second part)"), ""},
00036         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba493583b83ff59f9780854e6cdadc8e30fMNOTE_CANON_TAG_IMAGE_TYPE , "ImageType", i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Image type"), ""},
00037         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4b11d8501c880e461ad957cb0977d4d28MNOTE_CANON_TAG_FIRMWARE , "FirmwareVersion", i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Firmware version"), ""},
00038         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba480d6eb0fbe3a84915823bea9af19d7d5MNOTE_CANON_TAG_IMAGE_NUMBER , "ImageNumber", i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Image number"), ""},
00039         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4f33c77f275bef5302c45b2348ad7c955MNOTE_CANON_TAG_OWNER , "OwnerName", i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Owner name"), ""},
00040         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4bb9b82ba8842e98db9456bc049e80406MNOTE_CANON_TAG_SERIAL_NUMBER , "SerialNumber", i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Serial number"), ""},
00041         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4a8954671a0ccf2fc3ae64ba3363fc9cbMNOTE_CANON_TAG_CUSTOM_FUNCS , "CustomFunctions", i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Custom functions"), ""},
00042         {0, NULL, NULL, NULL}
00043 };
00044 
00045 static struct {
mnote-canon-tag_8c.html#f81b5c697b6608b9a512a4bf55f025e800046          mnote-canon-tag_8h.html#d5d5b446fddafa764414b055e559199cMnoteCanonTag  mnote-canon-tag_8c.html#f81b5c697b6608b9a512a4bf55f025e8tag ;
mnote-canon-tag_8c.html#18a0a47ed02ba4229ea27d2ac3ee506600047          unsigned int mnote-canon-entry_8c.html#18a0a47ed02ba4229ea27d2ac3ee5066subtag ;
mnote-canon-tag_8c.html#8f8f80d37794cde9472343e4487ba3eb00048          const char * mnote-canon-entry_8c.html#5ac083a645d964373f022d03df4849c8name ;
00049 } mnote-canon-tag_8c.html#28cff7daa8ce1cb695ba2097da625cbftable_sub [] = {
00050         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 ,  0, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Macro mode")},
00051         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 ,  1, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Self time")},
00052         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 ,  2, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Quality")},
00053         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 ,  3, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Flash mode")},
00054         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 ,  4, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Continuous drive mode")},
00055         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 ,  6, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Focus mode")},
00056         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 ,  9, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Image size")},
00057         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 10, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Easy shooting mode")},
00058         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 12, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Contrast")},
00059         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 13, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Saturation")},
00060         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 14, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Sharpness")},
00061         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 15, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("ISO")},
00062         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 16, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Metering mode")},
00063         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 17, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Focus type")},
00064         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 18, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("AF point selected")},
00065         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 19, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Exposure mode")},
00066         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 21, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Lens type")},
00067         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 22, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Long focal length of lens")},
00068         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 23, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Short focal length of lens")},
00069         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 24, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Focal units per mm")},
00070         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 25, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Maximal aperture")},
00071         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 27, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Flash activity")},
00072         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 28, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Flash details")},
00073         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 31, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Focus mode")},
00074         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 35, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Zoomed resolution")},
00075         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 36, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Zoomed resolution base")},
00076         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba4470cd16ac8c0eac0ef2775ed5aa78db9MNOTE_CANON_TAG_SETTINGS_1 , 41, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Color tone")},
00077         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba46c1137eb65df9cf52c252b797f6bae24MNOTE_CANON_TAG_SETTINGS_2 ,  6, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("White balance")},
00078         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba46c1137eb65df9cf52c252b797f6bae24MNOTE_CANON_TAG_SETTINGS_2 ,  8, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Sequence number")},
00079         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba46c1137eb65df9cf52c252b797f6bae24MNOTE_CANON_TAG_SETTINGS_2 , 13, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("AF point used")},
00080         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba46c1137eb65df9cf52c252b797f6bae24MNOTE_CANON_TAG_SETTINGS_2 , 14, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Flash bias")},
00081         { mnote-canon-tag_8h.html#ef5b4bff3b1e2938e0eabb6dafc5dba46c1137eb65df9cf52c252b797f6bae24MNOTE_CANON_TAG_SETTINGS_2 , 18, i18n_8h.html#75278405e7f034d2b1af80bfd94675feN_ ("Subject distance")},
00082         {0, 0, NULL}
00083 };
00084 
00085 const char *
mnote-canon-tag_8h.html#9aa99d3201f6da9f6eebcba0296987fb00086  mnote-canon-tag_8c.html#43680cce7697f8a0360db694695b979bmnote_canon_tag_get_name  ( mnote-canon-tag_8h.html#d5d5b446fddafa764414b055e559199cMnoteCanonTag  t)
00087 {
00088         unsigned int i;
00089 
00090         for (i = 0; i < sizeof ( mnote-canon-tag_8c.html#76c7996bcc2a41aaf9eb26b44061923btable ) / sizeof ( mnote-canon-tag_8c.html#76c7996bcc2a41aaf9eb26b44061923btable [0]); i++)
00091                 if (table[i]. mnote-canon-tag_8c.html#f81b5c697b6608b9a512a4bf55f025e8tag  == t) return ( i18n_8h.html#32a3cf3d9dd914f5aeeca5423c157934_ (table[i]. mnote-canon-entry_8c.html#5ac083a645d964373f022d03df4849c8name ));
00092         return NULL;
00093 }
00094 
00095 const char *
mnote-canon-tag_8h.html#4d06e05bcdf65f6f72da06fc827a44dc00096  mnote-canon-tag_8c.html#833ebae453473e518e4f575a50402432mnote_canon_tag_get_name_sub  ( mnote-canon-tag_8h.html#d5d5b446fddafa764414b055e559199cMnoteCanonTag  t, unsigned int s)
00097 {
00098         unsigned int i;
00099         for (i = 0; i < sizeof ( mnote-canon-tag_8c.html#28cff7daa8ce1cb695ba2097da625cbftable_sub ) / sizeof ( mnote-canon-tag_8c.html#28cff7daa8ce1cb695ba2097da625cbftable_sub [0]); i++)
00100                 if ((table_sub[i]. mnote-canon-tag_8c.html#f81b5c697b6608b9a512a4bf55f025e8tag  == t) && (table_sub[i]. mnote-canon-entry_8c.html#18a0a47ed02ba4229ea27d2ac3ee5066subtag  == s))
00101                         return i18n_8h.html#32a3cf3d9dd914f5aeeca5423c157934_ (table_sub[i]. mnote-canon-entry_8c.html#5ac083a645d964373f022d03df4849c8name );
00102         return mnote-canon-tag_8c.html#43680cce7697f8a0360db694695b979bmnote_canon_tag_get_name  (t);
00103 }
00104 
00105 const char *
mnote-canon-tag_8h.html#c406429d89cbea3b8540fd63ffcb436100106  mnote-canon-tag_8c.html#cc2de6053b7dc4336b3d36db1324aed3mnote_canon_tag_get_title  ( mnote-canon-tag_8h.html#d5d5b446fddafa764414b055e559199cMnoteCanonTag  t)
00107 {
00108         unsigned int i;
00109 
00110         i18n_8h.html#dd6dfc1077058ff26d79cdb18099d58abindtextdomain  (GETTEXT_PACKAGE, LOCALEDIR); 
00111         for (i = 0; i < sizeof ( mnote-canon-tag_8c.html#76c7996bcc2a41aaf9eb26b44061923btable ) / sizeof ( mnote-canon-tag_8c.html#76c7996bcc2a41aaf9eb26b44061923btable [0]); i++)
00112                 if (table[i]. mnote-canon-tag_8c.html#f81b5c697b6608b9a512a4bf55f025e8tag  == t) return ( i18n_8h.html#32a3cf3d9dd914f5aeeca5423c157934_ (table[i]. mnote-canon-tag_8c.html#8214780964530800368b406c681fd1d9title ));
00113         return NULL;
00114 }
00115 
00116 const char *
mnote-canon-tag_8h.html#77647bbbea50bf80e6bfa8c9569f274300117  mnote-canon-tag_8c.html#996a4d00a4928303dd1b560c29fff0bcmnote_canon_tag_get_title_sub  ( mnote-canon-tag_8h.html#d5d5b446fddafa764414b055e559199cMnoteCanonTag  t, unsigned int s)
00118 {
00119         unsigned int i;
00120         for (i = 0; i < sizeof ( mnote-canon-tag_8c.html#28cff7daa8ce1cb695ba2097da625cbftable_sub ) / sizeof ( mnote-canon-tag_8c.html#28cff7daa8ce1cb695ba2097da625cbftable_sub [0]); i++)
00121                 if ((table_sub[i]. mnote-canon-tag_8c.html#f81b5c697b6608b9a512a4bf55f025e8tag  == t) && (table_sub[i]. mnote-canon-entry_8c.html#18a0a47ed02ba4229ea27d2ac3ee5066subtag  == s))
00122                         return i18n_8h.html#32a3cf3d9dd914f5aeeca5423c157934_ (table_sub[i]. mnote-canon-entry_8c.html#5ac083a645d964373f022d03df4849c8name );
00123         return mnote-canon-tag_8c.html#cc2de6053b7dc4336b3d36db1324aed3mnote_canon_tag_get_title  (t);
00124 }
00125 
00126 const char *
mnote-canon-tag_8h.html#7e5cc094167e9a2f129eeaee0d6d7af000127  mnote-canon-tag_8c.html#74e4d64803187610d0174fe315492d45mnote_canon_tag_get_description  ( mnote-canon-tag_8h.html#d5d5b446fddafa764414b055e559199cMnoteCanonTag  t)
00128 {
00129         unsigned int i;
00130 
00131         i18n_8h.html#dd6dfc1077058ff26d79cdb18099d58abindtextdomain  (GETTEXT_PACKAGE, LOCALEDIR);
00132         for (i = 0; i < sizeof ( mnote-canon-tag_8c.html#76c7996bcc2a41aaf9eb26b44061923btable ) / sizeof ( mnote-canon-tag_8c.html#76c7996bcc2a41aaf9eb26b44061923btable [0]); i++)
00133                 if (table[i]. mnote-canon-tag_8c.html#f81b5c697b6608b9a512a4bf55f025e8tag  == t) return ( i18n_8h.html#32a3cf3d9dd914f5aeeca5423c157934_ (table[i]. mnote-canon-tag_8c.html#68344fa88cf4e86b5079fd69a5c22d57description ));
00134         return NULL;
00135 }
Generated on Sun Apr 23 02:19:18 2006 for EXIF library (libexif) Internals by 
http://www.doxygen.org/index.htmldoxygen  1.4.6 