code: function parseWebP(riff){
  		var VP8 = riff.RIFF[0].WEBP[0];
  
  		var frame_start = VP8.indexOf('\x9d\x01\x2a'); //A VP8 keyframe starts with the 0x9d012a header
  		for(var i = 0, c = []; i < 4; i++) c[i] = VP8.charCodeAt(frame_start + 3 + i);
  
  		var width, horizontal_scale, height, vertical_scale, tmp;
  
  		//the code below is literally copied verbatim from the bitstream spec
  		tmp = (c[1] << 8) | c[0];
  		width = tmp & 0x3FFF;
  		horizontal_scale = tmp >> 14;
  		tmp = (c[3] << 8) | c[2];
  		height = tmp & 0x3FFF;
  		vertical_scale = tmp >> 14;
  		return {
  			width: width,
  			height: height,
  			data: VP8,
  			riff: riff
  		}
  	}
docs: here's something else taken verbatim from weppy, awesome rite?