Loading...
Searching...
No Matches
tags_int.hpp
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef TAGS_INT_HPP_
#define TAGS_INT_HPP_
// *****************************************************************************
// included header files
#include "error.hpp"
#include "tags.hpp"
// *****************************************************************************
// namespace extensions
namespace Exiv2::Internal {
// *****************************************************************************
// class definitions
struct SectionInfo {
SectionId sectionId_;
const char* name_;
const char* desc_;
};
struct TagDetails {
int64_t val_;
const char* label_;
bool operator==(int64_t key) const {
return val_ == key;
}
}; // struct TagDetails
struct StringTagDetails {
const char* val_;
const char* label_;
bool operator==(const std::string& key) const {
return (key == val_);
}
}; // struct TagDetails
using TagDetailsBitmask = std::pair<uint32_t, const char*>;
using TagDetailsBitlistSorted = std::pair<uint32_t, const char*>;
struct TagVocabulary {
const char* voc_;
const char* label_;
bool operator==(const std::string& key) const;
}; // struct TagDetails
template <size_t N, const StringTagDetails (&array)[N]>
std::ostream& printTagString(std::ostream& os, const std::string& value, const ExifData*) {
if (auto td = Exiv2::find(array, value)) {
os << exvGettext(td->label_);
} else {
os << "(" << value << ")";
}
return os;
}
template <size_t N, const StringTagDetails (&array)[N]>
std::ostream& printTagString(std::ostream& os, const Value& value, const ExifData* data) {
return printTagString<N, array>(os, value.toString(0), data);
}
#define EXV_PRINT_STRING_TAG_1(array) printTagString<std::size(array), array>
template <size_t N, const StringTagDetails (&array)[N]>
std::ostream& printTagString2(std::ostream& os, const Value& value, const ExifData* data) {
if (value.count() < 2)
return os << "(" << value << ")";
std::string temp = value.toString(0) + " " + value.toString(1);
return printTagString<N, array>(os, temp, data);
}
#define EXV_PRINT_STRING_TAG_2(array) printTagString2<std::size(array), array>
template <size_t N, const StringTagDetails (&array)[N]>
std::ostream& printTagString4(std::ostream& os, const Value& value, const ExifData* data) {
if (value.count() < 4)
return os << "(" << value << ")";
std::string temp = value.toString(0) + " " + value.toString(1) + " " + value.toString(2) + " " + value.toString(3);
return printTagString<N, array>(os, temp, data);
}
#define EXV_PRINT_STRING_TAG_4(array) printTagString4<std::size(array), array>
template <size_t N, const TagDetails (&array)[N]>
std::ostream& printTagNoError(std::ostream& os, const int64_t value, const ExifData*) {
if (auto td = Exiv2::find(array, value)) {
os << exvGettext(td->label_);
} else {
os << value;
}
return os;
}
template <size_t N, const TagDetails (&array)[N]>
std::ostream& printTagNoError(std::ostream& os, const Value& value, const ExifData* data) {
return printTagNoError<N, array>(os, value.toInt64(), data);
}
#define EXV_PRINT_TAG_NO_ERROR(array) printTagNoError<std::size(array), array>
template <size_t N, const TagDetails (&array)[N]>
std::ostream& printTag(std::ostream& os, const int64_t value, const ExifData*) {
if (auto td = Exiv2::find(array, value)) {
os << exvGettext(td->label_);
} else {
os << "(" << value << ")";
}
return os;
}
template <size_t N, const TagDetails (&array)[N]>
std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
return printTag<N, array>(os, value.toInt64(), data);
}
#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
template <size_t N, const TagDetailsBitmask (&array)[N]>
std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
const auto val = value.toUint32();
if (val == 0 && N > 0) {
auto [mask, label] = *array;
if (mask == 0)
return os << exvGettext(label);
}
bool sep = false;
for (size_t i = 0; i < N; ++i) {
auto [mask, label] = *(array + i);
if (val & mask) {
if (sep) {
os << ", " << exvGettext(label);
} else {
os << exvGettext(label);
sep = true;
}
}
}
return os;
}
#define EXV_PRINT_TAG_BITMASK(array) printTagBitmask<std::size(array), array>
template <size_t N, const TagDetailsBitlistSorted (&array)[N]>
std::ostream& printTagBitlistAllLE(std::ostream& os, const Value& value, const ExifData*) {
if constexpr (N == 0)
throw Error(ErrorCode::kerErrorMessage, std::string("Passed zero length TagDetailsBitlistSorted"));
uint32_t vN = 0;
uint32_t currentVNBit = 0;
size_t lastArrayPos = 0; // Prevents unneeded searching of array
constexpr auto maxArrayBit = (array + N - 1)->first;
auto allVNZero = true;
auto useSep = false;
// For each value
for (size_t i = 0; i < value.count(); i++) {
vN = value.toUint32(i);
if (vN == 0) { // If all bits zero, then nothing to process
currentVNBit += 8;
continue;
}
allVNZero = false;
// Cycle through every bit in that byte
for (auto j = 0; j < 8; j++, currentVNBit++) {
if ((vN >> j & 0x01) == 0) { // If bit not set, then nothing to process
continue;
}
if (currentVNBit > maxArrayBit) { // If beyond array values, output unknown index
os << ", [" << currentVNBit << "]";
continue;
}
// Check to see if the numbered bit is found in the array
for (size_t k = lastArrayPos; k < N; ++k) {
auto [bit, label] = *(array + k);
if (currentVNBit == bit) {
lastArrayPos = k;
if (useSep) {
os << ", " << exvGettext(label);
} else {
os << exvGettext(label);
useSep = true;
}
break;
}
}
}
}
if (allVNZero)
os << exvGettext("None");
return os;
}
#define EXV_PRINT_TAG_BITLIST_ALL_LE(array) printTagBitlistAllLE<std::size(array), array>
template <size_t N, const TagVocabulary (&array)[N]>
std::ostream& printTagVocabulary(std::ostream& os, const Value& value, const ExifData*) {
if (auto td = Exiv2::find(array, value.toString())) {
os << exvGettext(td->label_);
} else {
os << "(" << value << ")";
}
return os;
}
#define EXV_PRINT_VOCABULARY(array) printTagVocabulary<std::size(array), array>
template <size_t N, const TagVocabulary (&array)[N]>
std::ostream& printTagVocabularyMulti(std::ostream& os, const Value& value, const ExifData*) {
if (value.count() == 0) {
os << "(" << value << ")";
return os;
}
for (size_t i = 0; i < value.count(); i++) {
if (i != 0)
os << ", ";
auto td = Exiv2::find(array, value.toString(i));
if (td) {
os << exvGettext(td->label_);
} else {
os << "(" << value.toString(i) << ")";
}
}
return os;
}
#define EXV_PRINT_VOCABULARY_MULTI(array) printTagVocabularyMulti<std::size(array), array>
// *****************************************************************************
// free functions
const TagInfo* ifdTagList();
const TagInfo* exifTagList();
const TagInfo* iopTagList();
const TagInfo* gpsTagList();
const TagInfo* mnTagList();
const TagInfo* mpfTagList();
const GroupInfo* groupList();
const TagInfo* tagList(const std::string& groupName);
IfdId groupId(const std::string& groupName);
const char* ifdName(IfdId ifdId);
const char* groupName(IfdId ifdId);
bool isMakerIfd(IfdId ifdId);
bool isExifIfd(IfdId ifdId);
void taglist(std::ostream& os, IfdId ifdId);
const TagInfo* tagList(IfdId ifdId);
const TagInfo* tagInfo(uint16_t tag, IfdId ifdId);
const TagInfo* tagInfo(const std::string& tagName, IfdId ifdId);
uint16_t tagNumber(const std::string& tagName, IfdId ifdId);
std::ostream& printValue(std::ostream& os, const Value& value, const ExifData*);
std::ostream& printInt64(std::ostream& os, const Value& value, const ExifData*);
std::ostream& printFloat(std::ostream& os, const Value& value, const ExifData*);
std::ostream& printDegrees(std::ostream& os, const Value& value, const ExifData*);
std::ostream& printUcs2(std::ostream& os, const Value& value, const ExifData*);
std::ostream& printExifUnit(std::ostream& os, const Value& value, const ExifData*);
std::ostream& printLensSpecification(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x0000(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x0005(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x0006(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x0009(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x000a(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x000c(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x0019(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x001e(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x0112(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x0213(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x8298(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x829a(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x829d(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x8822(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x8827(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x9101(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x9201(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x9202(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x9204(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x9206(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x9207(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x9208(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0x920a(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa001(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa217(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa300(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa301(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa401(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa402(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa403(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa404(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa405(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa406(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa407(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa409(std::ostream& os, const Value& value, const ExifData*);
std::ostream& print0xa40c(std::ostream& os, const Value& value, const ExifData*);
std::ostream& printGPSDirRef(std::ostream& os, const Value& value, const ExifData*);
std::ostream& printNormalSoftHard(std::ostream& os, const Value& value, const ExifData*);
std::ostream& printExifVersion(std::ostream& os, const Value& value, const ExifData*);
std::ostream& printXmpVersion(std::ostream& os, const Value& value, const ExifData*);
std::ostream& printXmpDate(std::ostream& os, const Value& value, const ExifData*);
std::ostream& printBitmask(std::ostream& os, const Value& value, const ExifData*);
float fnumber(float apertureValue);
URational exposureTime(float shutterSpeedValue);
} // namespace Exiv2::Internal
#endif // #ifndef TAGS_INT_HPP_
Exiv2::Error
Simple error class used for exceptions. An output operator is provided to print errors to a stream.
Definition error.hpp:236
Exiv2::ExifData
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition exif.hpp:379
Exiv2::Value
Common interface for all types of values used with metadata.
Definition value.hpp:33
Exiv2::Value::count
virtual size_t count() const =0
Return the number of components of the value.
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:72
Exiv2::Value::toUint32
virtual uint32_t toUint32(size_t n=0) const =0
Convert the n-th component of the value to a float. The behaviour of this method may be undefined if ...
Exiv2::Value::toInt64
virtual int64_t toInt64(size_t n=0) const =0
Convert the n-th component of the value to an int64_t. The behaviour of this method may be undefined ...
error.hpp
Error class for exceptions, log message class.
Exiv2::Internal
Helper structure for the Matroska tags lookup table.
Definition matroskavideo.hpp:39
Exiv2::Internal::groupName
const char * groupName(IfdId ifdId)
Return the group name for a group id.
Definition tags_int.cpp:2477
Exiv2::Internal::print0xa405
std::ostream & print0xa405(std::ostream &os, const Value &value, const ExifData *)
Print 35mm equivalent focal length.
Definition tags_int.cpp:3079
Exiv2::Internal::print0xa407
std::ostream & print0xa407(std::ostream &os, const Value &value, const ExifData *metadata)
Print gain control.
Definition tags_int.cpp:3107
Exiv2::Internal::print0x9206
std::ostream & print0x9206(std::ostream &os, const Value &value, const ExifData *)
Print the subject distance.
Definition tags_int.cpp:2951
Exiv2::Internal::isMakerIfd
bool isMakerIfd(IfdId ifdId)
Return true if ifdId is a makernote IFD id. (Note: returns false for makerIfd)
Definition tags_int.cpp:2392
Exiv2::Internal::printUcs2
std::ostream & printUcs2(std::ostream &os, const Value &value, const ExifData *)
Print function converting from UCS-2LE to UTF-8.
Definition tags_int.cpp:2602
Exiv2::Internal::print0xa001
std::ostream & print0xa001(std::ostream &os, const Value &value, const ExifData *metadata)
Print color space.
Definition tags_int.cpp:3006
Exiv2::Internal::print0xa300
std::ostream & print0xa300(std::ostream &os, const Value &value, const ExifData *metadata)
Print file source.
Definition tags_int.cpp:3032
Exiv2::Internal::print0x9202
std::ostream & print0x9202(std::ostream &os, const Value &value, const ExifData *)
Print f-number converted from APEX aperture value.
Definition tags_int.cpp:2918
Exiv2::Internal::printDegrees
std::ostream & printDegrees(std::ostream &os, const Value &value, const ExifData *)
Print a longitude or latitude value.
Definition tags_int.cpp:2568
Exiv2::Internal::printTagString
std::ostream & printTagString(std::ostream &os, const std::string &value, const ExifData *)
Generic pretty-print function to translate a full string value to a description by looking up a refer...
Definition tags_int.hpp:91
Exiv2::Internal::print0x8827
std::ostream & print0x8827(std::ostream &os, const Value &value, const ExifData *)
Print ISO speed ratings.
Definition tags_int.cpp:2869
Exiv2::Internal::exposureTime
URational exposureTime(float shutterSpeedValue)
Calculate the exposure time from an APEX shutter speed value.
Definition tags_int.cpp:2520
Exiv2::Internal::print0xa409
std::ostream & print0xa409(std::ostream &os, const Value &value, const ExifData *metadata)
Print saturation.
Definition tags_int.cpp:3114
Exiv2::Internal::print0x0009
std::ostream & print0x0009(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS status.
Definition tags_int.cpp:2773
Exiv2::Internal::TagDetailsBitmask
std::pair< uint32_t, const char * > TagDetailsBitmask
Helper structure for lookup tables for translations of bitmask values to human readable labels.
Definition tags_int.hpp:57
Exiv2::Internal::print0xa217
std::ostream & print0xa217(std::ostream &os, const Value &value, const ExifData *metadata)
Print sensing method.
Definition tags_int.cpp:3021
Exiv2::Internal::print0x000c
std::ostream & print0x000c(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS speed ref.
Definition tags_int.cpp:2781
Exiv2::Internal::printTagString4
std::ostream & printTagString4(std::ostream &os, const Value &value, const ExifData *data)
Generic pretty-print function to translate the first 4 values in Value as a string,...
Definition tags_int.hpp:132
Exiv2::Internal::print0xa40c
std::ostream & print0xa40c(std::ostream &os, const Value &value, const ExifData *metadata)
Print subject distance range.
Definition tags_int.cpp:3127
Exiv2::Internal::print0x829a
std::ostream & print0x829a(std::ostream &os, const Value &value, const ExifData *)
Print the exposure time.
Definition tags_int.cpp:2823
Exiv2::Internal::print0x829d
std::ostream & print0x829d(std::ostream &os, const Value &value, const ExifData *)
Print the f-number.
Definition tags_int.cpp:2844
Exiv2::Internal::mpfTagList
const TagInfo * mpfTagList()
Return read-only list of built-in mfp Tags http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/MPF....
Definition tags_int.cpp:2346
Exiv2::Internal::print0x0019
std::ostream & print0x0019(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS destination distance ref.
Definition tags_int.cpp:2785
Exiv2::Internal::printExifUnit
std::ostream & printExifUnit(std::ostream &os, const Value &value, const ExifData *metadata)
Print function for Exif units.
Definition tags_int.cpp:2629
Exiv2::Internal::taglist
void taglist(std::ostream &os, IfdId ifdId)
Print the list of tags for ifdId to the output stream os.
Definition tags_int.cpp:2424
Exiv2::Internal::print0xa403
std::ostream & print0xa403(std::ostream &os, const Value &value, const ExifData *metadata)
Print white balance.
Definition tags_int.cpp:3060
Exiv2::Internal::print0x0005
std::ostream & print0x0005(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS altitude ref.
Definition tags_int.cpp:2719
Exiv2::Internal::tagList
const TagInfo * tagList(IfdId ifdId)
Return the tag list for ifdId.
Definition tags_int.cpp:2432
Exiv2::Internal::print0x9201
std::ostream & print0x9201(std::ostream &os, const Value &value, const ExifData *)
Print exposure time converted from APEX shutter speed value.
Definition tags_int.cpp:2905
Exiv2::Internal::print0x000a
std::ostream & print0x000a(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS measurement mode.
Definition tags_int.cpp:2777
Exiv2::Internal::iopTagList
const TagInfo * iopTagList()
Return read-only list of built-in IOP tags.
Definition tags_int.cpp:2372
Exiv2::Internal::print0x0112
std::ostream & print0x0112(std::ostream &os, const Value &value, const ExifData *metadata)
Print orientation.
Definition tags_int.cpp:2793
Exiv2::Internal::printExifVersion
std::ostream & printExifVersion(std::ostream &os, const Value &value, const ExifData *)
Print any version packed in 4 Bytes format : major major minor minor.
Definition tags_int.cpp:3142
Exiv2::Internal::printBitmask
std::ostream & printBitmask(std::ostream &os, const Value &value, const ExifData *metadata)
Print a bitmask as (none) | n | n,m... where: (none) = no bits set | n = bit n from left (0=left-most...
Definition tags_int.cpp:2487
Exiv2::Internal::printTagString2
std::ostream & printTagString2(std::ostream &os, const Value &value, const ExifData *data)
Generic pretty-print function to translate the first 2 values in Value as a string,...
Definition tags_int.hpp:117
Exiv2::Internal::ifdName
const char * ifdName(IfdId ifdId)
Return the name of the IFD.
Definition tags_int.cpp:2471
Exiv2::Internal::printNormalSoftHard
std::ostream & printNormalSoftHard(std::ostream &os, const Value &value, const ExifData *metadata)
Print contrast, sharpness (normal, soft, hard)
Definition tags_int.cpp:3138
Exiv2::Internal::print0x0213
std::ostream & print0x0213(std::ostream &os, const Value &value, const ExifData *metadata)
Print YCbCrPositioning.
Definition tags_int.cpp:2799
Exiv2::Internal::print0x920a
std::ostream & print0x920a(std::ostream &os, const Value &value, const ExifData *)
Print the actual focal length of the lens.
Definition tags_int.cpp:2985
Exiv2::Internal::tagInfo
const TagInfo * tagInfo(uint16_t tag, IfdId ifdId)
Return the tag info for tag and ifdId.
Definition tags_int.cpp:2439
Exiv2::Internal::print0xa401
std::ostream & print0xa401(std::ostream &os, const Value &value, const ExifData *metadata)
Print custom rendered.
Definition tags_int.cpp:3046
Exiv2::Internal::tagNumber
uint16_t tagNumber(const std::string &tagName, IfdId ifdId)
Return the tag number for one combination of IFD id and tagName. If the tagName is not known,...
Definition tags_int.cpp:2539
Exiv2::Internal::fnumber
float fnumber(float apertureValue)
Calculate F number from an APEX aperture value.
Definition tags_int.cpp:2512
Exiv2::Internal::printTagBitmask
std::ostream & printTagBitmask(std::ostream &os, const Value &value, const ExifData *)
Generic print function to translate a long value to a description by looking up bitmasks in a referen...
Definition tags_int.hpp:199
Exiv2::Internal::printGPSDirRef
std::ostream & printGPSDirRef(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS direction ref.
Definition tags_int.cpp:3131
Exiv2::Internal::printXmpVersion
std::ostream & printXmpVersion(std::ostream &os, const Value &value, const ExifData *)
Print any version encoded in the ASCII string majormajorminorminor.
Definition tags_int.cpp:3156
Exiv2::Internal::gpsTagList
const TagInfo * gpsTagList()
Return read-only list of built-in GPS tags.
Definition tags_int.cpp:2297
Exiv2::Internal::print0x9101
std::ostream & print0x9101(std::ostream &os, const Value &value, const ExifData *)
Print components configuration specific to compressed data.
Definition tags_int.cpp:2873
Exiv2::Internal::printTagBitlistAllLE
std::ostream & printTagBitlistAllLE(std::ostream &os, const Value &value, const ExifData *)
Generic print function to translate the bits in the values by looking up the indices in a reference t...
Definition tags_int.hpp:232
Exiv2::Internal::printTag
std::ostream & printTag(std::ostream &os, const int64_t value, const ExifData *)
Generic pretty-print function to translate a long value to a description by looking up a reference ta...
Definition tags_int.hpp:173
Exiv2::Internal::print0x0000
std::ostream & print0x0000(std::ostream &os, const Value &value, const ExifData *)
Print GPS version.
Definition tags_int.cpp:2705
Exiv2::Internal::print0xa402
std::ostream & print0xa402(std::ostream &os, const Value &value, const ExifData *metadata)
Print exposure mode.
Definition tags_int.cpp:3053
Exiv2::Internal::print0xa404
std::ostream & print0xa404(std::ostream &os, const Value &value, const ExifData *)
Print digital zoom ratio.
Definition tags_int.cpp:3064
Exiv2::Internal::groupId
IfdId groupId(const std::string &groupName)
Return the group id for a group name.
Definition tags_int.cpp:2465
Exiv2::Internal::print0x8298
std::ostream & print0x8298(std::ostream &os, const Value &value, const ExifData *)
Print the copyright.
Definition tags_int.cpp:2803
Exiv2::Internal::printTagVocabulary
std::ostream & printTagVocabulary(std::ostream &os, const Value &value, const ExifData *)
Generic pretty-print function to translate a controlled vocabulary value (string) to a description by...
Definition tags_int.hpp:291
Exiv2::Internal::print0x0006
std::ostream & print0x0006(std::ostream &os, const Value &value, const ExifData *)
Print GPS altitude.
Definition tags_int.cpp:2723
Exiv2::Internal::printFloat
std::ostream & printFloat(std::ostream &os, const Value &value, const ExifData *)
Print a Rational or URational value in floating point format.
Definition tags_int.cpp:2558
Exiv2::Internal::exifTagList
const TagInfo * exifTagList()
Return read-only list of built-in Exif IFD tags.
Definition tags_int.cpp:2109
Exiv2::Internal::ifdTagList
const TagInfo * ifdTagList()
Return read-only list of built-in IFD0/1 tags.
Definition tags_int.cpp:1714
Exiv2::Internal::print0x9204
std::ostream & print0x9204(std::ostream &os, const Value &value, const ExifData *)
Print the exposure bias value.
Definition tags_int.cpp:2931
Exiv2::Internal::printInt64
std::ostream & printInt64(std::ostream &os, const Value &value, const ExifData *)
Print the value converted to a int64_t.
Definition tags_int.cpp:2551
Exiv2::Internal::printXmpDate
std::ostream & printXmpDate(std::ostream &os, const Value &value, const ExifData *)
Print a date following the format YYYY-MM-DDTHH:MM:SSZ.
Definition tags_int.cpp:3164
Exiv2::Internal::print0xa406
std::ostream & print0xa406(std::ostream &os, const Value &value, const ExifData *metadata)
Print scene capture type.
Definition tags_int.cpp:3096
Exiv2::Internal::printValue
std::ostream & printValue(std::ostream &os, const Value &value, const ExifData *)
Default print function, using the Value output operator.
Definition tags_int.cpp:2483
Exiv2::Internal::isExifIfd
bool isExifIfd(IfdId ifdId)
Return true if ifdId is an Exif IFD id.
Definition tags_int.cpp:2397
Exiv2::Internal::mnTagList
const TagInfo * mnTagList()
Return read-only list of built-in Exiv2 Makernote info tags.
Definition tags_int.cpp:2388
Exiv2::Internal::TagDetailsBitlistSorted
std::pair< uint32_t, const char * > TagDetailsBitlistSorted
Helper structure for lookup tables for translations of lists of individual bit values to human readab...
Definition tags_int.hpp:66
Exiv2::Internal::print0x9208
std::ostream & print0x9208(std::ostream &os, const Value &value, const ExifData *metadata)
Print light source.
Definition tags_int.cpp:2981
Exiv2::Internal::print0x8822
std::ostream & print0x8822(std::ostream &os, const Value &value, const ExifData *metadata)
Print exposure program.
Definition tags_int.cpp:2865
Exiv2::Internal::print0x001e
std::ostream & print0x001e(std::ostream &os, const Value &value, const ExifData *metadata)
Print GPS differential correction.
Definition tags_int.cpp:2789
Exiv2::Internal::printLensSpecification
std::ostream & printLensSpecification(std::ostream &os, const Value &value, const ExifData *)
Print function for lens specification.
Definition tags_int.cpp:2633
Exiv2::Internal::print0x9207
std::ostream & print0x9207(std::ostream &os, const Value &value, const ExifData *metadata)
Print metering mode.
Definition tags_int.cpp:2977
Exiv2::Internal::print0xa301
std::ostream & print0xa301(std::ostream &os, const Value &value, const ExifData *metadata)
Print scene type.
Definition tags_int.cpp:3039
Exiv2::Internal::printTagNoError
std::ostream & printTagNoError(std::ostream &os, const int64_t value, const ExifData *)
Generic pretty-print function to translate a long value to a description by looking up a reference ta...
Definition tags_int.hpp:147
Exiv2::Internal::print0x0007
std::ostream & print0x0007(std::ostream &os, const Value &value, const ExifData *)
Print GPS timestamp.
Definition tags_int.cpp:2738
Exiv2::find
const T * find(T(&src)[N], const K &key)
Find an element that matches key in the array src.
Definition types.hpp:449
Exiv2::exvGettext
EXIV2API const char * exvGettext(const char *str)
Translate a string using the gettext framework. This wrapper hides all the implementation details fro...
Definition types.cpp:504
Exiv2::IfdId
IfdId
Type to specify the IFD to which a metadata belongs.
Definition tags.hpp:34
Exiv2::URational
std::pair< uint32_t, uint32_t > URational
8 byte unsigned rational type.
Definition types.hpp:29
Exiv2::apertureValue
EXIV2API ExifData::const_iterator apertureValue(const ExifData &ed)
Return the aperture value. Please keep in mind that this accessor is provided for convenience only an...
Definition easyaccess.cpp:379
Exiv2::SectionId
SectionId
Section identifiers to logically group tags. A section consists of nothing more than a name,...
Definition tags.hpp:198
Exiv2::shutterSpeedValue
EXIV2API ExifData::const_iterator shutterSpeedValue(const ExifData &ed)
Return the shutter speed value. Please keep in mind that this accessor is provided for convenience on...
Definition easyaccess.cpp:371
Exiv2::Internal::SectionInfo
The details of a section.
Definition tags_int.hpp:19
Exiv2::Internal::SectionInfo::name_
const char * name_
Section name (one word)
Definition tags_int.hpp:21
Exiv2::Internal::SectionInfo::sectionId_
SectionId sectionId_
Section id.
Definition tags_int.hpp:20
Exiv2::Internal::SectionInfo::desc_
const char * desc_
Section description.
Definition tags_int.hpp:22
Exiv2::Internal::StringTagDetails
Helper structure for lookup tables for translations of string tag values to human readable labels.
Definition tags_int.hpp:43
Exiv2::Internal::StringTagDetails::operator==
bool operator==(const std::string &key) const
Comparison operator for use with the find template.
Definition tags_int.hpp:48
Exiv2::Internal::StringTagDetails::label_
const char * label_
Translation of the tag value.
Definition tags_int.hpp:45
Exiv2::Internal::StringTagDetails::val_
const char * val_
Tag value.
Definition tags_int.hpp:44
Exiv2::Internal::TagDetails
Helper structure for lookup tables for translations of numeric tag values to human readable labels.
Definition tags_int.hpp:29
Exiv2::Internal::TagDetails::label_
const char * label_
Translation of the tag value.
Definition tags_int.hpp:31
Exiv2::Internal::TagDetails::val_
int64_t val_
Tag value.
Definition tags_int.hpp:30
Exiv2::Internal::TagDetails::operator==
bool operator==(int64_t key) const
Comparison operator for use with the find template.
Definition tags_int.hpp:34
Exiv2::Internal::TagVocabulary
Helper structure for lookup tables for translations of controlled vocabulary strings to their descrip...
Definition tags_int.hpp:72
Exiv2::Internal::TagVocabulary::voc_
const char * voc_
Vocabulary string.
Definition tags_int.hpp:73
Exiv2::Internal::TagVocabulary::label_
const char * label_
Description of the vocabulary string.
Definition tags_int.hpp:74
Exiv2::Internal::TagVocabulary::operator==
bool operator==(const std::string &key) const
Comparison operator for use with the find template.
Definition tags.cpp:48