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

Method readFTYP

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

Source from the content-addressed store, hash-verified

168 }
169
170 protected int readFTYP(int len, Map<String, Object> map) throws IOException {
171 String info = "";
172 while (len > 0) {
173 String s = readString(4);
174 len -= 4;
175 if (s.charAt(0) != '\0')
176 info += s + " ";
177 }
178 info = info.trim();
179 if (verbose)
180 System.out.println("filetype=" + info);
181 fileType = info;
182 return len;
183 }
184
185 protected int readMVHD(int len, Map<String, Object> map) throws IOException {
186 map.put("version_flags", readInt());

Callers 1

readBlockMethod · 0.95

Calls 3

readStringMethod · 0.95
printlnMethod · 0.65
trimMethod · 0.45

Tested by

no test coverage detected