MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / readTKHD

Method readTKHD

src/javajs/util/VideoReader.java:209–220  ·  view source on GitHub ↗
(int len, Map<String, Object> map)

Source from the content-addressed store, hash-verified

207 }
208
209 protected int readTKHD(int len, Map<String, Object> map) throws IOException {
210 map.put("version_flags", readInt());
211 map.put("creationTime", readUIntLong());
212 map.put("modificationTime", readUIntLong());
213 map.put("trackID", readInt());
214 readInt(); // reserved
215 int dur = readInt();
216 map.put("duration", dur);
217 map.put("_duration(sec)", 1.0 * dur / timeScale);
218 skip(len - 24);
219 return 0;
220 }
221
222 protected int readSTSD(int len, Map<String, Object> map) throws IOException {
223 map.put("version_flags", readInt());

Callers 1

readBlockMethod · 0.95

Calls 4

readIntMethod · 0.95
readUIntLongMethod · 0.95
skipMethod · 0.95
putMethod · 0.45

Tested by

no test coverage detected