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

Method keysTagDecoder

src/quicktimevideo.cpp:739–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737} // QuickTimeVideo::previewTagDecoder
738
739void QuickTimeVideo::keysTagDecoder(size_t size) {
740 DataBuf buf(4);
741 size_t cur_pos = io_->tell();
742 io_->readOrThrow(buf.data(), 4);
743 xmpData_["Xmp.video.PreviewDate"] = buf.read_uint32(0, bigEndian);
744 io_->readOrThrow(buf.data(), 2);
745 xmpData_["Xmp.video.PreviewVersion"] = getShort(buf.data(), bigEndian);
746
747 io_->readOrThrow(buf.data(), 4);
748 if (equalsQTimeTag(buf, "PICT"))
749 xmpData_["Xmp.video.PreviewAtomType"] = "QuickDraw Picture";
750 else
751 xmpData_["Xmp.video.PreviewAtomType"] = std::string{buf.c_str(), 4};
752
753 io_->seek(cur_pos + size, BasicIo::beg);
754} // QuickTimeVideo::keysTagDecoder
755
756void QuickTimeVideo::trackApertureTagDecoder(size_t size) {
757 DataBuf buf(4);

Callers

nothing calls this directly

Calls 8

getShortFunction · 0.85
equalsQTimeTagFunction · 0.85
tellMethod · 0.80
readOrThrowMethod · 0.80
dataMethod · 0.80
read_uint32Method · 0.80
c_strMethod · 0.80
seekMethod · 0.80

Tested by

no test coverage detected