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

Method readSTSD

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

Source from the content-addressed store, hash-verified

220 }
221
222 protected int readSTSD(int len, Map<String, Object> map) throws IOException {
223 map.put("version_flags", readInt());
224 map.put("entryCount", readInt());
225 map.put("size", readInt());
226 if (codec == null)
227 codec = "";
228 else
229 codec += ",";
230 codec += readString(4);
231 if (verbose)
232 System.out.println("codec=" + codec);
233 skip(len - 16);
234 map.put("codec", codec);
235 return 0;
236 }
237
238 protected void skip(int n) throws IOException {
239 if (n <= 0)

Callers 1

readBlockMethod · 0.95

Calls 5

readIntMethod · 0.95
readStringMethod · 0.95
skipMethod · 0.95
printlnMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected