MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / encode

Method encode

src/orfimage.cpp:119–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119WriteMethod OrfParser::encode(BasicIo& io, const byte* pData, size_t size, ByteOrder byteOrder, ExifData& exifData,
120 IptcData& iptcData, XmpData& xmpData) {
121 // Delete IFDs which do not occur in TIFF images
122 static constexpr auto filteredIfds = {
123 IfdId::panaRawId,
124 };
125 for (auto&& filteredIfd : filteredIfds) {
126#ifdef EXIV2_DEBUG_MESSAGES
127 std::cerr << "Warning: Exif IFD " << filteredIfd << " not encoded\n";
128#endif
129 exifData.erase(std::remove_if(exifData.begin(), exifData.end(), FindExifdatum(filteredIfd)), exifData.end());
130 }
131
132 OrfHeader header(byteOrder);
133 return TiffParserWorker::encode(io, pData, size, exifData, iptcData, xmpData, Tag::root, TiffMapping::findEncoder,
134 &header, nullptr);
135}
136
137// *************************************************************************
138// free functions

Callers

nothing calls this directly

Calls 5

FindExifdatumClass · 0.85
encodeFunction · 0.85
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected