Exiv2
makernote_int.hpp
1 // ***************************************************************** -*- C++ -*-
2 /*
3  * Copyright (C) 2004-2021 Exiv2 authors
4  * This program is part of the Exiv2 distribution.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
19  */
20 #ifndef MAKERNOTE_INT_HPP_
21 #define MAKERNOTE_INT_HPP_
22 
23 // *****************************************************************************
24 // included header files
25 #include "tifffwd_int.hpp"
26 #include "tags_int.hpp"
27 #include "ini.hpp"
28 #include "types.hpp"
29 
30 // + standard includes
31 #include <string>
32 
33 // *****************************************************************************
34 // namespace extensions
35 namespace Exiv2 {
36  namespace Internal {
37 // *****************************************************************************
38 // function prototypes
42  std::string getExiv2ConfigPath();
43 
47  std::string readExiv2Config(const std::string& section,const std::string& value,const std::string& def);
48 
49 
50 // *****************************************************************************
51 // class definitions
52 
54  typedef TiffComponent* (*NewMnFct)(uint16_t tag,
55  IfdId group,
56  IfdId mnGroup,
57  const byte* pData,
58  uint32_t size,
59  ByteOrder byteOrder);
60 
62  typedef TiffComponent* (*NewMnFct2)(uint16_t tag,
63  IfdId group,
64  IfdId mnGroup);
65 
67  struct TiffMnRegistry {
68  struct MakeKey;
76  bool operator==(const std::string& key) const;
77 
79  bool operator==(IfdId key) const;
80 
81  // DATA
82  const char* make_;
86  };
87 
91  class TiffMnCreator {
92  public:
104  static TiffComponent* create(uint16_t tag,
105  IfdId group,
106  const std::string& make,
107  const byte* pData,
108  uint32_t size,
109  ByteOrder byteOrder);
114  static TiffComponent* create(uint16_t tag,
115  IfdId group,
116  IfdId mnGroup);
117 
118  protected:
121  private:
122  static const TiffMnRegistry registry_[]; //<! List of makernotes
123  }; // class TiffMnCreator
124 
126  class MnHeader {
127  public:
129 
130  virtual ~MnHeader();
133 
135  virtual bool read(const byte* pData,
137  uint32_t size,
138  ByteOrder byteOrder) =0;
142  virtual void setByteOrder(ByteOrder byteOrder);
144 
146  virtual uint32_t size() const =0;
149  virtual uint32_t write(IoWrapper& ioWrapper,
150  ByteOrder byteOrder) const =0;
155  virtual uint32_t ifdOffset() const;
161  virtual ByteOrder byteOrder() const;
167  virtual uint32_t baseOffset(uint32_t mnOffset) const;
169 
170  }; // class MnHeader
171 
173  class OlympusMnHeader : public MnHeader {
174  public:
176 
177  OlympusMnHeader();
180  virtual ~OlympusMnHeader();
182 
184  virtual bool read(const byte* pData,
185  uint32_t size,
188 
190  virtual uint32_t size() const;
191  virtual uint32_t write(IoWrapper& ioWrapper, ByteOrder byteOrder) const;
192  virtual uint32_t ifdOffset() const;
194  static uint32_t sizeOfSignature();
196 
197  private:
198  DataBuf header_;
199  static const byte signature_[];
200 
201  }; // class OlympusMnHeader
202 
204  class Olympus2MnHeader : public MnHeader {
205  public:
207 
211  virtual ~Olympus2MnHeader();
213 
215  virtual bool read(const byte* pData,
216  uint32_t size,
219 
221  virtual uint32_t size() const;
222  virtual uint32_t write(IoWrapper& ioWrapper, ByteOrder byteOrder) const;
223  virtual uint32_t ifdOffset() const;
224  virtual uint32_t baseOffset(uint32_t mnOffset) const;
226  static uint32_t sizeOfSignature();
228 
229  private:
230  DataBuf header_;
231  static const byte signature_[];
232 
233  }; // class Olympus2MnHeader
234 
236  class FujiMnHeader : public MnHeader {
237  public:
239 
240  FujiMnHeader();
243  virtual ~FujiMnHeader();
245 
247  virtual bool read(const byte* pData,
248  uint32_t size,
250  // setByteOrder not implemented
252 
254  virtual uint32_t size() const;
255  virtual uint32_t write(IoWrapper& ioWrapper, ByteOrder byteOrder) const;
256  virtual uint32_t ifdOffset() const;
257  virtual ByteOrder byteOrder() const;
258  virtual uint32_t baseOffset(uint32_t mnOffset) const;
260  static uint32_t sizeOfSignature();
262 
263  private:
264  DataBuf header_;
265  static const byte signature_[];
266  static const ByteOrder byteOrder_;
267  uint32_t start_;
268 
269  }; // class FujiMnHeader
270 
272  class Nikon2MnHeader : public MnHeader {
273  public:
275 
276  Nikon2MnHeader();
279  virtual ~Nikon2MnHeader();
281 
283  virtual bool read(const byte* pData,
284  uint32_t size,
287 
289  virtual uint32_t size() const;
290  virtual uint32_t write(IoWrapper& ioWrapper, ByteOrder byteOrder) const;
291  virtual uint32_t ifdOffset() const;
293  static uint32_t sizeOfSignature();
295 
296  private:
297  DataBuf buf_;
298  uint32_t start_;
299  static const byte signature_[];
300 
301  }; // class Nikon2MnHeader
302 
304  class Nikon3MnHeader : public MnHeader {
305  public:
307 
308  Nikon3MnHeader();
311  virtual ~Nikon3MnHeader();
313 
315  virtual bool read(const byte* pData,
316  uint32_t size,
318  virtual void setByteOrder(ByteOrder byteOrder);
320 
322  virtual uint32_t size() const;
323  virtual uint32_t write(IoWrapper& ioWrapper, ByteOrder byteOrder) const;
324  virtual uint32_t ifdOffset() const;
325  virtual ByteOrder byteOrder() const;
326  virtual uint32_t baseOffset(uint32_t mnOffset) const;
328  static uint32_t sizeOfSignature();
330 
331  private:
332  DataBuf buf_;
333  ByteOrder byteOrder_;
334  uint32_t start_;
335  static const byte signature_[];
336 
337  }; // class Nikon3MnHeader
338 
340  class PanasonicMnHeader : public MnHeader {
341  public:
343 
347  virtual ~PanasonicMnHeader();
349 
351  virtual bool read(const byte* pData,
352  uint32_t size,
355 
357  virtual uint32_t size() const;
358  virtual uint32_t write(IoWrapper& ioWrapper, ByteOrder byteOrder) const;
359  virtual uint32_t ifdOffset() const;
361  static uint32_t sizeOfSignature();
363 
364  private:
365  DataBuf buf_;
366  uint32_t start_;
367  static const byte signature_[];
368 
369  }; // class PanasonicMnHeader
370 
372  class PentaxDngMnHeader : public MnHeader {
373  public:
375 
379  virtual ~PentaxDngMnHeader();
381 
383  virtual bool read(const byte* pData,
384  uint32_t size,
387 
389  virtual uint32_t size() const;
390  virtual uint32_t write(IoWrapper& ioWrapper, ByteOrder byteOrder) const;
391  virtual uint32_t ifdOffset() const;
392  virtual uint32_t baseOffset(uint32_t mnOffset) const;
394  static uint32_t sizeOfSignature();
396 
397  private:
398  DataBuf header_;
399  static const byte signature_[];
400 
401  }; // class PentaxDngMnHeader
402 
404  class PentaxMnHeader : public MnHeader {
405  public:
407 
408  PentaxMnHeader();
411  virtual ~PentaxMnHeader();
413 
415  virtual bool read(const byte* pData,
416  uint32_t size,
419 
421  virtual uint32_t size() const;
422  virtual uint32_t write(IoWrapper& ioWrapper, ByteOrder byteOrder) const;
423  virtual uint32_t ifdOffset() const;
425  static uint32_t sizeOfSignature();
427 
428  private:
429  DataBuf header_;
430  static const byte signature_[];
431 
432  }; // class PentaxMnHeader
433 
435  class SamsungMnHeader : public MnHeader {
436  public:
438 
439  SamsungMnHeader();
442 
444  virtual bool read(const byte* pData,
445  uint32_t size,
448 
450  virtual uint32_t size() const;
451  virtual uint32_t write(IoWrapper& ioWrapper, ByteOrder byteOrder) const;
452  virtual uint32_t baseOffset(uint32_t mnOffset) const;
454 
455  }; // class SamsungMnHeader
456 
458  class SigmaMnHeader : public MnHeader {
459  public:
461 
462  SigmaMnHeader();
465  virtual ~SigmaMnHeader();
467 
469  virtual bool read(const byte* pData,
470  uint32_t size,
473 
475  virtual uint32_t size() const;
476  virtual uint32_t write(IoWrapper& ioWrapper, ByteOrder byteOrder) const;
477  virtual uint32_t ifdOffset() const;
479  static uint32_t sizeOfSignature();
481 
482  private:
483  DataBuf buf_;
484  uint32_t start_;
485  static const byte signature1_[];
486  static const byte signature2_[];
487 
488  }; // class SigmaMnHeader
489 
491  class SonyMnHeader : public MnHeader {
492  public:
494 
495  SonyMnHeader();
498  virtual ~SonyMnHeader();
500 
502  virtual bool read(const byte* pData,
503  uint32_t size,
506 
508  virtual uint32_t size() const;
509  virtual uint32_t write(IoWrapper& ioWrapper, ByteOrder byteOrder) const;
510  virtual uint32_t ifdOffset() const;
512  static uint32_t sizeOfSignature();
514 
515  private:
516  DataBuf buf_;
517  uint32_t start_;
518  static const byte signature_[];
519 
520  }; // class SonyMnHeader
521 
523  class Casio2MnHeader : public MnHeader {
524  public:
526 
527  Casio2MnHeader();
530  virtual ~Casio2MnHeader();
532 
534  virtual bool read(const byte* pData,
535  uint32_t size,
538 
540  virtual uint32_t size() const;
541  virtual uint32_t write(IoWrapper& ioWrapper, ByteOrder byteOrder) const;
542  virtual uint32_t ifdOffset() const;
543  virtual ByteOrder byteOrder() const;
545  static uint32_t sizeOfSignature();
547 
548  private:
549  DataBuf buf_;
550  uint32_t start_;
551  static const byte signature_[];
552  static const ByteOrder byteOrder_;
553 
554  }; // class Casio2MnHeader
555 
556  // *****************************************************************************
557 // template, inline and free functions
558 
560  TiffComponent* newIfdMn(uint16_t tag,
561  IfdId group,
562  IfdId mnGroup,
563  const byte* pData,
564  uint32_t size,
565  ByteOrder byteOrder);
566 
568  TiffComponent* newIfdMn2(uint16_t tag,
569  IfdId group,
570  IfdId mnGroup);
571 
573  TiffComponent* newOlympusMn(uint16_t tag,
574  IfdId group,
575  IfdId mnGroup,
576  const byte* pData,
577  uint32_t size,
578  ByteOrder byteOrder);
579 
581  TiffComponent* newOlympusMn2(uint16_t tag,
582  IfdId group,
583  IfdId mnGroup);
584 
586  TiffComponent* newOlympus2Mn2(uint16_t tag,
587  IfdId group,
588  IfdId mnGroup);
589 
591  TiffComponent* newFujiMn(uint16_t tag,
592  IfdId group,
593  IfdId mnGroup,
594  const byte* pData,
595  uint32_t size,
596  ByteOrder byteOrder);
597 
599  TiffComponent* newFujiMn2(uint16_t tag,
600  IfdId group,
601  IfdId mnGroup);
602 
607  TiffComponent* newNikonMn(uint16_t tag,
608  IfdId group,
609  IfdId mnGroup,
610  const byte* pData,
611  uint32_t size,
612  ByteOrder byteOrder);
613 
615  TiffComponent* newNikon2Mn2(uint16_t tag,
616  IfdId group,
617  IfdId mnGroup);
618 
620  TiffComponent* newNikon3Mn2(uint16_t tag,
621  IfdId group,
622  IfdId mnGroup);
623 
625  TiffComponent* newPanasonicMn(uint16_t tag,
626  IfdId group,
627  IfdId mnGroup,
628  const byte* pData,
629  uint32_t size,
630  ByteOrder byteOrder);
631 
633  TiffComponent* newPanasonicMn2(uint16_t tag,
634  IfdId group,
635  IfdId mnGroup);
636 
638  TiffComponent* newPentaxMn(uint16_t tag,
639  IfdId group,
640  IfdId mnGroup,
641  const byte* pData,
642  uint32_t size,
643  ByteOrder byteOrder);
644 
646  TiffComponent* newPentaxMn2(uint16_t tag,
647  IfdId group,
648  IfdId mnGroup);
649 
651  TiffComponent* newPentaxDngMn2(uint16_t tag,
652  IfdId group,
653  IfdId mnGroup);
654 
656  TiffComponent* newSamsungMn(uint16_t tag,
657  IfdId group,
658  IfdId mnGroup,
659  const byte* pData,
660  uint32_t size,
661  ByteOrder byteOrder);
662 
664  TiffComponent* newSamsungMn2(uint16_t tag,
665  IfdId group,
666  IfdId mnGroup);
667 
669  TiffComponent* newSigmaMn(uint16_t tag,
670  IfdId group,
671  IfdId mnGroup,
672  const byte* pData,
673  uint32_t size,
674  ByteOrder byteOrder);
675 
677  TiffComponent* newSigmaMn2(uint16_t tag,
678  IfdId group,
679  IfdId mnGroup);
680 
682  TiffComponent* newSonyMn(uint16_t tag,
683  IfdId group,
684  IfdId mnGroup,
685  const byte* pData,
686  uint32_t size,
687  ByteOrder byteOrder);
688 
690  TiffComponent* newSony1Mn2(uint16_t tag,
691  IfdId group,
692  IfdId mnGroup);
693 
695  TiffComponent* newSony2Mn2(uint16_t tag,
696  IfdId group,
697  IfdId mnGroup);
698 
700  TiffComponent* newCasioMn(uint16_t tag,
701  IfdId group,
702  IfdId mnGroup,
703  const byte* pData,
704  uint32_t size,
705  ByteOrder byteOrder);
706 
708  TiffComponent* newCasio2Mn2(uint16_t tag,
709  IfdId group,
710  IfdId mnGroup);
711 
721  int sonyCsSelector(uint16_t tag, const byte* pData, uint32_t size, TiffComponent* const pRoot);
722 
732  int sony2010eSelector(uint16_t tag, const byte* pData, uint32_t size, TiffComponent* const pRoot);
733 
743  int nikonSelector(uint16_t tag, const byte* pData, uint32_t size, TiffComponent* const pRoot);
744 
754  int nikonAf2Selector(uint16_t tag, const byte* pData, uint32_t size, TiffComponent* const pRoot);
755 
772  DataBuf nikonCrypt(uint16_t tag, const byte* pData, uint32_t size, TiffComponent* const pRoot);
773 
774 }} // namespace Internal, Exiv2
775 
776 #endif // #ifndef MAKERNOTE_INT_HPP_
Exiv2::Internal::TiffComponent::accept
void accept(TiffVisitor &visitor)
Interface to accept visitors (Visitor pattern). Visitors can perform operations on all components of ...
Definition: tiffcomposite_int.cpp:883
Exiv2::Internal::SonyMnHeader::~SonyMnHeader
virtual ~SonyMnHeader()
Virtual destructor.
Definition: makernote_int.cpp:763
Exiv2::Internal::OlympusMnHeader::ifdOffset
virtual uint32_t ifdOffset() const
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of t...
Definition: makernote_int.cpp:253
Exiv2::Internal::nikonArrayIdx
const NikonArrayIdx nikonArrayIdx[]
Nikon binary array version lookup table.
Exiv2::Internal::SigmaMnHeader::size
virtual uint32_t size() const
Return the size of the header (in bytes).
Definition: makernote_int.cpp:719
Exiv2::Internal::TiffMnRegistry::newMnFct_
NewMnFct newMnFct_
Makernote create function (image)
Definition: makernote_int.hpp:84
Exiv2::Internal::FujiMnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)
Read the header from a data buffer, return true if ok.
Definition: makernote_int.cpp:372
Exiv2::Internal::sonyCsSelector
int sonyCsSelector(uint16_t, const byte *, uint32_t, TiffComponent *const pRoot)
Function to select cfg + def of the Sony Camera Settings complex binary array.
Definition: makernote_int.cpp:1237
Exiv2::Internal::SamsungMnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const
Write the header to a data buffer, return the number of bytes written.
Definition: makernote_int.cpp:691
Exiv2::Internal::OlympusMnHeader::OlympusMnHeader
OlympusMnHeader()
Default constructor.
Definition: makernote_int.cpp:239
Exiv2::Internal::SigmaMnHeader::sizeOfSignature
static uint32_t sizeOfSignature()
Return the size of the makernote header signature.
Definition: makernote_int.cpp:704
Exiv2::Internal::TiffFinder::init
void init(uint16_t tag, IfdId group)
Initialize the Finder for a new search.
Definition: tiffvisitor_int.cpp:120
Exiv2::Internal::NikonArrayIdx::idx_
int idx_
Index into the array set.
Definition: makernote_int.cpp:1141
Exiv2::DataBuf::pData_
byte * pData_
Pointer to the buffer, 0 if none has been allocated.
Definition: types.hpp:258
Exiv2::Internal::NikonArrayIdx
Structure for an index into the array set of complex binary arrays.
Definition: makernote_int.cpp:1121
Exiv2::Internal::FujiMnHeader::byteOrder
virtual ByteOrder byteOrder() const
Return the byte order for the makernote. If the return value is invalidByteOrder, this means that the...
Definition: makernote_int.cpp:362
Exiv2::Internal::TiffEntryBase
This abstract base class provides the common functionality of an IFD directory entry and defines an e...
Definition: tiffcomposite_int.hpp:411
Exiv2::Internal::Nikon3MnHeader::size
virtual uint32_t size() const
Return the size of the header (in bytes).
Definition: makernote_int.cpp:465
Exiv2::Internal::PentaxMnHeader::~PentaxMnHeader
virtual ~PentaxMnHeader()
Virtual destructor.
Definition: makernote_int.cpp:634
Exiv2::make
EXIV2API ExifData::const_iterator make(const ExifData &ed)
Return the camera make.
Definition: easyaccess.cpp:437
Exiv2::Internal::Olympus2MnHeader::size
virtual uint32_t size() const
Return the size of the header (in bytes).
Definition: makernote_int.cpp:297
Exiv2::Internal::TiffMnCreator::~TiffMnCreator
~TiffMnCreator()
Prevent destruction (needed if used as a policy class)
Definition: makernote_int.hpp:120
Exiv2::Internal::newCasio2Mn2
TiffComponent * newCasio2Mn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create a Casio2 makernote.
Definition: makernote_int.cpp:1113
Exiv2::Internal::IfdId
IfdId
Type to specify the IFD to which a metadata belongs.
Definition: tags_int.hpp:46
Exiv2::Internal::PanasonicMnHeader::ifdOffset
virtual uint32_t ifdOffset() const
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of t...
Definition: makernote_int.cpp:542
Exiv2::Internal::SamsungMnHeader
Header of a Samsung Makernote, only used for the relative offset.
Definition: makernote_int.hpp:435
Exiv2::Internal::NikonArrayIdx::ver_
const char * ver_
Version string.
Definition: makernote_int.cpp:1139
Exiv2::Internal::newFujiMn2
TiffComponent * newFujiMn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create a Fujifilm makernote.
Definition: makernote_int.cpp:915
Exiv2::Internal::TiffHeader
Standard TIFF header structure.
Definition: tiffimage_int.hpp:142
Exiv2::Internal::PentaxDngMnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)
Read the header from a data buffer, return true if ok.
Definition: makernote_int.cpp:599
Exiv2::Internal::OlympusMnHeader::sizeOfSignature
static uint32_t sizeOfSignature()
Return the size of the makernote header signature.
Definition: makernote_int.cpp:234
Exiv2::Internal::PentaxDngMnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const
Write the header to a data buffer, return the number of bytes written.
Definition: makernote_int.cpp:613
Exiv2::Internal::PanasonicMnHeader::PanasonicMnHeader
PanasonicMnHeader()
Default constructor.
Definition: makernote_int.cpp:528
Exiv2::Internal::newOlympusMn
TiffComponent * newOlympusMn(uint16_t tag, IfdId group, IfdId, const byte *pData, uint32_t size, ByteOrder)
Function to create an Olympus makernote.
Definition: makernote_int.cpp:871
Exiv2::Internal::Casio2MnHeader::Casio2MnHeader
Casio2MnHeader()
Default constructor.
Definition: makernote_int.cpp:806
Exiv2::Internal::newNikon2Mn2
TiffComponent * newNikon2Mn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create a Nikon2 makernote.
Definition: makernote_int.cpp:952
Exiv2::Internal::Olympus2MnHeader::ifdOffset
virtual uint32_t ifdOffset() const
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of t...
Definition: makernote_int.cpp:302
Exiv2::Internal::TiffFinder::result
TiffComponent * result() const
Return the search result. 0 if no TIFF component was found for the tag and group combination.
Definition: tiffvisitor_int.hpp:202
Exiv2::Internal::TiffComponent
Interface class for components of a TIFF directory hierarchy (Composite pattern). Both TIFF directori...
Definition: tiffcomposite_int.hpp:171
Exiv2::Internal::Olympus2MnHeader::sizeOfSignature
static uint32_t sizeOfSignature()
Return the size of the makernote header signature.
Definition: makernote_int.cpp:283
Exiv2::Internal::Nikon3MnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)
Read the header from a data buffer, return true if ok.
Definition: makernote_int.cpp:485
Exiv2::Internal::TiffMnRegistry
Makernote registry structure.
Definition: makernote_int.hpp:67
Exiv2::Internal::NikonArrayIdx::tag_
uint16_t tag_
Tag number of the binary array.
Definition: makernote_int.cpp:1138
Exiv2::Internal::nikonAf2Selector
int nikonAf2Selector(uint16_t tag, const byte *, uint32_t size, TiffComponent *const)
Function to select cfg + def of a Nikon complex binary array.
Definition: makernote_int.cpp:1190
Exiv2::Internal::Nikon3MnHeader::baseOffset
virtual uint32_t baseOffset(uint32_t mnOffset) const
Return the base offset for the makernote IFD entries relative to the start of the TIFF header....
Definition: makernote_int.cpp:480
Exiv2::Internal::FujiMnHeader
Header of a Fujifilm Makernote.
Definition: makernote_int.hpp:236
Exiv2::Internal::SonyMnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)
Read the header from a data buffer, return true if ok.
Definition: makernote_int.cpp:777
Exiv2::Internal::Nikon2MnHeader::size
virtual uint32_t size() const
Return the size of the header (in bytes).
Definition: makernote_int.cpp:414
Exiv2::Internal::Nikon3MnHeader::sizeOfSignature
static uint32_t sizeOfSignature()
Return the size of the makernote header signature.
Definition: makernote_int.cpp:448
Exiv2::Internal::NikonArrayIdx::start_
uint32_t start_
Start of the encrypted data.
Definition: makernote_int.cpp:1142
Exiv2::Internal::PentaxDngMnHeader
Header of an Pentax DNG Makernote.
Definition: makernote_int.hpp:372
Exiv2::Value::count
virtual long count() const =0
Return the number of components of the value.
Exiv2::Internal::TiffHeaderBase::read
virtual bool read(const byte *pData, uint32_t size)
Read the image header from a data buffer. Return false if the data buffer does not contain an image h...
Definition: tiffimage_int.cpp:1900
Exiv2::Internal::Olympus2MnHeader
Header of an Olympus II Makernote.
Definition: makernote_int.hpp:204
Exiv2::Internal::OlympusMnHeader
Header of an Olympus Makernote.
Definition: makernote_int.hpp:173
Exiv2::Internal::sony2010eSelector
int sony2010eSelector(uint16_t, const byte *, uint32_t, TiffComponent *const pRoot)
Function to select cfg + def of the Sony 2010 Miscellaneous Information complex binary array.
Definition: makernote_int.cpp:1248
Exiv2::Internal::Casio2MnHeader::~Casio2MnHeader
virtual ~Casio2MnHeader()
Virtual destructor.
Definition: makernote_int.cpp:811
Exiv2::Internal::newCasioMn
TiffComponent * newCasioMn(uint16_t tag, IfdId group, IfdId, const byte *pData, uint32_t size, ByteOrder)
Function to create a Casio2 makernote.
Definition: makernote_int.cpp:1097
Exiv2::Internal::Nikon3MnHeader::~Nikon3MnHeader
virtual ~Nikon3MnHeader()
Virtual destructor.
Definition: makernote_int.cpp:461
Exiv2::Internal::NikonArrayIdx::Key::Key
Key(uint16_t tag, const char *ver, uint32_t size)
Constructor.
Definition: makernote_int.cpp:1125
Exiv2::Internal::MnHeader::~MnHeader
virtual ~MnHeader()
Virtual destructor.
Definition: makernote_int.cpp:207
Exiv2::Internal::PentaxDngMnHeader::baseOffset
virtual uint32_t baseOffset(uint32_t mnOffset) const
Return the base offset for the makernote IFD entries relative to the start of the TIFF header....
Definition: makernote_int.cpp:589
Exiv2::Internal::PanasonicMnHeader::~PanasonicMnHeader
virtual ~PanasonicMnHeader()
Virtual destructor.
Definition: makernote_int.cpp:533
Exiv2::Internal::SamsungMnHeader::SamsungMnHeader
SamsungMnHeader()
Default constructor.
Definition: makernote_int.cpp:669
Exiv2::Internal::newPentaxMn
TiffComponent * newPentaxMn(uint16_t tag, IfdId group, IfdId, const byte *pData, uint32_t size, ByteOrder)
Function to create an Pentax makernote.
Definition: makernote_int.cpp:985
Exiv2::Internal::Olympus2MnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)
Read the header from a data buffer, return true if ok.
Definition: makernote_int.cpp:312
Exiv2::Internal::Olympus2MnHeader::Olympus2MnHeader
Olympus2MnHeader()
Default constructor.
Definition: makernote_int.cpp:288
Exiv2::Internal::SonyMnHeader::sizeOfSignature
static uint32_t sizeOfSignature()
Return the size of the makernote header signature.
Definition: makernote_int.cpp:753
Exiv2::Internal::TiffEntryBase::pValue
const Value * pValue() const
Return a const pointer to the converted value of this component.
Definition: tiffcomposite_int.hpp:473
Exiv2::Internal::IoWrapper
Simple IO wrapper to ensure that the header is only written if there is any other data at all.
Definition: tiffcomposite_int.hpp:121
Exiv2::Internal::newSamsungMn
TiffComponent * newSamsungMn(uint16_t tag, IfdId group, IfdId mnGroup, const byte *pData, uint32_t size, ByteOrder)
Function to create a Samsung makernote.
Definition: makernote_int.cpp:1016
Exiv2::Internal::newNikon3Mn2
TiffComponent * newNikon3Mn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create a Nikon3 makernote.
Definition: makernote_int.cpp:959
Exiv2::Internal::PentaxDngMnHeader::PentaxDngMnHeader
PentaxDngMnHeader()
Default constructor.
Definition: makernote_int.cpp:575
Exiv2::Internal::NikonArrayIdx::operator==
bool operator==(const Key &key) const
Comparison operator for a key.
Definition: makernote_int.cpp:1131
Exiv2::Internal::newSamsungMn2
TiffComponent * newSamsungMn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create a Samsung makernote.
Definition: makernote_int.cpp:1038
Exiv2::Internal::Casio2MnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)
Read the header from a data buffer, return true if ok.
Definition: makernote_int.cpp:830
Exiv2::Internal::PanasonicMnHeader::size
virtual uint32_t size() const
Return the size of the header (in bytes).
Definition: makernote_int.cpp:537
Exiv2::Internal::SigmaMnHeader
Header of a Sigma Makernote.
Definition: makernote_int.hpp:458
Exiv2::Internal::MnHeader::size
virtual uint32_t size() const =0
Return the size of the header (in bytes).
Exiv2::Internal::getExiv2ConfigPath
std::string getExiv2ConfigPath()
Determine the path to the Exiv2 configuration file.
Definition: makernote_int.cpp:94
Exiv2::Internal::newPanasonicMn
TiffComponent * newPanasonicMn(uint16_t tag, IfdId group, IfdId mnGroup, const byte *, uint32_t size, ByteOrder)
Function to create a Panasonic makernote.
Definition: makernote_int.cpp:966
Exiv2::Internal::FujiMnHeader::baseOffset
virtual uint32_t baseOffset(uint32_t mnOffset) const
Return the base offset for the makernote IFD entries relative to the start of the TIFF header....
Definition: makernote_int.cpp:367
Exiv2::Internal::SamsungMnHeader::size
virtual uint32_t size() const
Return the size of the header (in bytes).
Definition: makernote_int.cpp:674
Exiv2::Internal::NikonArrayIdx::Key::tag_
uint16_t tag_
Tag number.
Definition: makernote_int.cpp:1126
Exiv2::Internal::newIfdMn2
TiffComponent * newIfdMn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create a simple IFD makernote (Canon, Minolta, Nikon1)
Definition: makernote_int.cpp:864
Exiv2::Internal::NikonArrayIdx::Key
Key for comparisons.
Definition: makernote_int.cpp:1123
Exiv2::byte
uint8_t byte
1 byte unsigned integer type.
Definition: types.hpp:94
Exiv2::Internal::Olympus2MnHeader::~Olympus2MnHeader
virtual ~Olympus2MnHeader()
Virtual destructor.
Definition: makernote_int.cpp:293
Exiv2::Internal::SamsungMnHeader::baseOffset
virtual uint32_t baseOffset(uint32_t mnOffset) const
Return the base offset for the makernote IFD entries relative to the start of the TIFF header....
Definition: makernote_int.cpp:679
Exiv2::Internal::nikonCrypt
DataBuf nikonCrypt(uint16_t tag, const byte *pData, uint32_t size, TiffComponent *const pRoot)
Encrypt and decrypt Nikon data.
Definition: makernote_int.cpp:1199
Exiv2::Internal::TiffFinder
Search the composite for a component with tag and group. Return a pointer to the component or 0,...
Definition: tiffvisitor_int.hpp:156
Exiv2::Internal::Casio2MnHeader::size
virtual uint32_t size() const
Return the size of the header (in bytes).
Definition: makernote_int.cpp:815
Exiv2::Internal::MnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const =0
Write the header to a data buffer, return the number of bytes written.
Exiv2::Internal::FujiMnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const
Write the header to a data buffer, return the number of bytes written.
Definition: makernote_int.cpp:389
Exiv2::Internal::OlympusMnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const
Write the header to a data buffer, return the number of bytes written.
Definition: makernote_int.cpp:272
Exiv2::Internal::TiffHeaderBase::offset
virtual uint32_t offset() const
Return the offset to the start of the root directory.
Definition: tiffimage_int.cpp:1966
Exiv2::Internal::Nikon2MnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)
Read the header from a data buffer, return true if ok.
Definition: makernote_int.cpp:424
Exiv2::DataBuf
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition: types.hpp:193
Exiv2::Internal::SonyMnHeader::size
virtual uint32_t size() const
Return the size of the header (in bytes).
Definition: makernote_int.cpp:767
Exiv2::DataBuf::alloc
void alloc(long size)
Allocate a data buffer of at least the given size. Note that if the requested size is less than the c...
Definition: types.cpp:156
Exiv2::Internal::PanasonicMnHeader::sizeOfSignature
static uint32_t sizeOfSignature()
Return the size of the makernote header signature.
Definition: makernote_int.cpp:523
Exiv2::Internal::Nikon2MnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const
Write the header to a data buffer, return the number of bytes written.
Definition: makernote_int.cpp:436
Exiv2::Internal::Casio2MnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const
Write the header to a data buffer, return the number of bytes written.
Definition: makernote_int.cpp:842
Exiv2::Internal::SigmaMnHeader::SigmaMnHeader
SigmaMnHeader()
Default constructor.
Definition: makernote_int.cpp:710
Exiv2::Value::toString
std::string toString() const
Return the value as a string. Implemented in terms of write(std::ostream& os) const of the concrete c...
Definition: value.cpp:168
Exiv2::Internal::SonyMnHeader
Header of a Sony Makernote.
Definition: makernote_int.hpp:491
Exiv2::DataBuf::size_
long size_
The current size of the buffer.
Definition: types.hpp:260
Exiv2::Internal::SamsungMnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)
Read the header from a data buffer, return true if ok.
Definition: makernote_int.cpp:684
Exiv2::Internal::PentaxDngMnHeader::size
virtual uint32_t size() const
Return the size of the header (in bytes).
Definition: makernote_int.cpp:584
Exiv2::Internal::newSony2Mn2
TiffComponent * newSony2Mn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create a Sony2 makernote.
Definition: makernote_int.cpp:1090
Exiv2::Internal::FujiMnHeader::FujiMnHeader
FujiMnHeader()
Default constructor.
Definition: makernote_int.cpp:343
Exiv2::Internal::Olympus2MnHeader::baseOffset
virtual uint32_t baseOffset(uint32_t mnOffset) const
Return the base offset for the makernote IFD entries relative to the start of the TIFF header....
Definition: makernote_int.cpp:307
Exiv2::INIReader::ParseError
int ParseError()
Return the result of ini_parse(), i.e., 0 on success, line number of first error on parse error,...
Definition: ini.cpp:236
Exiv2::Internal::newOlympusMn2
TiffComponent * newOlympusMn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create an Olympus makernote.
Definition: makernote_int.cpp:889
Exiv2::find
const T * find(T(&src)[N], const K &key)
Find an element that matches key in the array src.
Definition: types.hpp:497
Exiv2::Internal::MnHeader::setByteOrder
virtual void setByteOrder(ByteOrder byteOrder)
Set the byte order for the makernote.
Definition: makernote_int.cpp:211
Exiv2::INIReader::Get
std::string Get(std::string section, std::string name, std::string default_value)
Get a string value from INI file, returning default_value if not found.
Definition: ini.cpp:241
Exiv2::Internal::Nikon2MnHeader::Nikon2MnHeader
Nikon2MnHeader()
Default constructor.
Definition: makernote_int.cpp:405
Exiv2::Internal::newPanasonicMn2
TiffComponent * newPanasonicMn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create a Panasonic makernote.
Definition: makernote_int.cpp:978
Exiv2::Internal::NewMnFct
TiffComponent *(* NewMnFct)(uint16_t tag, IfdId group, IfdId mnGroup, const byte *pData, uint32_t size, ByteOrder byteOrder)
Type for a pointer to a function creating a makernote (image)
Definition: makernote_int.hpp:54
Exiv2::Internal::FujiMnHeader::ifdOffset
virtual uint32_t ifdOffset() const
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of t...
Definition: makernote_int.cpp:357
Exiv2::Internal::Casio2MnHeader::byteOrder
virtual ByteOrder byteOrder() const
Return the byte order for the makernote. If the return value is invalidByteOrder, this means that the...
Definition: makernote_int.cpp:825
Exiv2::Internal::FujiMnHeader::~FujiMnHeader
virtual ~FujiMnHeader()
Virtual destructor.
Definition: makernote_int.cpp:348
Exiv2::Value::toLong
virtual long toLong(long n=0) const =0
Convert the n-th component of the value to a long. The behaviour of this method may be undefined if t...
Exiv2::Internal::SigmaMnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const
Write the header to a data buffer, return the number of bytes written.
Definition: makernote_int.cpp:742
Exiv2::Internal::nikonSelector
int nikonSelector(uint16_t tag, const byte *pData, uint32_t size, TiffComponent *const)
Function to select cfg + def of a Nikon complex binary array.
Definition: makernote_int.cpp:1183
Exiv2::Internal::OlympusMnHeader::~OlympusMnHeader
virtual ~OlympusMnHeader()
Virtual destructor.
Definition: makernote_int.cpp:244
Exiv2
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
Exiv2::Internal::Casio2MnHeader::ifdOffset
virtual uint32_t ifdOffset() const
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of t...
Definition: makernote_int.cpp:820
Exiv2::Internal::SonyMnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const
Write the header to a data buffer, return the number of bytes written.
Definition: makernote_int.cpp:789
Exiv2::Internal::NikonArrayIdx::Key::ver_
const char * ver_
Version string.
Definition: makernote_int.cpp:1127
Exiv2::Internal::NewMnFct2
TiffComponent *(* NewMnFct2)(uint16_t tag, IfdId group, IfdId mnGroup)
Type for a pointer to a function creating a makernote (group)
Definition: makernote_int.hpp:62
Exiv2::Internal::newSony1Mn2
TiffComponent * newSony1Mn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create a Sony1 makernote.
Definition: makernote_int.cpp:1083
Exiv2::Internal::MnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)=0
Read the header from a data buffer, return true if ok.
Exiv2::Internal::newSigmaMn
TiffComponent * newSigmaMn(uint16_t tag, IfdId group, IfdId mnGroup, const byte *, uint32_t size, ByteOrder)
Function to create a Sigma makernote.
Definition: makernote_int.cpp:1045
Exiv2::Internal::newPentaxDngMn2
TiffComponent * newPentaxDngMn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create an Pentax DNG makernote.
Definition: makernote_int.cpp:1009
Exiv2::Internal::PentaxDngMnHeader::ifdOffset
virtual uint32_t ifdOffset() const
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of t...
Definition: makernote_int.cpp:594
Exiv2::Internal::SonyMnHeader::ifdOffset
virtual uint32_t ifdOffset() const
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of t...
Definition: makernote_int.cpp:772
Exiv2::Internal::newPentaxMn2
TiffComponent * newPentaxMn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create an Pentax makernote.
Definition: makernote_int.cpp:1002
Exiv2::Internal::FujiMnHeader::size
virtual uint32_t size() const
Return the size of the header (in bytes).
Definition: makernote_int.cpp:352
Exiv2::Internal::Nikon3MnHeader::setByteOrder
virtual void setByteOrder(ByteOrder byteOrder)
Set the byte order for the makernote.
Definition: makernote_int.cpp:514
Exiv2::Internal::PentaxMnHeader
Header of an Pentax Makernote.
Definition: makernote_int.hpp:404
Exiv2::Internal::newSonyMn
TiffComponent * newSonyMn(uint16_t tag, IfdId group, IfdId, const byte *pData, uint32_t size, ByteOrder)
Function to create a Sony makernote.
Definition: makernote_int.cpp:1064
Exiv2::Internal::Nikon2MnHeader::sizeOfSignature
static uint32_t sizeOfSignature()
Return the size of the makernote header signature.
Definition: makernote_int.cpp:400
Exiv2::Internal::PentaxDngMnHeader::~PentaxDngMnHeader
virtual ~PentaxDngMnHeader()
Virtual destructor.
Definition: makernote_int.cpp:580
Exiv2::Internal::Nikon3MnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const
Write the header to a data buffer, return the number of bytes written.
Definition: makernote_int.cpp:500
Exiv2::ByteOrder
ByteOrder
Type to express the byte order (little or big endian)
Definition: types.hpp:102
Exiv2::Internal::PanasonicMnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const
Write the header to a data buffer, return the number of bytes written.
Definition: makernote_int.cpp:559
Exiv2::Internal::Nikon3MnHeader::byteOrder
virtual ByteOrder byteOrder() const
Return the byte order for the makernote. If the return value is invalidByteOrder, this means that the...
Definition: makernote_int.cpp:475
Exiv2::Internal::PentaxMnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)
Read the header from a data buffer, return true if ok.
Definition: makernote_int.cpp:648
Exiv2::Internal::OlympusMnHeader::size
virtual uint32_t size() const
Return the size of the header (in bytes).
Definition: makernote_int.cpp:248
Exiv2::Internal::PentaxMnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const
Write the header to a data buffer, return the number of bytes written.
Definition: makernote_int.cpp:662
Exiv2::Internal::newIfdMn
TiffComponent * newIfdMn(uint16_t tag, IfdId group, IfdId mnGroup, const byte *, uint32_t size, ByteOrder)
Function to create a simple IFD makernote (Canon, Minolta, Nikon1)
Definition: makernote_int.cpp:852
Exiv2::Internal::Nikon2MnHeader::~Nikon2MnHeader
virtual ~Nikon2MnHeader()
Virtual destructor.
Definition: makernote_int.cpp:410
Exiv2::Internal::newNikonMn
TiffComponent * newNikonMn(uint16_t tag, IfdId group, IfdId, const byte *pData, uint32_t size, ByteOrder)
Function to create a Nikon makernote. This will create the appropriate Nikon 1, 2 or 3 makernote,...
Definition: makernote_int.cpp:922
Exiv2::Internal::MnHeader::ifdOffset
virtual uint32_t ifdOffset() const
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of t...
Definition: makernote_int.cpp:215
Exiv2::Internal::Olympus2MnHeader::write
virtual uint32_t write(IoWrapper &ioWrapper, ByteOrder byteOrder) const
Write the header to a data buffer, return the number of bytes written.
Definition: makernote_int.cpp:326
Exiv2::Internal::newOlympus2Mn2
TiffComponent * newOlympus2Mn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create an Olympus II makernote.
Definition: makernote_int.cpp:896
Exiv2::INIReader
Read an INI file into easy-to-access name/value pairs. (Note that I've gone for simplicity here rathe...
Definition: ini.hpp:157
Exiv2::Internal::readExiv2Config
std::string readExiv2Config(const std::string &section, const std::string &value, const std::string &def)
Read value from Exiv2 configuration file.
Definition: makernote_int.cpp:113
Exiv2::Internal::IoWrapper::write
long write(const byte *pData, long wcount)
Wraps the corresponding BasicIo::write() method.
Definition: tiffcomposite_int.cpp:65
Exiv2::Internal::Nikon2MnHeader::ifdOffset
virtual uint32_t ifdOffset() const
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of t...
Definition: makernote_int.cpp:419
Exiv2::Internal::newSigmaMn2
TiffComponent * newSigmaMn2(uint16_t tag, IfdId group, IfdId mnGroup)
Function to create a Sigma makernote.
Definition: makernote_int.cpp:1057
Exiv2::Internal::SigmaMnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)
Read the header from a data buffer, return true if ok.
Definition: makernote_int.cpp:729
Exiv2::Internal::Nikon3MnHeader::Nikon3MnHeader
Nikon3MnHeader()
Default constructor.
Definition: makernote_int.cpp:453
Exiv2::Internal::PanasonicMnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)
Read the header from a data buffer, return true if ok.
Definition: makernote_int.cpp:547
Exiv2::Internal::Nikon3MnHeader
Header of a Nikon 3 Makernote.
Definition: makernote_int.hpp:304
Exiv2::Internal::Nikon2MnHeader
Header of a Nikon 2 Makernote.
Definition: makernote_int.hpp:272
Exiv2::Internal::TiffMnCreator::create
static TiffComponent * create(uint16_t tag, IfdId group, const std::string &make, const byte *pData, uint32_t size, ByteOrder byteOrder)
Create the Makernote for camera make and details from the makernote entry itself if needed....
Definition: makernote_int.cpp:166
Exiv2::Internal::PentaxDngMnHeader::sizeOfSignature
static uint32_t sizeOfSignature()
Return the size of the makernote header signature.
Definition: makernote_int.cpp:570
Exiv2::model
EXIV2API ExifData::const_iterator model(const ExifData &ed)
Return the camera model.
Definition: easyaccess.cpp:445
Exiv2::Internal::MnHeader
Makernote header interface. This class is used with TIFF makernotes.
Definition: makernote_int.hpp:126
Exiv2::Internal::OlympusMnHeader::read
virtual bool read(const byte *pData, uint32_t size, ByteOrder byteOrder)
Read the header from a data buffer, return true if ok.
Definition: makernote_int.cpp:258
Exiv2::Internal::TiffMnRegistry::newMnFct2_
NewMnFct2 newMnFct2_
Makernote create function (group)
Definition: makernote_int.hpp:85
Exiv2::Internal::NikonArrayIdx::Key::size_
uint32_t size_
Size of the data (not the version string)
Definition: makernote_int.cpp:1128
Exiv2::Internal::TiffMnRegistry::operator==
bool operator==(const std::string &key) const
Compare a TiffMnRegistry structure with a key being the make string from the image....
Definition: makernote_int.cpp:154
Exiv2::Internal::NikonArrayIdx::size_
uint32_t size_
Size of the data.
Definition: makernote_int.cpp:1140
Exiv2::Internal::PentaxMnHeader::sizeOfSignature
static uint32_t sizeOfSignature()
Return the size of the makernote header signature.
Definition: makernote_int.cpp:624
Exiv2::Internal::FujiMnHeader::sizeOfSignature
static uint32_t sizeOfSignature()
Return the size of the makernote header signature.
Definition: makernote_int.cpp:338
Exiv2::Internal::TiffMnCreator
TIFF makernote factory for concrete TIFF makernotes.
Definition: makernote_int.hpp:91
Exiv2::Internal::TiffHeaderBase::write
virtual DataBuf write() const
Return the image header in binary format. The caller owns this data and DataBuf ensures that it will ...
Definition: tiffimage_int.cpp:1919
Exiv2::Internal::Casio2MnHeader
Header of a Casio2 Makernote.
Definition: makernote_int.hpp:523
Exiv2::Internal::SigmaMnHeader::ifdOffset
virtual uint32_t ifdOffset() const
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of t...
Definition: makernote_int.cpp:724
Exiv2::Internal::TiffIfdMakernote
Tiff IFD Makernote. This is a concrete class suitable for all IFD makernotes.
Definition: tiffcomposite_int.hpp:1147
Exiv2::Internal::PentaxMnHeader::ifdOffset
virtual uint32_t ifdOffset() const
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of t...
Definition: makernote_int.cpp:643
Exiv2::Internal::newFujiMn
TiffComponent * newFujiMn(uint16_t tag, IfdId group, IfdId mnGroup, const byte *, uint32_t size, ByteOrder)
Function to create a Fujifilm makernote.
Definition: makernote_int.cpp:903
Exiv2::Internal::TiffMnRegistry::mnGroup_
IfdId mnGroup_
Group identifier.
Definition: makernote_int.hpp:83
Exiv2::Internal::TiffHeaderBase::tag
virtual uint16_t tag() const
Return the tag value (magic number) which identifies the buffer as TIFF data.
Definition: tiffimage_int.cpp:1981
Exiv2::Internal::PentaxMnHeader::PentaxMnHeader
PentaxMnHeader()
Default constructor.
Definition: makernote_int.cpp:629
Exiv2::Internal::Casio2MnHeader::sizeOfSignature
static uint32_t sizeOfSignature()
Return the size of the makernote header signature.
Definition: makernote_int.cpp:801
Exiv2::Internal::TiffHeaderBase::byteOrder
virtual ByteOrder byteOrder() const
Return the byte order (little or big endian).
Definition: tiffimage_int.cpp:1956
Exiv2::Internal::SonyMnHeader::SonyMnHeader
SonyMnHeader()
Default constructor.
Definition: makernote_int.cpp:758
Exiv2::Internal::PentaxMnHeader::size
virtual uint32_t size() const
Return the size of the header (in bytes).
Definition: makernote_int.cpp:638
Exiv2::Internal::TiffMnRegistry::make_
const char * make_
Camera make.
Definition: makernote_int.hpp:82
Exiv2::Internal::MnHeader::baseOffset
virtual uint32_t baseOffset(uint32_t mnOffset) const
Return the base offset for the makernote IFD entries relative to the start of the TIFF header....
Definition: makernote_int.cpp:225
Exiv2::getULong
EXIV2API uint32_t getULong(const byte *buf, ByteOrder byteOrder)
Read a 4 byte unsigned long value from the data buffer.
Definition: types.cpp:278
Exiv2::Internal::PanasonicMnHeader
Header of a Panasonic Makernote.
Definition: makernote_int.hpp:340
Exiv2::Internal::SigmaMnHeader::~SigmaMnHeader
virtual ~SigmaMnHeader()
Virtual destructor.
Definition: makernote_int.cpp:715
Exiv2::Internal::MnHeader::byteOrder
virtual ByteOrder byteOrder() const
Return the byte order for the makernote. If the return value is invalidByteOrder, this means that the...
Definition: makernote_int.cpp:220
Exiv2::Internal::Nikon3MnHeader::ifdOffset
virtual uint32_t ifdOffset() const
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of t...
Definition: makernote_int.cpp:470