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

Method previewTagDecoder

src/quicktimevideo.cpp:722–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720} // QuickTimeVideo::discard
721
722void QuickTimeVideo::previewTagDecoder(size_t size) {
723 DataBuf buf(4);
724 size_t cur_pos = io_->tell();
725 io_->readOrThrow(buf.data(), 4);
726 xmpData_["Xmp.video.PreviewDate"] = buf.read_uint32(0, bigEndian);
727 io_->readOrThrow(buf.data(), 2);
728 xmpData_["Xmp.video.PreviewVersion"] = getShort(buf.data(), bigEndian);
729
730 io_->readOrThrow(buf.data(), 4);
731 if (equalsQTimeTag(buf, "PICT"))
732 xmpData_["Xmp.video.PreviewAtomType"] = "QuickDraw Picture";
733 else
734 xmpData_["Xmp.video.PreviewAtomType"] = std::string{buf.c_str(), 4};
735
736 io_->seek(cur_pos + size, BasicIo::beg);
737} // QuickTimeVideo::previewTagDecoder
738
739void QuickTimeVideo::keysTagDecoder(size_t size) {
740 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