1 /* mnote-olympus-data.h 2 * 3 * Copyright (c) 2002 Lutz Mueller <lutz@users.sourceforge.net> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the 17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * Boston, MA 02110-1301 USA. 19 * 20 * SPDX-License-Identifier: LGPL-2.0-or-later 21 */ 22 23 #ifndef LIBEXIF_EXIF_MNOTE_DATA_OLYMPUS_H 24 #define LIBEXIF_EXIF_MNOTE_DATA_OLYMPUS_H 25 26 #include <libexif/exif-mnote-data-priv.h> 27 #include <libexif/olympus/mnote-olympus-entry.h> 28 #include <libexif/exif-byte-order.h> 29 #include <libexif/exif-data.h> 30 #include <libexif/exif-mem.h> 31 32 enum OlympusVersion { 33 unrecognized = 0, 34 nikonV1 = 1, 35 nikonV2 = 2, 36 olympusV1 = 3, 37 olympusV2 = 4, 38 sanyoV1 = 5, 39 epsonV1 = 6, 40 nikonV0 = 7 41 }; 42 43 44 typedef struct _ExifMnoteDataOlympus ExifMnoteDataOlympus; 45 46 struct _ExifMnoteDataOlympus { 47 ExifMnoteData parent; 48 49 MnoteOlympusEntry *entries; 50 unsigned int count; 51 52 ExifByteOrder order; 53 unsigned int offset; 54 enum OlympusVersion version; 55 }; 56 57 /*! Detect if MakerNote is recognized as one handled by the Olympus module. 58 * 59 * \param[in] ed image #ExifData to identify as as an Olympus type 60 * \param[in] e #ExifEntry for EXIF_TAG_MAKER_NOTE, from within ed but 61 * duplicated here for convenience 62 * \return 0 if not recognized, nonzero if recognized. The specific nonzero 63 * value returned may identify a subtype unique within this module. 64 */ 65 int exif_mnote_data_olympus_identify (const ExifData *ed, const ExifEntry *e); 66 67 ExifMnoteData *exif_mnote_data_olympus_new (ExifMem *); 68 69 #endif /* !defined(LIBEXIF_EXIF_MNOTE_DATA_OLYMPUS_H) */ 70