• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* exif-mnote-data-pentax.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_PENTAX_H
24 #define LIBEXIF_EXIF_MNOTE_DATA_PENTAX_H
25 
26 #include <libexif/exif-byte-order.h>
27 #include <libexif/exif-mnote-data.h>
28 #include <libexif/exif-mnote-data-priv.h>
29 #include <libexif/pentax/mnote-pentax-entry.h>
30 #include <libexif/exif-data.h>
31 #include <libexif/exif-mem.h>
32 
33 enum PentaxVersion {pentaxV1 = 1, pentaxV2 = 2, pentaxV3 = 3, casioV2 = 4 };
34 
35 typedef struct _ExifMnoteDataPentax ExifMnoteDataPentax;
36 
37 struct _ExifMnoteDataPentax {
38 	ExifMnoteData parent;
39 
40 	MnotePentaxEntry *entries;
41 	unsigned int count;
42 
43 	ExifByteOrder order;
44 	unsigned int offset;
45 
46 	enum PentaxVersion version;
47 };
48 
49 /*! Detect if MakerNote is recognized as one handled by the Pentax module.
50  *
51  * \param[in] ed image #ExifData to identify as as a Pentax type
52  * \param[in] e #ExifEntry for EXIF_TAG_MAKER_NOTE, from within ed but
53  *   duplicated here for convenience
54  * \return 0 if not recognized, nonzero if recognized. The specific nonzero
55  *   value returned may identify a subtype unique within this module.
56  */
57 int exif_mnote_data_pentax_identify (const ExifData *ed, const ExifEntry *e);
58 
59 ExifMnoteData *exif_mnote_data_pentax_new (ExifMem *);
60 
61 #endif /* !defined(LIBEXIF_EXIF_MNOTE_DATA_PENTAX_H) */
62