Searched refs:fileType (Results 1 – 1 of 1) sorted by relevance
/development/tools/winscope/src/ |
D | decode.js | 218 function protoDecoder(buffer, fileType, fileName, store) { argument 219 var decoded = fileType.decoderParams.protoType.decode(buffer); 221 var transformed = fileType.decoderParams.transform(decoded); 223 if (fileType.decoderParams.timeline) { 228 let blobUrl = URL.createObjectURL(new Blob([buffer], { type: fileType.dataType.mime })); 229 return dataFile(fileName, data.map(x => x.timestamp), data, blobUrl, fileType.dataType); 232 function videoDecoder(buffer, fileType, fileName, store) { argument 233 let [data, timeline] = fileType.decoderParams.videoDecoder(buffer); 234 let blobUrl = URL.createObjectURL(new Blob([data], { type: fileType.dataType.mime })); 235 return dataFile(fileName, timeline, blobUrl, blobUrl, fileType.dataType); [all …]
|