This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* encode image sequence into WEBM video | |
*/ | |
import {exec} from 'child-process-promise'; | |
import format from 'string-template'; | |
import fsAsync from 'file-async'; | |
import shell from 'shelljs'; | |
import path from 'path'; | |
import os from 'os'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DepthmapLoader { | |
/** | |
* load 16-bit PNG depthmap from URL and return | |
* the normalized bitmap as a Canvas ImageData | |
* | |
* @param {string} url - URL of PNG image | |
* @return {Promise} -> {width,height,imageData} | |
*/ | |
fetch(url) { | |
let pngtoy = new PngToy(); |
NewerOlder