| Línea 1... |
Línea 1... |
| 1 |
|
1 |
|
| 2 |
var OGVDecoderVideoVP9W = (() => {
|
2 |
var OGVDecoderVideoVP9W = (() => {
|
| 3 |
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
3 |
var _scriptDir = typeof document != 'undefined' ? document.currentScript?.src : undefined;
|
| 4 |
if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
|
4 |
if (typeof __filename != 'undefined') _scriptDir ||= __filename;
|
| 5 |
return (
|
5 |
return (
|
| 6 |
function(OGVDecoderVideoVP9W) {
|
- |
|
| Línea -... |
Línea 6... |
| - |
|
6 |
function(moduleArg = {}) {
|
| - |
|
7 |
|
| - |
|
8 |
var b=moduleArg,aa,n,readyPromise=new Promise((a,c)=>{aa=a;n=c}),ba=Object.assign({},b),fa="object"==typeof window,p="function"==typeof importScripts,ha="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u="",v,w,x;
|
| - |
|
9 |
if(ha){var fs=require("fs"),z=require("path");u=p?z.dirname(u)+"/":__dirname+"/";v=(a,c)=>{a=A(a)?new URL(a):z.normalize(a);return fs.readFileSync(a,c?void 0:"utf8")};x=a=>{a=v(a,!0);a.buffer||(a=new Uint8Array(a));return a};w=(a,c,e,d=!0)=>{a=A(a)?new URL(a):z.normalize(a);fs.readFile(a,d?void 0:"utf8",(f,g)=>{f?e(f):c(d?g.buffer:g)})};process.argv.slice(2)}else if(fa||p)p?u=self.location.href:"undefined"!=typeof document&&document.currentScript&&(u=document.currentScript.src),_scriptDir&&(u=_scriptDir),
|
| - |
|
10 |
u.startsWith("blob:")?u="":u=u.substr(0,u.replace(/[?#].*/,"").lastIndexOf("/")+1),v=a=>{var c=new XMLHttpRequest;c.open("GET",a,!1);c.send(null);return c.responseText},p&&(x=a=>{var c=new XMLHttpRequest;c.open("GET",a,!1);c.responseType="arraybuffer";c.send(null);return new Uint8Array(c.response)}),w=(a,c,e)=>{var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=()=>{200==d.status||0==d.status&&d.response?c(d.response):e()};d.onerror=e;d.send(null)};b.print||console.log.bind(console);
|
| - |
|
11 |
var D=b.printErr||console.error.bind(console);Object.assign(b,ba);ba=null;var G;b.wasmBinary&&(G=b.wasmBinary);var H,ia=!1,I;function ja(){var a=H.buffer;b.HEAP8=new Int8Array(a);b.HEAP16=new Int16Array(a);b.HEAPU8=I=new Uint8Array(a);b.HEAPU16=new Uint16Array(a);b.HEAP32=new Int32Array(a);b.HEAPU32=new Uint32Array(a);b.HEAPF32=new Float32Array(a);b.HEAPF64=new Float64Array(a)}var ka=[],la=[],ma=[];function na(){var a=b.preRun.shift();ka.unshift(a)}
|
| - |
|
12 |
var J=0,oa=null,M=null,pa=a=>a.startsWith("data:application/octet-stream;base64,"),A=a=>a.startsWith("file://"),N;N="ogv-decoder-video-vp9-wasm.wasm";if(!pa(N)){var qa=N;N=b.locateFile?b.locateFile(qa,u):u+qa}function ra(a){if(a==N&&G)return new Uint8Array(G);if(x)return x(a);throw"both async and sync fetching of the wasm failed";}
|
| - |
|
13 |
function sa(a){if(!G&&(fa||p)){if("function"==typeof fetch&&!A(a))return fetch(a,{credentials:"same-origin"}).then(c=>{if(!c.ok)throw`failed to load wasm binary file at '${a}'`;return c.arrayBuffer()}).catch(()=>ra(a));if(w)return new Promise((c,e)=>{w(a,d=>c(new Uint8Array(d)),e)})}return Promise.resolve().then(()=>ra(a))}
|
| - |
|
14 |
function ta(a,c,e){return sa(a).then(d=>WebAssembly.instantiate(d,c)).then(e,d=>{D(`failed to asynchronously prepare wasm: ${d}`);b.onAbort?.(d);d="Aborted("+d+")";D(d);ia=!0;d=new WebAssembly.RuntimeError(d+". Build with -sASSERTIONS for more info.");n(d);throw d;})}
|
| - |
|
15 |
function ua(a,c){var e=N;return G||"function"!=typeof WebAssembly.instantiateStreaming||pa(e)||A(e)||ha||"function"!=typeof fetch?ta(e,a,c):fetch(e,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(c,function(f){D(`wasm streaming compile failed: ${f}`);D("falling back to ArrayBuffer instantiation");return ta(e,a,c)}))}
|
| - |
|
16 |
var va=a=>{for(;0<a.length;)a.shift()(b)},O=[],Ha,P=a=>{var c=O[a];c||(a>=O.length&&(O.length=a+1),O[a]=c=Ha.get(a));return c},Qa={h:(a,c,e)=>I.copyWithin(a,c,c+e),j:()=>{throw Infinity;},k:a=>{var c=I.length;a>>>=0;if(2147483648<a)return!1;for(var e=1;4>=e;e*=2){var d=c*(1+.2/e);d=Math.min(d,a+100663296);var f=Math;d=Math.max(a,d);a:{f=(f.min.call(f,2147483648,d+(65536-d%65536)%65536)-H.buffer.byteLength+65535)/65536;try{H.grow(f);ja();var g=1;break a}catch(h){}g=void 0}if(g)return!0}return!1},b:Ia,
|
| - |
|
17 |
d:Ja,g:Ka,e:La,c:Ma,a:Na,i:Oa,f:Pa,l:function(a,c,e,d,f,g,h,l,q,r,t,K,S,T,ca,da){function ea(E,k,B,wa,xa,ya,Ta,Ua,U){E.set(new Uint8Array(Va,k,B*wa));var C,y;for(C=y=0;C<ya;C++,y+=B)for(k=0;k<B;k++)E[y+k]=U;for(;C<ya+Ua;C++,y+=B){for(k=0;k<xa;k++)E[y+k]=U;for(k=xa+Ta;k<B;k++)E[y+k]=U}for(;C<wa;C++,y+=B)for(k=0;k<B;k++)E[y+k]=U;return E}var Va=H.buffer,m=b.videoFormat,za=(S&-2)*q/h,Aa=(T&-2)*r/l,Ba=t*q/h,Ca=K*r/l;t===m.cropWidth&&K===m.cropHeight&&(ca=m.displayWidth,da=m.displayHeight);for(var Da=
|
| - |
|
18 |
b.recycledFrames,F,Ea=l*c,Fa=r*d,Ga=r*g;0<Da.length;){var L=Da.shift();m=L.format;if(m.width===h&&m.height===l&&m.chromaWidth===q&&m.chromaHeight===r&&m.cropLeft===S&&m.cropTop===T&&m.cropWidth===t&&m.cropHeight===K&&m.displayWidth===ca&&m.displayHeight===da&&L.y.bytes.length===Ea&&L.u.bytes.length===Fa&&L.v.bytes.length===Ga){F=L;break}}F||={format:{width:h,height:l,chromaWidth:q,chromaHeight:r,cropLeft:S,cropTop:T,cropWidth:t,cropHeight:K,displayWidth:ca,displayHeight:da},y:{bytes:new Uint8Array(Ea),
|
| - |
|
19 |
stride:c},u:{bytes:new Uint8Array(Fa),stride:d},v:{bytes:new Uint8Array(Ga),stride:g}};ea(F.y.bytes,a,c,l,S,T,t,K,0);ea(F.u.bytes,e,d,r,za,Aa,Ba,Ca,128);ea(F.v.bytes,f,g,r,za,Aa,Ba,Ca,128);b.frameBuffer=F}},Q=function(){function a(e){Q=e.exports;H=Q.m;ja();Ha=Q.t;la.unshift(Q.n);J--;b.monitorRunDependencies?.(J);0==J&&(null!==oa&&(clearInterval(oa),oa=null),M&&(e=M,M=null,e()));return Q}var c={a:Qa};J++;b.monitorRunDependencies?.(J);if(b.instantiateWasm)try{return b.instantiateWasm(c,a)}catch(e){D(`Module.instantiateWasm callback failed with error: ${e}`),
|
| - |
|
20 |
n(e)}ua(c,function(e){a(e.instance)}).catch(n);return{}}();b._ogv_video_decoder_init=()=>(b._ogv_video_decoder_init=Q.o)();b._ogv_video_decoder_async=()=>(b._ogv_video_decoder_async=Q.p)();b._ogv_video_decoder_destroy=()=>(b._ogv_video_decoder_destroy=Q.q)();b._ogv_video_decoder_process_header=(a,c)=>(b._ogv_video_decoder_process_header=Q.r)(a,c);b._ogv_video_decoder_process_frame=(a,c)=>(b._ogv_video_decoder_process_frame=Q.s)(a,c);b._malloc=a=>(b._malloc=Q.u)(a);b._free=a=>(b._free=Q.v)(a);
|
| - |
|
21 |
var R=(a,c)=>(R=Q.w)(a,c),V=a=>(V=Q.x)(a),W=()=>(W=Q.y)();function Ka(a,c,e,d,f){var g=W();try{return P(a)(c,e,d,f)}catch(h){V(g);if(h!==h+0)throw h;R(1,0)}}function Na(a,c,e,d,f){var g=W();try{P(a)(c,e,d,f)}catch(h){V(g);if(h!==h+0)throw h;R(1,0)}}function Pa(a,c,e,d,f,g,h,l,q){var r=W();try{P(a)(c,e,d,f,g,h,l,q)}catch(t){V(r);if(t!==t+0)throw t;R(1,0)}}function La(a,c,e,d,f,g){var h=W();try{return P(a)(c,e,d,f,g)}catch(l){V(h);if(l!==l+0)throw l;R(1,0)}}
|
| - |
|
22 |
function Ja(a,c,e,d){var f=W();try{return P(a)(c,e,d)}catch(g){V(f);if(g!==g+0)throw g;R(1,0)}}function Oa(a,c,e,d,f,g,h){var l=W();try{P(a)(c,e,d,f,g,h)}catch(q){V(l);if(q!==q+0)throw q;R(1,0)}}function Ia(a,c,e){var d=W();try{return P(a)(c,e)}catch(f){V(d);if(f!==f+0)throw f;R(1,0)}}function Ma(a,c){var e=W();try{P(a)(c)}catch(d){V(e);if(d!==d+0)throw d;R(1,0)}}var X;M=function Ra(){X||Sa();X||(M=Ra)};
|
| - |
|
23 |
function Sa(){function a(){if(!X&&(X=!0,b.calledRun=!0,!ia)){va(la);aa(b);if(b.onRuntimeInitialized)b.onRuntimeInitialized();if(b.postRun)for("function"==typeof b.postRun&&(b.postRun=[b.postRun]);b.postRun.length;){var c=b.postRun.shift();ma.unshift(c)}va(ma)}}if(!(0<J)){if(b.preRun)for("function"==typeof b.preRun&&(b.preRun=[b.preRun]);b.preRun.length;)na();va(ka);0<J||(b.setStatus?(b.setStatus("Running..."),setTimeout(function(){setTimeout(function(){b.setStatus("")},1);a()},1)):a())}}
|
| - |
|
24 |
if(b.preInit)for("function"==typeof b.preInit&&(b.preInit=[b.preInit]);0<b.preInit.length;)b.preInit.pop()();Sa();var Y,Wa,Xa;Xa="undefined"===typeof performance||"undefined"===typeof performance.now?Date.now:performance.now.bind(performance);function Z(a){var c=Xa();a=a();b.cpuTime+=Xa()-c;return a}b.loadedMetadata=!!b.videoFormat;b.videoFormat=b.videoFormat||null;b.frameBuffer=null;b.cpuTime=0;Object.defineProperty(b,"processing",{get:function(){return!1}});
|
| - |
|
25 |
b.init=function(a){Z(function(){b._ogv_video_decoder_init()});a()};b.processHeader=function(a,c){var e=Z(function(){var d=a.byteLength;Y&&Wa>=d||(Y&&b._free(Y),Wa=d,Y=b._malloc(Wa));var f=Y;(new Uint8Array(H.buffer,f,d)).set(new Uint8Array(a));return b._ogv_video_decoder_process_header(f,d)});c(e)};b.A=[];
|
| Línea 7... |
Línea -... |
| 7 |
OGVDecoderVideoVP9W = OGVDecoderVideoVP9W || {};
|
- |
|
| 8 |
|
- |
|
| 9 |
|
- |
|
| 10 |
var a;a||(a=typeof OGVDecoderVideoVP9W !== 'undefined' ? OGVDecoderVideoVP9W : {});var aa,n;a.ready=new Promise(function(b,c){aa=b;n=c});var ba=a,ca=Object.assign({},a),ha="object"==typeof window,p="function"==typeof importScripts,q="",v,w,x,fs,z,D;
|
- |
|
| 11 |
if("object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node)q=p?require("path").dirname(q)+"/":__dirname+"/",D=()=>{z||(fs=require("fs"),z=require("path"))},v=function(b,c){D();b=z.normalize(b);return fs.readFileSync(b,c?void 0:"utf8")},x=b=>{b=v(b,!0);b.buffer||(b=new Uint8Array(b));return b},w=(b,c,e)=>{D();b=z.normalize(b);fs.readFile(b,function(d,f){d?e(d):c(f.buffer)})},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),
|
- |
|
| 12 |
process.on("unhandledRejection",function(b){throw b;}),a.inspect=function(){return"[Emscripten Module object]"};else if(ha||p)p?q=self.location.href:"undefined"!=typeof document&&document.currentScript&&(q=document.currentScript.src),_scriptDir&&(q=_scriptDir),0!==q.indexOf("blob:")?q=q.substr(0,q.replace(/[?#].*/,"").lastIndexOf("/")+1):q="",v=b=>{var c=new XMLHttpRequest;c.open("GET",b,!1);c.send(null);return c.responseText},p&&(x=b=>{var c=new XMLHttpRequest;c.open("GET",b,!1);c.responseType="arraybuffer";
|
- |
|
| 13 |
c.send(null);return new Uint8Array(c.response)}),w=(b,c,e)=>{var d=new XMLHttpRequest;d.open("GET",b,!0);d.responseType="arraybuffer";d.onload=()=>{200==d.status||0==d.status&&d.response?c(d.response):e()};d.onerror=e;d.send(null)};a.print||console.log.bind(console);var F=a.printErr||console.warn.bind(console);Object.assign(a,ca);ca=null;var ia=0,G;a.wasmBinary&&(G=a.wasmBinary);var noExitRuntime=a.noExitRuntime||!0;"object"!=typeof WebAssembly&&H("no native wasm support detected");
|
- |
|
| 14 |
var I,ja=!1,ka,la;function ma(){var b=I.buffer;ka=b;a.HEAP8=new Int8Array(b);a.HEAP16=new Int16Array(b);a.HEAP32=new Int32Array(b);a.HEAPU8=la=new Uint8Array(b);a.HEAPU16=new Uint16Array(b);a.HEAPU32=new Uint32Array(b);a.HEAPF32=new Float32Array(b);a.HEAPF64=new Float64Array(b)}var na,oa=[],pa=[],qa=[];function ra(){var b=a.preRun.shift();oa.unshift(b)}var L=0,sa=null,M=null;a.preloadedImages={};a.preloadedAudios={};
|
- |
|
| 15 |
function H(b){if(a.onAbort)a.onAbort(b);b="Aborted("+b+")";F(b);ja=!0;b=new WebAssembly.RuntimeError(b+". Build with -s ASSERTIONS=1 for more info.");n(b);throw b;}function ta(){return N.startsWith("data:application/octet-stream;base64,")}var N;N="ogv-decoder-video-vp9-wasm.wasm";if(!ta()){var ua=N;N=a.locateFile?a.locateFile(ua,q):q+ua}function va(){var b=N;try{if(b==N&&G)return new Uint8Array(G);if(x)return x(b);throw"both async and sync fetching of the wasm failed";}catch(c){H(c)}}
|
- |
|
| 16 |
function wa(){if(!G&&(ha||p)){if("function"==typeof fetch&&!N.startsWith("file://"))return fetch(N,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+N+"'";return b.arrayBuffer()}).catch(function(){return va()});if(w)return new Promise(function(b,c){w(N,function(e){b(new Uint8Array(e))},c)})}return Promise.resolve().then(function(){return va()})}
|
- |
|
| 17 |
function xa(b){for(;0<b.length;){var c=b.shift();if("function"==typeof c)c(a);else{var e=c.D;"number"==typeof e?void 0===c.B?O(e)():O(e)(c.B):e(void 0===c.B?null:c.B)}}}var P=[];function O(b){var c=P[b];c||(b>=P.length&&(P.length=b+1),P[b]=c=na.get(b));return c}
|
- |
|
| 18 |
var Ra={k:function(){throw Infinity;},m:function(b,c,e){la.copyWithin(b,c,c+e)},l:function(b){var c=la.length;b>>>=0;if(2147483648<b)return!1;for(var e=1;4>=e;e*=2){var d=c*(1+.2/e);d=Math.min(d,b+100663296);var f=Math;d=Math.max(b,d);f=f.min.call(f,2147483648,d+(65536-d%65536)%65536);a:{try{I.grow(f-ka.byteLength+65535>>>16);ma();var g=1;break a}catch(h){}g=void 0}if(g)return!0}return!1},a:function(){return ia},d:Ja,f:Ka,i:La,g:Ma,e:Na,c:Oa,j:Pa,h:Qa,n:function(b,c,e,d,f,g,h,l,r,t,u,J,Q,R,da,ea){function fa(E,
|
- |
|
| 19 |
k,A,ya,za,Aa,Ta,Ua,S){E.set(new Uint8Array(Va,k,A*ya));var B,y;for(B=y=0;B<Aa;B++,y+=A)for(k=0;k<A;k++)E[y+k]=S;for(;B<Aa+Ua;B++,y+=A){for(k=0;k<za;k++)E[y+k]=S;for(k=za+Ta;k<A;k++)E[y+k]=S}for(;B<ya;B++,y+=A)for(k=0;k<A;k++)E[y+k]=S;return E}var Va=I.buffer,m=a.videoFormat,Ba=(Q&-2)*r/h,Ca=(R&-2)*t/l,Da=u*r/h,Ea=J*t/l;u===m.cropWidth&&J===m.cropHeight&&(da=m.displayWidth,ea=m.displayHeight);for(var Fa=a.recycledFrames,C,Ga=l*c,Ha=t*d,Ia=t*g;0<Fa.length;){var K=Fa.shift();m=K.format;if(m.width===
|
- |
|
| 20 |
h&&m.height===l&&m.chromaWidth===r&&m.chromaHeight===t&&m.cropLeft===Q&&m.cropTop===R&&m.cropWidth===u&&m.cropHeight===J&&m.displayWidth===da&&m.displayHeight===ea&&K.y.bytes.length===Ga&&K.u.bytes.length===Ha&&K.v.bytes.length===Ia){C=K;break}}C||(C={format:{width:h,height:l,chromaWidth:r,chromaHeight:t,cropLeft:Q,cropTop:R,cropWidth:u,cropHeight:J,displayWidth:da,displayHeight:ea},y:{bytes:new Uint8Array(Ga),stride:c},u:{bytes:new Uint8Array(Ha),stride:d},v:{bytes:new Uint8Array(Ia),stride:g}});
|
- |
|
| 21 |
fa(C.y.bytes,b,c,l,Q,R,u,J,0);fa(C.u.bytes,e,d,t,Ba,Ca,Da,Ea,128);fa(C.v.bytes,f,g,t,Ba,Ca,Da,Ea,128);a.frameBuffer=C},b:function(b){ia=b}};
|
- |
|
| 22 |
(function(){function b(f){a.asm=f.exports;I=a.asm.o;ma();na=a.asm.v;pa.unshift(a.asm.p);L--;a.monitorRunDependencies&&a.monitorRunDependencies(L);0==L&&(null!==sa&&(clearInterval(sa),sa=null),M&&(f=M,M=null,f()))}function c(f){b(f.instance)}function e(f){return wa().then(function(g){return WebAssembly.instantiate(g,d)}).then(function(g){return g}).then(f,function(g){F("failed to asynchronously prepare wasm: "+g);H(g)})}var d={a:Ra};L++;a.monitorRunDependencies&&a.monitorRunDependencies(L);if(a.instantiateWasm)try{return a.instantiateWasm(d,
|
- |
|
| 23 |
b)}catch(f){return F("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return G||"function"!=typeof WebAssembly.instantiateStreaming||ta()||N.startsWith("file://")||"function"!=typeof fetch?e(c):fetch(N,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,d).then(c,function(g){F("wasm streaming compile failed: "+g);F("falling back to ArrayBuffer instantiation");return e(c)})})})().catch(n);return{}})();
|
- |
|
| 24 |
a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.p).apply(null,arguments)};a._ogv_video_decoder_init=function(){return(a._ogv_video_decoder_init=a.asm.q).apply(null,arguments)};a._ogv_video_decoder_async=function(){return(a._ogv_video_decoder_async=a.asm.r).apply(null,arguments)};a._ogv_video_decoder_destroy=function(){return(a._ogv_video_decoder_destroy=a.asm.s).apply(null,arguments)};
|
- |
|
| 25 |
a._ogv_video_decoder_process_header=function(){return(a._ogv_video_decoder_process_header=a.asm.t).apply(null,arguments)};a._ogv_video_decoder_process_frame=function(){return(a._ogv_video_decoder_process_frame=a.asm.u).apply(null,arguments)};a._malloc=function(){return(a._malloc=a.asm.w).apply(null,arguments)};a._free=function(){return(a._free=a.asm.x).apply(null,arguments)};
|
- |
|
| 26 |
var T=a._setThrew=function(){return(T=a._setThrew=a.asm.y).apply(null,arguments)},U=a.stackSave=function(){return(U=a.stackSave=a.asm.z).apply(null,arguments)},V=a.stackRestore=function(){return(V=a.stackRestore=a.asm.A).apply(null,arguments)};function La(b,c,e,d,f){var g=U();try{return O(b)(c,e,d,f)}catch(h){V(g);if(h!==h+0)throw h;T(1,0)}}function Oa(b,c,e,d,f){var g=U();try{O(b)(c,e,d,f)}catch(h){V(g);if(h!==h+0)throw h;T(1,0)}}
|
- |
|
| 27 |
function Qa(b,c,e,d,f,g,h,l,r){var t=U();try{O(b)(c,e,d,f,g,h,l,r)}catch(u){V(t);if(u!==u+0)throw u;T(1,0)}}function Ma(b,c,e,d,f,g){var h=U();try{return O(b)(c,e,d,f,g)}catch(l){V(h);if(l!==l+0)throw l;T(1,0)}}function Ka(b,c,e,d){var f=U();try{return O(b)(c,e,d)}catch(g){V(f);if(g!==g+0)throw g;T(1,0)}}function Pa(b,c,e,d,f,g,h){var l=U();try{O(b)(c,e,d,f,g,h)}catch(r){V(l);if(r!==r+0)throw r;T(1,0)}}function Ja(b,c,e){var d=U();try{return O(b)(c,e)}catch(f){V(d);if(f!==f+0)throw f;T(1,0)}}
|
- |
|
| 28 |
function Na(b,c){var e=U();try{O(b)(c)}catch(d){V(e);if(d!==d+0)throw d;T(1,0)}}var W;M=function Sa(){W||Wa();W||(M=Sa)};
|
- |
|
| 29 |
function Wa(){function b(){if(!W&&(W=!0,a.calledRun=!0,!ja)){xa(pa);aa(a);if(a.onRuntimeInitialized)a.onRuntimeInitialized();if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;){var c=a.postRun.shift();qa.unshift(c)}xa(qa)}}if(!(0<L)){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)ra();xa(oa);0<L||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1);b()},1)):b())}}a.run=Wa;
|
- |
|
| 30 |
if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0<a.preInit.length;)a.preInit.pop()();Wa();var X,Xa,Y;"undefined"===typeof performance||"undefined"===typeof performance.now?Y=Date.now:Y=performance.now.bind(performance);function Z(b){var c=Y();b=b();a.cpuTime+=Y()-c;return b}a.loadedMetadata=!!ba.videoFormat;a.videoFormat=ba.videoFormat||null;a.frameBuffer=null;a.cpuTime=0;Object.defineProperty(a,"processing",{get:function(){return!1}});
|
- |
|
| Línea 31... |
Línea -... |
| 31 |
a.init=function(b){Z(function(){a._ogv_video_decoder_init()});b()};a.processHeader=function(b,c){var e=Z(function(){var d=b.byteLength;X&&Xa>=d||(X&&a._free(X),Xa=d,X=a._malloc(Xa));var f=X;(new Uint8Array(I.buffer,f,d)).set(new Uint8Array(b));return a._ogv_video_decoder_process_header(f,d)});c(e)};a.C=[];
|
- |
|
| 32 |
a.processFrame=function(b,c){function e(l){a._free(g);c(l)}var d=a._ogv_video_decoder_async(),f=b.byteLength,g=a._malloc(f);d&&a.C.push(e);var h=Z(function(){(new Uint8Array(I.buffer,g,f)).set(new Uint8Array(b));return a._ogv_video_decoder_process_frame(g,f)});d||e(h)};a.close=function(){};a.sync=function(){a._ogv_video_decoder_async()&&(a.C.push(function(){}),Z(function(){a._ogv_video_decoder_process_frame(0,0)}))};a.recycledFrames=[];
|
26 |
b.processFrame=function(a,c){function e(l){b._free(g);c(l)}var d=b._ogv_video_decoder_async(),f=a.byteLength,g=b._malloc(f);d&&b.A.push(e);var h=Z(function(){(new Uint8Array(H.buffer,g,f)).set(new Uint8Array(a));return b._ogv_video_decoder_process_frame(g,f)});d||e(h)};b.close=function(){};b.sync=function(){b._ogv_video_decoder_async()&&(b.A.push(function(){}),Z(function(){b._ogv_video_decoder_process_frame(0,0)}))};b.recycledFrames=[];
|
| 33 |
a.recycleFrame=function(b){var c=a.recycledFrames;c.push(b);16<c.length&&c.shift()};
|
27 |
b.recycleFrame=function(a){var c=b.recycledFrames;c.push(a);16<c.length&&c.shift()};
|
| 34 |
|
28 |
|
| 35 |
|
29 |
|
| 36 |
return OGVDecoderVideoVP9W.ready
|
30 |
return readyPromise
|
| 37 |
}
|
31 |
}
|
| 38 |
);
|
32 |
);
|
| 39 |
})();
|
33 |
})();
|
| 40 |
if (typeof exports === 'object' && typeof module === 'object')
|
- |
|
| 41 |
module.exports = OGVDecoderVideoVP9W;
|
- |
|