") + String.fromCharCode(10) +
---
> divcih("" + String.fromCharCode(10)) +
79c79
< " var rotis=0, ssed=false, zzed=false, always_horizontally_flip=false, cb, ci, ca, always_horizontally_flop=false;" + String.fromCharCode(10) +
---
> " var rotis=0, always_horizontally_flip=false, always_horizontally_flop=false;" + String.fromCharCode(10) +
82,89d81
< " var conbdata;" + String.fromCharCode(10) +
< " var conidata;" + String.fromCharCode(10) +
< " var conideltadata=[];" + String.fromCharCode(10) +
< " var conideltadatanum=62;" + String.fromCharCode(10) +
< " var conadata;" + String.fromCharCode(10) +
< " var conb=null;" + String.fromCharCode(10) +
< " var coni=null;" + String.fromCharCode(10) +
< " var cona=null;" + String.fromCharCode(10) +
91,116c83,97
< " v.addEventListener('canplay', function(e) {" + String.fromCharCode(10) +
< " if (!isStreaming) { " + String.fromCharCode(10) +
< " /" + "/ videoWidth is not always set correctly in all browsers " + String.fromCharCode(10) +
< " if (v.videoWidth > 0) h = v.videoHeight / (v.videoWidth / w); " + String.fromCharCode(10) +
< " c.setAttribute('width', w); " + String.fromCharCode(10) +
< " c.setAttribute('height', h); " + String.fromCharCode(10) +
< " cb.setAttribute('width', w); " + String.fromCharCode(10) +
< " cb.setAttribute('height', h); " + String.fromCharCode(10) +
< " ci.setAttribute('width', w); " + String.fromCharCode(10) +
< " ci.setAttribute('height', h); " + String.fromCharCode(10) +
< " ca.setAttribute('width', w); " + String.fromCharCode(10) +
< " ca.setAttribute('height', h); " + String.fromCharCode(10) +
< " /" + "/ Reverse the canvas image " + String.fromCharCode(10) +
< " con.translate(w, 0); " + String.fromCharCode(10) +
< " con.scale(-1, 1); " + String.fromCharCode(10) +
< " isStreaming = true; " + String.fromCharCode(10) +
< " } " + String.fromCharCode(10) +
< " }, false); " + String.fromCharCode(10) +
< "" + String.fromCharCode(10) +
< " function dImage(img, x, y, width, height, deg, flip, flop, center) { " + String.fromCharCode(10) +
< " /" + "/ thanks to http:/" + "/stackoverflow.com/questions/3129099/how-to-flip-images-horizontally-with-html5 " + String.fromCharCode(10) +
< " con.save(); " + String.fromCharCode(10) +
< "" + String.fromCharCode(10) +
< " if (typeof width === 'undefined') width = img.width; " + String.fromCharCode(10) +
< " if (typeof height === 'undefined') height = img.height; " + String.fromCharCode(10) +
< " if (typeof center === 'undefined') center = false; " + String.fromCharCode(10) +
---
> " v.addEventListener('canplay', function(e) {" + String.fromCharCode(10) +
> " if (!isStreaming) {" + String.fromCharCode(10) +
> " /" + "/ videoWidth isn't always set correctly in all browsers" + String.fromCharCode(10) +
> " if (v.videoWidth > 0) h = v.videoHeight / (v.videoWidth / w);" + String.fromCharCode(10) +
> " c.setAttribute('width', w);" + String.fromCharCode(10) +
> " c.setAttribute('height', h);" + String.fromCharCode(10) +
> " /" + "/ Reverse the canvas image" + String.fromCharCode(10) +
> " con.translate(w, 0);" + String.fromCharCode(10) +
> " con.scale(-1, 1);" + String.fromCharCode(10) +
> " isStreaming = true;" + String.fromCharCode(10) +
> " }" + String.fromCharCode(10) +
> " }, false);" + String.fromCharCode(10) +
> "" + String.fromCharCode(10) +
> " function dImage(img, x, y, width, height, deg, flip, flop, center) { /" + "/ thanks to http://stackoverflow.com/questions/3129099/how-to-flip-images-horizontally-with-html5" + String.fromCharCode(10) +
> " con.save();" + String.fromCharCode(10) +
118c99,103
< " /" + "/ Set rotation point to center of image, instead of top left " + String.fromCharCode(10) +
---
> " if (typeof width === 'undefined') width = img.width;" + String.fromCharCode(10) +
> " if (typeof height === 'undefined') height = img.height;" + String.fromCharCode(10) +
> " if (typeof center === 'undefined') center = false;" + String.fromCharCode(10) +
> "" + String.fromCharCode(10) +
> "/" + "/ Set rotation point to center of image, instead of top/left" + String.fromCharCode(10) +
125c110
< " /" + "/ Set the origin to the center of the image" + String.fromCharCode(10) +
---
> "/" + "/ Set the origin to the center of the image" + String.fromCharCode(10) +
128,129c113,114
< " /" + "/ Rotate the canvas around the origin" + String.fromCharCode(10) +
< " var rad = eval('-' + deg); rad*=Math.PI; rad/=180; rad+=Math.PI; rad+=Math.PI; " + String.fromCharCode(10) +
---
> "/" + "/ Rotate the canvas around the origin" + String.fromCharCode(10) +
> " var rad = 2 * Math.PI - deg * Math.PI / 180; " + String.fromCharCode(10) +
132c117
< " /" + "/ Flip/flop the canvas" + String.fromCharCode(10) +
---
> "/" + "/ Flip/flop the canvas" + String.fromCharCode(10) +
147c132
< " /" + "/ Draw the image " + String.fromCharCode(10) +
---
> "/" + "/ Draw the image " + String.fromCharCode(10) +
165,166c150,151
< " if (greyscale) { if (eval('' + conideltadatanum) > 61 && ssed) { conideltadatanum = 0; } goingGrey(); }" + String.fromCharCode(10) +
< " if (invertit) { if (eval('' + conideltadatanum) > 61) { conideltadatanum = 0; } invert(); }" + String.fromCharCode(10) +
---
> " if (greyscale) goingGrey();" + String.fromCharCode(10) +
> " if (invertit) invert();" + String.fromCharCode(10) +
176,178d160
< " var spredata = conb.getImageData(0, 0, w, h); " + String.fromCharCode(10) +
< " var predata = spredata.data;" + String.fromCharCode(10) +
< " if (ssed && conideltadatanum == 0) { conideltadata=[]; } " + String.fromCharCode(10) +
182d163
< " if (ssed && conideltadatanum == 0) { conideltadata.push(eval(eval('' + data[i]) - eval('' + predata[i]))); } " + String.fromCharCode(10) +
184d164
< " if (ssed && conideltadatanum == 0) { conideltadata.push(eval(eval('' + data[i + 1]) - eval('' + predata[i + 1]))); } " + String.fromCharCode(10) +
186,187d165
< " if (ssed && conideltadatanum == 0) { conideltadata.push(eval(eval('' + data[i + 2]) - eval('' + predata[i + 2]))); } " + String.fromCharCode(10) +
< " if (ssed && conideltadatanum == 0) { conideltadata.push(eval(eval('' + data[i + 3]) - eval('' + predata[i + 3]))); } " + String.fromCharCode(10) +
189,195c167
< " conbdata=imageData; " + String.fromCharCode(10) +
< " con.putImageData(imageData, 0, 0); " + String.fromCharCode(10) +
< " document.getElementById('gradual').style.visibility='visible'; " + String.fromCharCode(10) +
< " if (ssed) { cona.putImageData(imageData, 0, 0); } else { conb.putImageData(imageData, 0, 0); } " + String.fromCharCode(10) +
< " if (ssed && conideltadatanum == 0) { " + String.fromCharCode(10) +
< " coni.putImageData(spredata, 0, 0); " + String.fromCharCode(10) +
< " conideltadatanum=1; conideltadatado(); } " + String.fromCharCode(10) +
---
> " con.putImageData(imageData, 0, 0);" + String.fromCharCode(10) +
200,201d171
< " var spredata = ''; if (conb) { spredata = conb.getImageData(0, 0, w, h); } else if (conideltadatanum == 0) { conideltadatanum=62; } " + String.fromCharCode(10) +
< " if (conideltadatanum == 0) { conideltadata=[]; } " + String.fromCharCode(10) +
203d172
< " var predata = spredata.data;" + String.fromCharCode(10) +
206d174
< " if (conideltadatanum == 0) { conideltadata.push(eval(eval('' + data[i]) - eval('' + predata[i]))); } " + String.fromCharCode(10) +
208d175
< " if (conideltadatanum == 0) { conideltadata.push(eval(eval('' + data[i + 1]) - eval('' + predata[i + 1]))); } " + String.fromCharCode(10) +
210,211d176
< " if (conideltadatanum == 0) { conideltadata.push(eval(eval('' + data[i + 2]) - eval('' + predata[i + 2]))); } " + String.fromCharCode(10) +
< " if (conideltadatanum == 0) { conideltadata.push(eval(eval('' + data[i + 3]) - eval('' + predata[i + 3]))); } " + String.fromCharCode(10) +
213,221c178
< " if (!zzed && conideltadatanum == 0) { zzed=true; if (1 == 6) { alert(conideltadata[eval(Math.floor(data.length / 2))]); } } " + String.fromCharCode(10) +
< " conadata=imageData; " + String.fromCharCode(10) +
< " con.putImageData(imageData, 0, 0); " + String.fromCharCode(10) +
< " document.getElementById('gradual').style.visibility='visible'; " + String.fromCharCode(10) +
< " cona.putImageData(imageData, 0, 0); " + String.fromCharCode(10) +
< " if (conideltadatanum == 0) { " + String.fromCharCode(10) +
< " coni.putImageData(spredata, 0, 0); " + String.fromCharCode(10) +
< " document.getElementById('dgradual').innerHTML='