00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <stdlib.h>
00022
00023 #include <config.h>
00024 #include <libexif/i18n.h>
00025
00026 #include "mnote-fuji-tag.h"
00027
00028
00029 static const struct {
00030 MnoteFujiTag tag;
00031 const char *name;
00032 const char *title;
00033 const char *description;
00034 } table[] = {
00035 #ifndef NO_VERBOSE_TAG_STRINGS
00036 {MNOTE_FUJI_TAG_VERSION, "Version", N_("Maker Note Version"), ""},
00037 {MNOTE_FUJI_TAG_SERIAL_NUMBER, "SerialNumber", N_("Serial Number"), N_("This number is unique and based on the date of manufacture.")},
00038 {MNOTE_FUJI_TAG_QUALITY, "Quality", N_("Quality"), ""},
00039 {MNOTE_FUJI_TAG_SHARPNESS, "Sharpness", N_("Sharpness"), ""},
00040 {MNOTE_FUJI_TAG_WHITE_BALANCE, "WhiteBalance", N_("White Balance"), ""},
00041 {MNOTE_FUJI_TAG_COLOR, "ChromaticitySaturation", N_("Chromaticity Saturation"), ""},
00042 {MNOTE_FUJI_TAG_TONE, "Contrast", N_("Contrast"), ""},
00043 {MNOTE_FUJI_TAG_FLASH_MODE, "FlashMode", N_("Flash Mode"), ""},
00044 {MNOTE_FUJI_TAG_FLASH_STRENGTH, "FlashStrength", N_("Flash Firing Strength Compensation"), ""},
00045 {MNOTE_FUJI_TAG_MACRO, "MacroMode", N_("Macro Mode"), ""},
00046 {MNOTE_FUJI_TAG_FOCUS_MODE, "FocusingMode", N_("Focusing Mode"), ""},
00047 {MNOTE_FUJI_TAG_FOCUS_POINT, "FocusPoint", N_("Focus Point"), ""},
00048 {MNOTE_FUJI_TAG_SLOW_SYNC, "SlowSynchro", N_("Slow Synchro Mode"), ""},
00049 {MNOTE_FUJI_TAG_PICTURE_MODE, "PictureMode", N_("Picture Mode"), ""},
00050 {MNOTE_FUJI_TAG_CONT_TAKING, "ContinuousTaking", N_("Continuous Taking"), ""},
00051 {MNOTE_FUJI_TAG_SEQUENCE_NUMBER, "ContinuousSequence", N_("Continuous Sequence Number"), ""},
00052 {MNOTE_FUJI_TAG_FINEPIX_COLOR, "FinePixColor", N_("FinePix Color"), ""},
00053 {MNOTE_FUJI_TAG_BLUR_CHECK, "BlurCheck", N_("Blur Check"), ""},
00054 {MNOTE_FUJI_TAG_FOCUS_CHECK, "AutoFocusCheck", N_("Auto Focus Check"), ""},
00055 {MNOTE_FUJI_TAG_AUTO_EXPOSURE_CHECK, "AutoExposureCheck", N_("Auto Exposure Check"), ""},
00056 {MNOTE_FUJI_TAG_DYNAMIC_RANGE, "DynamicRange", N_("Dynamic Range"), ""},
00057 {MNOTE_FUJI_TAG_FILM_MODE, "FilmMode", N_("Film Simulation Mode"), ""},
00058 {MNOTE_FUJI_TAG_DYNAMIC_RANGE_SETTING, "DRangeMode", N_("Dynamic Range Wide Mode"), ""},
00059 {MNOTE_FUJI_TAG_DEV_DYNAMIC_RANGE_SETTING, "DevDRangeMode", N_("Development Dynamic Range Wide Mode"), ""},
00060 {MNOTE_FUJI_TAG_MIN_FOCAL_LENGTH, "MinFocalLen", N_("Minimum Focal Length"), ""},
00061 {MNOTE_FUJI_TAG_MAX_FOCAL_LENGTH, "MaxFocalLen", N_("Maximum Focal Length"), ""},
00062 {MNOTE_FUJI_TAG_MAX_APERT_AT_MIN_FOC, "MaxApertAtMinFoc", N_("Maximum Aperture at Minimum Focal"), ""},
00063 {MNOTE_FUJI_TAG_MAX_APERT_AT_MAX_FOC, "MaxApertAtMaxFoc", N_("Maximum Aperture at Maximum Focal"), ""},
00064 {MNOTE_FUJI_TAG_FILE_SOURCE, "FileSource", N_("File Source"), ""},
00065 {MNOTE_FUJI_TAG_ORDER_NUMBER, "OrderNumber", N_("Order Number"), ""},
00066 {MNOTE_FUJI_TAG_FRAME_NUMBER, "FrameNumber", N_("Frame Number"), ""},
00067 #endif
00068 {0, NULL, NULL, NULL}
00069 };
00070
00071 const char *
00072 mnote_fuji_tag_get_name (MnoteFujiTag t)
00073 {
00074 unsigned int i;
00075
00076 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++)
00077 if (table[i].tag == t) return (table[i].name);
00078 return NULL;
00079 }
00080
00081 const char *
00082 mnote_fuji_tag_get_title (MnoteFujiTag t)
00083 {
00084 unsigned int i;
00085
00086 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
00087 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++)
00088 if (table[i].tag == t) return (_(table[i].title));
00089 return NULL;
00090 }
00091
00092 const char *
00093 mnote_fuji_tag_get_description (MnoteFujiTag t)
00094 {
00095 unsigned int i;
00096
00097 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++)
00098 if (table[i].tag == t) {
00099 if (!table[i].description || !*table[i].description)
00100 return "";
00101 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
00102 return _(table[i].description);
00103 }
00104 return NULL;
00105 }