| 720 | } // QuickTimeVideo::discard |
| 721 | |
| 722 | void 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 | |
| 739 | void QuickTimeVideo::keysTagDecoder(size_t size) { |
| 740 | DataBuf buf(4); |
nothing calls this directly
no test coverage detected