conformtools 0.6.0 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -17
- package/dist/browser/timeline_core_bg.wasm +0 -0
- package/dist/{chunk-PZFWQJCF.js → chunk-5K56Q5EX.js} +1 -1
- package/dist/chunk-6FVGUJ6L.js +3 -0
- package/dist/{chunk-N43NAG5E.js → chunk-BK62N3ID.js} +1 -1
- package/dist/{chunk-AHNDJFQR.js → chunk-BUEIRRNY.js} +1 -1
- package/dist/{chunk-XDHIIZ6A.js → chunk-CETBLAWM.js} +1 -1
- package/dist/{chunk-ZAHP3ES5.js → chunk-D2RXAX5C.js} +1 -1
- package/dist/chunk-D5DEQ467.js +3 -0
- package/dist/chunk-EV52G33S.js +354 -0
- package/dist/chunk-FMYTLXWN.js +3 -0
- package/dist/{chunk-R6WJ6JIQ.js → chunk-JBSH4AK3.js} +1 -1
- package/dist/{chunk-PSMXHDMX.js → chunk-LO4K2ZF3.js} +1 -1
- package/dist/{chunk-UUDNNFU7.js → chunk-R7P7WVNI.js} +1 -1
- package/dist/{chunk-7XTBFOUJ.js → chunk-WE4S4PEA.js} +1 -1
- package/dist/claude-setup-XSNTKEU7.js +5 -0
- package/dist/cli.js +10 -5
- package/dist/conformtools-decode +0 -0
- package/dist/{cr3-wasm-CWKEOCYH.js → cr3-wasm-HTRSUBJK.js} +1 -1
- package/dist/{dng-wasm-JNFS44V5.js → dng-wasm-2I7S2SN4.js} +1 -1
- package/dist/{dpx-wasm-VNJRFPYY.js → dpx-wasm-AHH7D56L.js} +1 -1
- package/dist/{exr-wasm-5D66YR7A.js → exr-wasm-3TAN64WQ.js} +1 -1
- package/dist/{h264-ZB5DJSNV.js → h264-2LU2X635.js} +1 -1
- package/dist/{h264-mxf-NVBLGU3V.js → h264-mxf-5HJUSZLL.js} +1 -1
- package/dist/http.js +1 -1
- package/dist/i2o-transfer +0 -0
- package/dist/{inspect-MGSZRRAF.js → inspect-NY36WVMH.js} +1 -1
- package/dist/isobmff-HSF7B3Y7.js +3 -0
- package/dist/mcp.js +8 -9
- package/dist/{media_core-AISE7FMT.js → media_core-R5PPN3AY.js} +2 -2
- package/dist/{media_core_bg-FGAR5KA5.js → media_core_bg-MEORQOCQ.js} +1 -1
- package/dist/mxf-IQBPP3JA.js +3 -0
- package/dist/{ops-BQDPU4M6.js → ops-PFEKOSET.js} +1 -1
- package/dist/{r3d-T6D3M2XJ.js → r3d-QLV4J6YF.js} +1 -1
- package/dist/{r3d-U4XTQJXQ.js → r3d-YZH6X2D7.js} +1 -1
- package/dist/resolve-bridge.py +465 -37
- package/dist/statusline-GMMCFMOA.js +4 -0
- package/dist/statusline.js +3 -0
- package/dist/still-LORP3E5C.js +3 -0
- package/dist/{tiff-wasm-2CEABW6L.js → tiff-wasm-6XFTTCL4.js} +1 -1
- package/dist/wasm/media_core_bg.wasm +0 -0
- package/dist/wasm/udf_bg.wasm +0 -0
- package/dist/wasm-threads/media_core_bg.wasm +0 -0
- package/dist/{wav-KNJZMOGX.js → wav-PMVKVYNP.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-E6YXZIJS.js +0 -230
- package/dist/chunk-JEMLKBH2.js +0 -3
- package/dist/chunk-RXHNBSER.js +0 -3
- package/dist/isobmff-7G55HKDG.js +0 -3
- package/dist/mxf-YH2A2XLW.js +0 -3
- package/dist/skills/auto-conform/SKILL.md +0 -87
- package/dist/skills/conform-artist/SKILL.md +0 -68
- package/dist/skills/conform-artist/references/avid.md +0 -19
- package/dist/skills/conform-artist/references/other-hosts.md +0 -23
- package/dist/skills/conform-artist/references/premiere.md +0 -18
- package/dist/skills/conform-artist/references/resolve.md +0 -19
- package/dist/skills/conform-artist/references/troubleshooting.md +0 -33
- package/dist/skills/conform-artist/references/turnover-checklist.md +0 -37
- package/dist/skills/delivery-qc/SKILL.md +0 -48
- package/dist/still-UFLOAEM4.js +0 -3
- /package/dist/{arriraw-3GKCR6K2.js → arriraw-GUQEZ7CH.js} +0 -0
- /package/dist/{chunk-WHY3DVXS.js → chunk-GIZIR52D.js} +0 -0
- /package/dist/{media_core_bg-YK63OUDM.js → media_core_bg-5QHIWEZB.js} +0 -0
- /package/dist/{prores-L4JZZWGH.js → prores-BR2YURFP.js} +0 -0
- /package/dist/{timeline_core_bg-2TYWZ35G.js → timeline_core_bg-DFKQ7XOU.js} +0 -0
- /package/dist/{udf_bg-A4WEMSAX.js → udf_bg-ZIB3GK52.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import"./chunk-PSANHDZM.js";function wt(r,n){return new Promise(e=>{r.addEventListener("message",function _({data:i}){i?.type===n&&(r.removeEventListener("message",_),e(i))})})}wt(self,"wasm_bindgen_worker_init").then(async({init:r,receiver:n})=>{let e=await import("./media_core-AISE7FMT.js");await e.default(r),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(n)});var Tt;async function bt(r,n,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");let _={type:"wasm_bindgen_worker_init",init:{module_or_path:r,memory:n},receiver:e.receiver()};Tt=await Promise.all(Array.from({length:e.numThreads()},async()=>{let i=new Worker(new URL("./workerHelpers.js",import.meta.url),{type:"module"});return i.postMessage(_),await wt(i,"wasm_bindgen_worker_ready"),i})),e.build()}var tt=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_exrbench_free(n,0)}block_rows(){return t.exrbench_block_rows(this.__wbg_ptr)>>>0}f32_to_half_block(){return t.exrbench_f32_to_half_block(this.__wbg_ptr)}n_blocks(){return t.exrbench_n_blocks(this.__wbg_ptr)>>>0}constructor(n,e,_,i){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=y(i,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.exrbench_new(d,n,e,_,g,w);var c=o().getInt32(d+0,!0),a=o().getInt32(d+4,!0),s=o().getInt32(d+8,!0);if(s)throw u(a);return this.__wbg_ptr=c,ft.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(c,this.__wbg_ptr,n);var e=o().getFloat64(c+0,!0),_=o().getInt32(c+8,!0),i=o().getInt32(c+12,!0);if(i)throw u(_);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_f32_ptr(){return t.exrbench_staging_f32_ptr(this.__wbg_ptr)>>>0}staging_f32_samples(){return t.exrbench_staging_f32_samples(this.__wbg_ptr)>>>0}staging_half_len(){return t.exrbench_staging_half_len(this.__wbg_ptr)>>>0}staging_half_ptr(){return t.exrbench_staging_half_ptr(this.__wbg_ptr)>>>0}zip_stage_block(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(c,this.__wbg_ptr,n);var e=o().getFloat64(c+0,!0),_=o().getInt32(c+8,!0),i=o().getInt32(c+12,!0);if(i)throw u(_);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);var et=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_exrstreamencoder_free(n,0)}block_rows(){return t.exrstreamencoder_block_rows(this.__wbg_ptr)>>>0}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(a,this.__wbg_ptr);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(n,e,_,i,c,a,s,d,g,w){try{let I=t.__wbindgen_add_to_stack_pointer(-16),k=y(_,t.__wbindgen_export4,t.__wbindgen_export5),A=p,F=y(i,t.__wbindgen_export4,t.__wbindgen_export5),z=p,W=y(c,t.__wbindgen_export4,t.__wbindgen_export5),R=p,j=y(a,t.__wbindgen_export4,t.__wbindgen_export5),T=p,O=y(d,t.__wbindgen_export4,t.__wbindgen_export5),L=p;t.exrstreamencoder_new(I,n,e,k,A,F,z,W,R,j,T,s,O,L,g,w);var b=o().getInt32(I+0,!0),x=o().getInt32(I+4,!0),m=o().getInt32(I+8,!0);if(m)throw u(x);return this.__wbg_ptr=b,vt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_block(n){try{let s=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(s,this.__wbg_ptr,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}rows_remaining(){return t.exrstreamencoder_rows_remaining(this.__wbg_ptr)>>>0}staging_ptr(){return t.exrstreamencoder_staging_ptr(this.__wbg_ptr)>>>0}staging_samples(){return t.exrstreamencoder_staging_samples(this.__wbg_ptr)>>>0}};Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);var nt=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresbench_free(n,0)}constructor(n,e,_,i){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=y(_,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.proresbench_new(d,n,e,g,w,i);var c=o().getInt32(d+0,!0),a=o().getInt32(d+4,!0),s=o().getInt32(d+8,!0);if(s)throw u(a);return this.__wbg_ptr=c,xt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(c,this.__wbg_ptr,n);var e=o().getFloat64(c+0,!0),_=o().getInt32(c+8,!0),i=o().getInt32(c+12,!0);if(i)throw u(_);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_len(){return t.proresbench_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresbench_staging_ptr(this.__wbg_ptr)>>>0}};Symbol.dispose&&(nt.prototype[Symbol.dispose]=nt.prototype.free);var rt=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(n,0)}add_frame_rgba(n){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),a=p;t.proresmovencoder_add_frame_rgba(i,this.__wbg_ptr,c,a);var e=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);if(_)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(n,e,_,i){let c=t.proresmovencoder_new(n,e,_,i);return this.__wbg_ptr=c,yt.register(this,this.__wbg_ptr,this),this}set_alpha(n){t.proresmovencoder_set_alpha(this.__wbg_ptr,n)}set_bitrate_mbps(n){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,n)}set_qscale(n){t.proresmovencoder_set_qscale(this.__wbg_ptr,n)}};Symbol.dispose&&(rt.prototype[Symbol.dispose]=rt.prototype.free);var _t=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,It.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(n,0)}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(n,e,_,i){let c=t.proresmovwriter_new(n,e,_,i);return this.__wbg_ptr=c,It.register(this,this.__wbg_ptr,this),this}push_frame(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(a,this.__wbg_ptr);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(n){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),a=p;t.proresmovwriter_push_sample(i,this.__wbg_ptr,c,a);var e=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);if(_)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(n){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(i,this.__wbg_ptr,n);var e=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);if(_)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}reserve_large_mdat(n){t.proresmovwriter_reserve_large_mdat(this.__wbg_ptr,n)}set_alpha(n){t.proresmovwriter_set_alpha(this.__wbg_ptr,n)}set_bitrate_mbps(n){t.proresmovwriter_set_bitrate_mbps(this.__wbg_ptr,n)}set_par(n,e){t.proresmovwriter_set_par(this.__wbg_ptr,n,e)}set_profile(n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p;t.proresmovwriter_set_profile(this.__wbg_ptr,e,_)}set_qscale(n){t.proresmovwriter_set_qscale(this.__wbg_ptr,n)}set_start_timecode(n,e){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,n,e)}staging_len(){return t.proresmovwriter_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresmovwriter_staging_ptr(this.__wbg_ptr)>>>0}total_len(){return t.proresmovwriter_total_len(this.__wbg_ptr)}};Symbol.dispose&&(_t.prototype[Symbol.dispose]=_t.prototype.free);function Nt(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.arriraw12_clip_info(c,a,s);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,M(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Gt(r,n,e,_){var i=E(_)?0:y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let a=t.arriraw_mxf_gpu_frame(v(r),n,e,i,c);return u(a)}function Xt(r,n,e){let _=t.audio_aac_au(v(r),n,e);return u(_)}function Yt(r,n){let e=t.audio_aac_config(v(r),n);return u(e)}function Jt(r,n){let e=t.audio_info(v(r),n);return u(e)}function Kt(r){let n=ut(r,t.__wbindgen_export4),e=p;return t.bench_f32_boundary(n,e)}function Qt(r,n,e,_){let i=ut(r,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(i,c,n,e,_)}function Zt(r,n,e){let _=S(r,t.__wbindgen_export4),i=p;return t.dci_code_full_depth(_,i,n,e)}function $t(r,n,e){return t.dci_frame_cap(r,n,e)>>>0}function te(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p,w=y(n,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(s,d,g,w,b);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=gt(e,_).slice();return t.__wbindgen_export3(e,_*2,2),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=y(r,t.__wbindgen_export4,t.__wbindgen_export5),d=p;t.dci_gpu_colour_tables(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(){try{let _=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(_);var r=o().getInt32(_+0,!0),n=o().getInt32(_+4,!0),e=ot(r,n).slice();return t.__wbindgen_export3(r,n*4,4),e}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(r,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,r,n);var e=o().getInt32(c+0,!0),_=o().getInt32(c+4,!0),i=ot(e,_).slice();return t.__wbindgen_export3(e,_*4,4),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(r){return t.dci_mq_bench(r)>>>0}function oe(r,n,e,_,i,c,a,s,d,g,w){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=U(r,t.__wbindgen_export4),z=p,W=l(n,t.__wbindgen_export4),R=p,j=U(e,t.__wbindgen_export4),T=p,O=U(_,t.__wbindgen_export4),L=p,P=U(i,t.__wbindgen_export4),B=p,it=U(c,t.__wbindgen_export4),at=p,ct=U(a,t.__wbindgen_export4),st=p,Wt=U(s,t.__wbindgen_export4),jt=p;t.dci_pack_tier1(A,F,z,W,R,j,T,O,L,P,B,it,at,ct,st,Wt,jt,d,g,w);var b=o().getInt32(A+0,!0),x=o().getInt32(A+4,!0),m=o().getInt32(A+8,!0),I=o().getInt32(A+12,!0);if(I)throw u(m);var k=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(r,n){let e=t.dci_stage_rgba8(r,n);return u(e)}function ae(r,n,e){let _=S(r,t.__wbindgen_export4),i=p;return t.dci_transform_only(_,i,n,e)}function ce(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(s,d,g,w,b);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(r,n,e,_){let i=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_arriraw12_mxf(v(r),n,e,i,c);return u(a)}function de(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(d,g,w,b,x,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pe(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(s,d,g,w,b);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.decode_arriraw_luma(d,g,w,n,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(r,n,e,_){let i=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_arriraw_mxf(v(r),n,e,i,c);return u(a)}function we(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(r,n,e,_,i,c,a,s,d){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(r,t.__wbindgen_export4),z=p;var g=E(d)?0:J(d,t.__wbindgen_export4),w=p;t.decode_arriraw_preview_meta(A,F,z,n,e,_,i,c,a,s,g,w);var b=o().getInt32(A+0,!0),x=o().getInt32(A+4,!0),m=o().getInt32(A+8,!0),I=o().getInt32(A+12,!0);if(I)throw u(m);var k=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.decode_arriraw_rgba(d,g,w,n,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(r,n,e,_,i,c,a,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(r,t.__wbindgen_export4),F=p;var d=E(s)?0:J(s,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(k,A,F,n,e,_,i,c,a,d,g);var w=o().getInt32(k+0,!0),b=o().getInt32(k+4,!0),x=o().getInt32(k+8,!0),m=o().getInt32(k+12,!0);if(m)throw u(x);var I=f(w,b).slice();return t.__wbindgen_export3(w,b*1,1),I}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(r,n,e,_){let i=t.decode_audio_pcm(v(r),n,e,_);return u(i)}function ye(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.decode_braw_gen5log(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_braw_luma(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function me(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_braw_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_braw_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_cr3_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(r,n,e,_){let i=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_crm(v(r),n,e,i,c);return u(a)}function Fe(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_dng_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_dng_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_dpx_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_dpx_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_exr_linear(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_exr_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_exr_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_jpeg_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_png_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.decode_prores_band_rgba(d,g,w,n,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_luma(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(r,n,e,_){let i=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_prores_mxf(v(r),n,e,i,c);return u(a)}function Ee(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_prores_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_raw_acescct(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_raw_luma(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_raw_rec2020(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_raw_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_rgb16(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_thumb_dc32(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_r3d_luma(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_r3d_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(d,g,w,b,x,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_r3d_rgb16(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_r3d_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(s,d,g,w,b);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_tiff_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_tiff_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.decode_vc3_band_rgba(d,g,w,n,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_vc3_luma(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(r,n,e,_){let i=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_vc3_mxf(v(r),n,e,i,c);return u(a)}function _n(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_vc3_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_vc3_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.decode_xocn_index_luma(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_xocn_luma(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(r,n,e,_){let i=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_xocn_mxf(v(r),n,e,i,c);return u(a)}function dn(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_xocn_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_xocn_preview_rec709(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.decode_xocn_rgb16(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_xocn_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=S(r,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=S(r,t.__wbindgen_export4),m=p,I=y(e,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.encode_dci_j2c_rgb(b,x,m,n,I,k,_,i,c);var a=o().getInt32(b+0,!0),s=o().getInt32(b+4,!0),d=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw u(d);var w=f(a,s).slice();return t.__wbindgen_export3(a,s*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ln(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=y(n,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.encode_dci_j2c_rgba8(w,b,x,m,I,e,_,i);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fn(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(_,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(w,r,n,e,b,x,i);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vn(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(_,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(w,r,n,e,b,x,i);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xn(r,n,e,_,i,c,a,s,d,g,w,b,x,m,I){try{let R=t.__wbindgen_add_to_stack_pointer(-16),j=ut(r,t.__wbindgen_export4),T=p,O=y(i,t.__wbindgen_export4,t.__wbindgen_export5),L=p,P=y(c,t.__wbindgen_export4,t.__wbindgen_export5),B=p,it=y(a,t.__wbindgen_export4,t.__wbindgen_export5),at=p,ct=y(x,t.__wbindgen_export4,t.__wbindgen_export5),st=p;t.encode_exr(R,j,T,n,e,_,O,L,P,B,it,at,s,d,g,w,b,ct,st,m,I);var k=o().getInt32(R+0,!0),A=o().getInt32(R+4,!0),F=o().getInt32(R+8,!0),z=o().getInt32(R+12,!0);if(z)throw u(F);var W=f(k,A).slice();return t.__wbindgen_export3(k,A*1,1),W}finally{t.__wbindgen_add_to_stack_pointer(16)}}function yn(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(w,b,x,n,e,_,i);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function In(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function mn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=S(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kn(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=S(r,t.__wbindgen_export4),x=p,m=S(i,t.__wbindgen_export4),I=p;t.encode_prores_444_sample_cbr_rgb16_lut(w,b,x,n,e,_,m,I);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function An(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(w,b,x,n,e,_,i);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fn(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.encode_prores_rgba(d,g,w,n,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Mn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=S(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zn(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=S(r,t.__wbindgen_export4),x=p,m=S(i,t.__wbindgen_export4),I=p;t.encode_prores_sample_cbr_rgb16_lut(w,b,x,n,e,_,m,I);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(r,n,e,_){let i,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=y(r,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.exr_sequence_filename(x,m,I,n,e,_);var a=o().getInt32(x+0,!0),s=o().getInt32(x+4,!0),d=o().getInt32(x+8,!0),g=o().getInt32(x+12,!0),w=a,b=s;if(g)throw w=0,b=0,u(d);return i=w,c=b,M(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(i,c,1)}}function Tn(r,n,e,_,i,c,a,s){let d,g;try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(r,t.__wbindgen_export4),z=p,W=l(_,t.__wbindgen_export4),R=p,j=y(s,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.fit_sizing(A,F,z,n,e,W,R,i,c,a,j,T);var w=o().getInt32(A+0,!0),b=o().getInt32(A+4,!0),x=o().getInt32(A+8,!0),m=o().getInt32(A+12,!0),I=w,k=b;if(m)throw I=0,k=0,u(x);return d=I,g=k,M(I,k)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,g,1)}}function Sn(r){let n=t.initThreadPool(r);return u(n)}function Un(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_cr3(c,a,s);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,M(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function On(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_dng(c,a,s);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,M(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function qn(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_dpx(c,a,s);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,M(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Ln(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_exr(c,a,s);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,M(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function En(r,n,e){let _=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=t.inspect_isobmff(v(r),n,_,i);return u(c)}function Dn(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_tiff(c,a,s);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,M(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Pn(r,n){let e=t.inspect_wav(v(r),n);return u(e)}function Bn(r,n){let e=t.is_arriraw12_mxf(v(r),n);return u(e)}function Cn(r,n){let e=t.is_arriraw_mxf(v(r),n);return u(e)}function Vn(r,n){let e=t.is_crm(v(r),n);return u(e)}function Hn(r,n){let e=t.is_prores_mxf(v(r),n);return u(e)}function Nn(r,n){let e=t.is_vc3_mxf(v(r),n);return u(e)}function Gn(r,n){let e=t.is_xavc_mxf(v(r),n);return u(e)}function Xn(r,n){let e=t.is_xocn_mxf(v(r),n);return u(e)}function Yn(r,n,e){let _=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=t.list_isobmff_segments(v(r),n,_,i);return u(c)}function Jn(r,n){let e=t.list_mxf_segments(v(r),n);return u(e)}function Kn(r,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,i=t.list_r3d_frames(v(r),e,_);return u(i)}function Qn(r,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,i=t.list_r3d_segments(v(r),e,_);return u(i)}function Zn(r,n){let e=t.list_wav_segments(v(r),n);return u(e)}function $n(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,I=U(n,t.__wbindgen_export4),k=p;t.mux_prores_4444_alpha_samples(b,x,m,I,k,e,_,i,c);var a=o().getInt32(b+0,!0),s=o().getInt32(b+4,!0),d=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw u(d);var w=f(a,s).slice();return t.__wbindgen_export3(a,s*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tr(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,I=U(n,t.__wbindgen_export4),k=p;t.mux_prores_samples(b,x,m,I,k,e,_,i,c);var a=o().getInt32(b+0,!0),s=o().getInt32(b+4,!0),d=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw u(d);var w=f(a,s).slice();return t.__wbindgen_export3(a,s*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function er(r,n,e,_,i,c,a,s,d,g,w,b){try{let F=t.__wbindgen_add_to_stack_pointer(-16),z=l(r,t.__wbindgen_export4),W=p,R=U(n,t.__wbindgen_export4),j=p,T=y(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p;t.mux_prores_samples_full(F,z,W,R,j,e,_,i,c,T,O,s,d,g,w,b);var x=o().getInt32(F+0,!0),m=o().getInt32(F+4,!0),I=o().getInt32(F+8,!0),k=o().getInt32(F+12,!0);if(k)throw u(I);var A=f(x,m).slice();return t.__wbindgen_export3(x,m*1,1),A}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nr(r,n,e,_){let i=t.mxf_au_run(v(r),n,e,_);return u(i)}function rr(r,n){let e=t.mxf_frame_index(v(r),n);return u(e)}function _r(r,n){let e=t.mxf_gop_map(v(r),n);return u(e)}function or(r,n){let e=t.mxf_h264_kind(v(r),n);return u(e)}function ir(r,n){let e,_;try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=y(n,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.plan_isobmff_trim(w,b,x,m,I);var i=o().getInt32(w+0,!0),c=o().getInt32(w+4,!0),a=o().getInt32(w+8,!0),s=o().getInt32(w+12,!0),d=i,g=c;if(s)throw d=0,g=0,u(a);return e=d,_=g,M(d,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,_,1)}}function ar(r,n,e,_,i){let c=y(i,t.__wbindgen_export4,t.__wbindgen_export5),a=p,s=t.plan_isobmff_trim_reader(v(r),n,e,_,c,a);return u(s)}function cr(r){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=y(r,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,w,b);var _=o().getInt32(g+0,!0),i=o().getInt32(g+4,!0),c=o().getInt32(g+8,!0),a=o().getInt32(g+12,!0),s=_,d=i;if(a)throw s=0,d=0,u(c);return n=s,e=d,M(s,d)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function sr(r,n,e,_){let i=t.plan_mxf_trim(v(r),n,e,_);return u(i)}function dr(r,n,e,_,i,c,a,s){let d,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=l(e,t.__wbindgen_export4),z=p,W=l(_,t.__wbindgen_export4),R=p,j=J(i,t.__wbindgen_export4),T=p,O=J(c,t.__wbindgen_export4),L=p,P=J(a,t.__wbindgen_export4),B=p;t.plan_r3d_compact(x,m,I,k,A,F,z,W,R,j,T,O,L,P,B,s);var w=o().getInt32(x+0,!0),b=o().getInt32(x+4,!0);return d=w,g=b,M(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,g,1)}}function pr(r,n,e,_){let i,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),I=p;t.plan_wav_trim(x,m,I,n,e,_);var a=o().getInt32(x+0,!0),s=o().getInt32(x+4,!0),d=o().getInt32(x+8,!0),g=o().getInt32(x+12,!0),w=a,b=s;if(g)throw w=0,b=0,u(d);return i=w,c=b,M(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(i,c,1)}}function gr(r,n,e,_,i){let c=t.plan_wav_trim_reader(v(r),n,e,_,i);return u(c)}function ur(r,n,e,_){let i=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=y(_,t.__wbindgen_export4,t.__wbindgen_export5),s=p,d=t.prepare_isobmff(v(r),n,i,c,a,s);return u(d)}function wr(r,n,e){let _=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=t.prepare_mxf(v(r),n,_,i);return u(c)}function br(r,n,e){let _=y(n,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,s=t.prepare_r3d(v(r),_,i,c,a);return u(s)}function lr(r,n,e,_){let i=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.prepare_wav(v(r),n,i,c,_);return u(a)}function fr(r){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.probe_mov(g,w,b);var _=o().getInt32(g+0,!0),i=o().getInt32(g+4,!0),c=o().getInt32(g+8,!0),a=o().getInt32(g+12,!0),s=_,d=i;if(a)throw s=0,d=0,u(c);return n=s,e=d,M(s,d)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function vr(r,n){let e=t.probe_mxf(v(r),n);return u(e)}function xr(r,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,i=t.probe_r3d(v(r),e,_);return u(i)}function yr(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.prores_band_info(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=ot(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ir(){t.prores_reset_rate_control()}function mr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.r3d_gpu_develop_params(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hr(r){let n=l(r,t.__wbindgen_export4),e=p;return t.r3d_is_helium(n,e)!==0}function kr(r){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,w,b);var _=o().getInt32(g+0,!0),i=o().getInt32(g+4,!0),c=o().getInt32(g+8,!0),a=o().getInt32(g+12,!0),s=_,d=i;if(a)throw s=0,d=0,u(c);return n=s,e=d,M(s,d)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Ar(r,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.read_arriraw_unit_correction(c,a,s,n);var e=o().getInt32(c+0,!0),_=o().getInt32(c+4,!0),i=Lt(e,_).slice();return t.__wbindgen_export3(e,_*8,8),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fr(r,n,e,_,i,c,a){let s,d;try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(r,t.__wbindgen_export4),F=p,z=l(_,t.__wbindgen_export4),W=p,R=y(a,t.__wbindgen_export4,t.__wbindgen_export5),j=p;t.recover_reframe(k,A,F,n,e,z,W,i,c,R,j);var g=o().getInt32(k+0,!0),w=o().getInt32(k+4,!0),b=o().getInt32(k+8,!0),x=o().getInt32(k+12,!0),m=g,I=w;if(x)throw m=0,I=0,u(b);return s=m,d=I,M(m,I)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,d,1)}}function Mr(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=S(r,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba16(b,x,m,n,e,_,i,I,k);var a=o().getInt32(b+0,!0),s=o().getInt32(b+4,!0),d=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw u(d);var w=gt(a,s).slice();return t.__wbindgen_export3(a,s*2,2),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rr(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba8(b,x,m,n,e,_,i,I,k);var a=o().getInt32(b+0,!0),s=o().getInt32(b+4,!0),d=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw u(d);var w=f(a,s).slice();return t.__wbindgen_export3(a,s*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zr(){t.reset_dci_rate_state()}function Wr(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.resize_luma_area(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jr(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=y(i,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.rgba8_to_xyz12(w,b,x,n,e,_,m,I);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=gt(c,a).slice();return t.__wbindgen_export3(c,a*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tr(r,n,e,_){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),s=p,d=y(_,t.__wbindgen_export4,t.__wbindgen_export5),g=p,w=t.trim_r3d(v(r),i,c,a,s,d,g);return u(w)}function Sr(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.vc3_band_info(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=ot(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ur(r,n,e){let _=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=t.video_frame_index_isobmff_reader(v(r),n,_,i);return u(c)}var Z=class r{static __wrap(n){let e=Object.create(r.prototype);return e.__wbg_ptr=n,mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_wbg_rayon_poolbuilder_free(n,0)}build(){t.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}numThreads(){return t.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}receiver(){return t.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);function Or(r){t.wbg_rayon_start_worker(r)}function qr(r,n,e){let _=t.xavc_au(v(r),n,e);return u(_)}function Lr(r,n){let e=t.xavc_frame_count(v(r),n);return u(e)}function Er(r,n){let e=t.xocn_frame_count(v(r),n);return u(e)}function Dr(r){let n=l(r,t.__wbindgen_export4),e=p;return t.xocn_index_prefix_len(n,e)>>>0}function Pr(r){let n=l(r,t.__wbindgen_export4),e=p;return t.xocn_preview_prefix_len(n,e)>>>0}function kt(r){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof h(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return h(e)===void 0},__wbg___wbindgen_memory_9751d9a3017e7c25:function(){let e=t.memory;return v(e)},__wbg___wbindgen_module_f86f28f0f85995dd:function(){return v(Rt)},__wbg___wbindgen_rethrow_858623e73c3311dc:function(e){throw u(e)},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,_){throw new Error(M(e,_))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){h(e)._wbg_cb_unref()},__wbg_async_4ec36f08efecafdc:function(e){return h(e).async},__wbg_buffer_49b4f592d8036785:function(e){let _=h(e).buffer;return v(_)},__wbg_call_0e855b388e315e17:function(){return $(function(e,_,i,c){let a=h(e).call(h(_),h(i),h(c));return v(a)},arguments)},__wbg_call_5575218572ead796:function(){return $(function(e,_,i){let c=h(e).call(h(_),h(i));return v(c)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return $(function(e,_,i,c,a){let s=h(e).call(h(_),h(i),h(c),h(a));return v(s)},arguments)},__wbg_data_23c14f7d1102d077:function(e){let _=h(e).data;return v(_)},__wbg_instanceof_Window_0d356b88a2f77c42:function(e){let _;try{_=h(e)instanceof Window}catch{_=!1}return _},__wbg_length_589238bdcf171f0e:function(e){return h(e).length},__wbg_new_476e05fb84d8e4f3:function(e){let _=new Int32Array(h(e));return v(_)},__wbg_new_81880fb5002cb255:function(e){let _=new Uint8Array(h(e));return v(_)},__wbg_new_f85beb941dc6d8aa:function(e,_){try{var i={a:e,b:_},c=(s,d)=>{let g=i.a;i.a=0;try{return lt(g,i.b,s,d)}finally{i.a=g}};let a=new Promise(c);return v(a)}finally{i.a=0}},__wbg_new_typed_00a409eb4ec4f2d9:function(e,_){try{var i={a:e,b:_},c=(s,d)=>{let g=i.a;i.a=0;try{return lt(g,i.b,s,d)}finally{i.a=g}};let a=new Promise(c);return v(a)}finally{i.a=0}},__wbg_new_worker_e68fc8188cc230b5:function(e,_){let i=new Worker(M(e,_));return v(i)},__wbg_of_8737c43050b5546e:function(e,_,i){let c=Array.of(h(e),h(_),h(i));return v(c)},__wbg_postMessage_0162be6e48cf631e:function(){return $(function(e,_){h(e).postMessage(h(_))},arguments)},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,_,i){Uint8Array.prototype.set.call(f(e,_),h(i))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let _=h(e).queueMicrotask;return v(_)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(h(e))},__wbg_resolve_d82363d90af6928a:function(e){let _=Promise.resolve(h(e));return v(_)},__wbg_set_onmessage_d05709471e546dca:function(e,_){h(e).onmessage=h(_)},__wbg_startWorkers_8b582d57e92bd2d4:function(e,_,i){let c=bt(u(e),u(_),Z.__wrap(i));return v(c)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return E(e)?0:v(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return E(e)?0:v(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return E(e)?0:v(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return E(e)?0:v(e)},__wbg_then_05edfc8a4fea5106:function(e,_,i){let c=h(e).then(h(_),h(i));return v(c)},__wbg_then_591b6b3a75ee817a:function(e,_){let i=h(e).then(h(_));return v(i)},__wbg_then_c768c7c3e60c20ef:function(e,_){let i=h(e).then(h(_));return v(i)},__wbg_value_2f34afb824ffcd9a:function(e){let _=h(e).value;return v(_)},__wbg_waitAsync_134f0b4abc50f1f2:function(e,_,i){let c=Atomics.waitAsync(h(e),_>>>0,i);return v(c)},__wbg_waitAsync_485a8d512901fd53:function(){let e=Atomics.waitAsync;return v(e)},__wbindgen_cast_0000000000000001:function(e,_){let i=dt(e,_,St);return v(i)},__wbindgen_cast_0000000000000002:function(e,_){let i=dt(e,_,Ot);return v(i)},__wbindgen_cast_0000000000000003:function(e,_){let i=dt(e,_,Ut);return v(i)},__wbindgen_cast_0000000000000004:function(e){return v(e)},__wbindgen_cast_0000000000000005:function(e,_){let i=f(e,_);return v(i)},__wbindgen_cast_0000000000000006:function(e,_){let i=M(e,_);return v(i)},__wbindgen_cast_0000000000000007:function(e,_){var i=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),v(i)},__wbindgen_link_ec60efd85dcca315:function(e){let _=`onmessage = function (ev) {
|
|
3
|
+
import"./chunk-PSANHDZM.js";function wt(r,n){return new Promise(e=>{r.addEventListener("message",function _({data:i}){i?.type===n&&(r.removeEventListener("message",_),e(i))})})}wt(self,"wasm_bindgen_worker_init").then(async({init:r,receiver:n})=>{let e=await import("./media_core-R5PPN3AY.js");await e.default(r),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(n)});var Tt;async function bt(r,n,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");let _={type:"wasm_bindgen_worker_init",init:{module_or_path:r,memory:n},receiver:e.receiver()};Tt=await Promise.all(Array.from({length:e.numThreads()},async()=>{let i=new Worker(new URL("./workerHelpers.js",import.meta.url),{type:"module"});return i.postMessage(_),await wt(i,"wasm_bindgen_worker_ready"),i})),e.build()}var tt=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_exrbench_free(n,0)}block_rows(){return t.exrbench_block_rows(this.__wbg_ptr)>>>0}f32_to_half_block(){return t.exrbench_f32_to_half_block(this.__wbg_ptr)}n_blocks(){return t.exrbench_n_blocks(this.__wbg_ptr)>>>0}constructor(n,e,_,i){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=y(i,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.exrbench_new(d,n,e,_,g,w);var c=o().getInt32(d+0,!0),a=o().getInt32(d+4,!0),s=o().getInt32(d+8,!0);if(s)throw u(a);return this.__wbg_ptr=c,ft.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(c,this.__wbg_ptr,n);var e=o().getFloat64(c+0,!0),_=o().getInt32(c+8,!0),i=o().getInt32(c+12,!0);if(i)throw u(_);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_f32_ptr(){return t.exrbench_staging_f32_ptr(this.__wbg_ptr)>>>0}staging_f32_samples(){return t.exrbench_staging_f32_samples(this.__wbg_ptr)>>>0}staging_half_len(){return t.exrbench_staging_half_len(this.__wbg_ptr)>>>0}staging_half_ptr(){return t.exrbench_staging_half_ptr(this.__wbg_ptr)>>>0}zip_stage_block(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(c,this.__wbg_ptr,n);var e=o().getFloat64(c+0,!0),_=o().getInt32(c+8,!0),i=o().getInt32(c+12,!0);if(i)throw u(_);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);var et=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_exrstreamencoder_free(n,0)}block_rows(){return t.exrstreamencoder_block_rows(this.__wbg_ptr)>>>0}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(a,this.__wbg_ptr);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(n,e,_,i,c,a,s,d,g,w){try{let I=t.__wbindgen_add_to_stack_pointer(-16),k=y(_,t.__wbindgen_export4,t.__wbindgen_export5),A=p,F=y(i,t.__wbindgen_export4,t.__wbindgen_export5),z=p,W=y(c,t.__wbindgen_export4,t.__wbindgen_export5),R=p,j=y(a,t.__wbindgen_export4,t.__wbindgen_export5),T=p,O=y(d,t.__wbindgen_export4,t.__wbindgen_export5),L=p;t.exrstreamencoder_new(I,n,e,k,A,F,z,W,R,j,T,s,O,L,g,w);var b=o().getInt32(I+0,!0),x=o().getInt32(I+4,!0),m=o().getInt32(I+8,!0);if(m)throw u(x);return this.__wbg_ptr=b,vt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_block(n){try{let s=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(s,this.__wbg_ptr,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}rows_remaining(){return t.exrstreamencoder_rows_remaining(this.__wbg_ptr)>>>0}staging_ptr(){return t.exrstreamencoder_staging_ptr(this.__wbg_ptr)>>>0}staging_samples(){return t.exrstreamencoder_staging_samples(this.__wbg_ptr)>>>0}};Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);var nt=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresbench_free(n,0)}constructor(n,e,_,i){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=y(_,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.proresbench_new(d,n,e,g,w,i);var c=o().getInt32(d+0,!0),a=o().getInt32(d+4,!0),s=o().getInt32(d+8,!0);if(s)throw u(a);return this.__wbg_ptr=c,xt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(c,this.__wbg_ptr,n);var e=o().getFloat64(c+0,!0),_=o().getInt32(c+8,!0),i=o().getInt32(c+12,!0);if(i)throw u(_);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_len(){return t.proresbench_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresbench_staging_ptr(this.__wbg_ptr)>>>0}};Symbol.dispose&&(nt.prototype[Symbol.dispose]=nt.prototype.free);var rt=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(n,0)}add_frame_rgba(n){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),a=p;t.proresmovencoder_add_frame_rgba(i,this.__wbg_ptr,c,a);var e=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);if(_)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(n,e,_,i){let c=t.proresmovencoder_new(n,e,_,i);return this.__wbg_ptr=c,yt.register(this,this.__wbg_ptr,this),this}set_alpha(n){t.proresmovencoder_set_alpha(this.__wbg_ptr,n)}set_bitrate_mbps(n){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,n)}set_qscale(n){t.proresmovencoder_set_qscale(this.__wbg_ptr,n)}};Symbol.dispose&&(rt.prototype[Symbol.dispose]=rt.prototype.free);var _t=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,It.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(n,0)}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(n,e,_,i){let c=t.proresmovwriter_new(n,e,_,i);return this.__wbg_ptr=c,It.register(this,this.__wbg_ptr,this),this}push_frame(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(a,this.__wbg_ptr);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(n){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),a=p;t.proresmovwriter_push_sample(i,this.__wbg_ptr,c,a);var e=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);if(_)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(n){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(i,this.__wbg_ptr,n);var e=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);if(_)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}reserve_large_mdat(n){t.proresmovwriter_reserve_large_mdat(this.__wbg_ptr,n)}set_alpha(n){t.proresmovwriter_set_alpha(this.__wbg_ptr,n)}set_bitrate_mbps(n){t.proresmovwriter_set_bitrate_mbps(this.__wbg_ptr,n)}set_par(n,e){t.proresmovwriter_set_par(this.__wbg_ptr,n,e)}set_profile(n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p;t.proresmovwriter_set_profile(this.__wbg_ptr,e,_)}set_qscale(n){t.proresmovwriter_set_qscale(this.__wbg_ptr,n)}set_start_timecode(n,e){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,n,e)}staging_len(){return t.proresmovwriter_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresmovwriter_staging_ptr(this.__wbg_ptr)>>>0}total_len(){return t.proresmovwriter_total_len(this.__wbg_ptr)}};Symbol.dispose&&(_t.prototype[Symbol.dispose]=_t.prototype.free);function Nt(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.arriraw12_clip_info(c,a,s);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,M(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Gt(r,n,e,_){var i=E(_)?0:y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let a=t.arriraw_mxf_gpu_frame(v(r),n,e,i,c);return u(a)}function Xt(r,n,e){let _=t.audio_aac_au(v(r),n,e);return u(_)}function Yt(r,n){let e=t.audio_aac_config(v(r),n);return u(e)}function Jt(r,n){let e=t.audio_info(v(r),n);return u(e)}function Kt(r){let n=ut(r,t.__wbindgen_export4),e=p;return t.bench_f32_boundary(n,e)}function Qt(r,n,e,_){let i=ut(r,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(i,c,n,e,_)}function Zt(r,n,e){let _=S(r,t.__wbindgen_export4),i=p;return t.dci_code_full_depth(_,i,n,e)}function $t(r,n,e){return t.dci_frame_cap(r,n,e)>>>0}function te(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p,w=y(n,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(s,d,g,w,b);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=gt(e,_).slice();return t.__wbindgen_export3(e,_*2,2),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=y(r,t.__wbindgen_export4,t.__wbindgen_export5),d=p;t.dci_gpu_colour_tables(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(){try{let _=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(_);var r=o().getInt32(_+0,!0),n=o().getInt32(_+4,!0),e=ot(r,n).slice();return t.__wbindgen_export3(r,n*4,4),e}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(r,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,r,n);var e=o().getInt32(c+0,!0),_=o().getInt32(c+4,!0),i=ot(e,_).slice();return t.__wbindgen_export3(e,_*4,4),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(r){return t.dci_mq_bench(r)>>>0}function oe(r,n,e,_,i,c,a,s,d,g,w){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=U(r,t.__wbindgen_export4),z=p,W=l(n,t.__wbindgen_export4),R=p,j=U(e,t.__wbindgen_export4),T=p,O=U(_,t.__wbindgen_export4),L=p,P=U(i,t.__wbindgen_export4),B=p,it=U(c,t.__wbindgen_export4),at=p,ct=U(a,t.__wbindgen_export4),st=p,Wt=U(s,t.__wbindgen_export4),jt=p;t.dci_pack_tier1(A,F,z,W,R,j,T,O,L,P,B,it,at,ct,st,Wt,jt,d,g,w);var b=o().getInt32(A+0,!0),x=o().getInt32(A+4,!0),m=o().getInt32(A+8,!0),I=o().getInt32(A+12,!0);if(I)throw u(m);var k=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(r,n){let e=t.dci_stage_rgba8(r,n);return u(e)}function ae(r,n,e){let _=S(r,t.__wbindgen_export4),i=p;return t.dci_transform_only(_,i,n,e)}function ce(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(s,d,g,w,b);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(r,n,e,_){let i=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_arriraw12_mxf(v(r),n,e,i,c);return u(a)}function de(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(d,g,w,b,x,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pe(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(s,d,g,w,b);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.decode_arriraw_luma(d,g,w,n,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(r,n,e,_){let i=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_arriraw_mxf(v(r),n,e,i,c);return u(a)}function we(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(r,n,e,_,i,c,a,s,d){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(r,t.__wbindgen_export4),z=p;var g=E(d)?0:J(d,t.__wbindgen_export4),w=p;t.decode_arriraw_preview_meta(A,F,z,n,e,_,i,c,a,s,g,w);var b=o().getInt32(A+0,!0),x=o().getInt32(A+4,!0),m=o().getInt32(A+8,!0),I=o().getInt32(A+12,!0);if(I)throw u(m);var k=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.decode_arriraw_rgba(d,g,w,n,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(r,n,e,_,i,c,a,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(r,t.__wbindgen_export4),F=p;var d=E(s)?0:J(s,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(k,A,F,n,e,_,i,c,a,d,g);var w=o().getInt32(k+0,!0),b=o().getInt32(k+4,!0),x=o().getInt32(k+8,!0),m=o().getInt32(k+12,!0);if(m)throw u(x);var I=f(w,b).slice();return t.__wbindgen_export3(w,b*1,1),I}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(r,n,e,_){let i=t.decode_audio_pcm(v(r),n,e,_);return u(i)}function ye(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.decode_braw_gen5log(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_braw_luma(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function me(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_braw_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_braw_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_cr3_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(r,n,e,_){let i=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_crm(v(r),n,e,i,c);return u(a)}function Fe(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_dng_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_dng_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_dpx_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_dpx_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_exr_linear(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_exr_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_exr_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_jpeg_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_png_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.decode_prores_band_rgba(d,g,w,n,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_luma(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(r,n,e,_){let i=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_prores_mxf(v(r),n,e,i,c);return u(a)}function Ee(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_prores_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_raw_acescct(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_raw_luma(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_raw_rec2020(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_raw_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_rgb16(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_prores_thumb_dc32(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_r3d_luma(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_r3d_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(d,g,w,b,x,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_r3d_rgb16(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_r3d_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(s,d,g,w,b);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_tiff_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_tiff_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.decode_vc3_band_rgba(d,g,w,n,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_vc3_luma(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(r,n,e,_){let i=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_vc3_mxf(v(r),n,e,i,c);return u(a)}function _n(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_vc3_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_vc3_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.decode_xocn_index_luma(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_xocn_luma(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(r,n,e,_){let i=y(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_xocn_mxf(v(r),n,e,i,c);return u(a)}function dn(r,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),g=p;t.decode_xocn_preview(s,d,g,n);var e=o().getInt32(s+0,!0),_=o().getInt32(s+4,!0),i=o().getInt32(s+8,!0),c=o().getInt32(s+12,!0);if(c)throw u(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_xocn_preview_rec709(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.decode_xocn_rgb16(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.decode_xocn_rgba(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=S(r,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=S(r,t.__wbindgen_export4),m=p,I=y(e,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.encode_dci_j2c_rgb(b,x,m,n,I,k,_,i,c);var a=o().getInt32(b+0,!0),s=o().getInt32(b+4,!0),d=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw u(d);var w=f(a,s).slice();return t.__wbindgen_export3(a,s*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ln(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=y(n,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.encode_dci_j2c_rgba8(w,b,x,m,I,e,_,i);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fn(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(_,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(w,r,n,e,b,x,i);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vn(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(_,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(w,r,n,e,b,x,i);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xn(r,n,e,_,i,c,a,s,d,g,w,b,x,m,I){try{let R=t.__wbindgen_add_to_stack_pointer(-16),j=ut(r,t.__wbindgen_export4),T=p,O=y(i,t.__wbindgen_export4,t.__wbindgen_export5),L=p,P=y(c,t.__wbindgen_export4,t.__wbindgen_export5),B=p,it=y(a,t.__wbindgen_export4,t.__wbindgen_export5),at=p,ct=y(x,t.__wbindgen_export4,t.__wbindgen_export5),st=p;t.encode_exr(R,j,T,n,e,_,O,L,P,B,it,at,s,d,g,w,b,ct,st,m,I);var k=o().getInt32(R+0,!0),A=o().getInt32(R+4,!0),F=o().getInt32(R+8,!0),z=o().getInt32(R+12,!0);if(z)throw u(F);var W=f(k,A).slice();return t.__wbindgen_export3(k,A*1,1),W}finally{t.__wbindgen_add_to_stack_pointer(16)}}function yn(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(w,b,x,n,e,_,i);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function In(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function mn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=S(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kn(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=S(r,t.__wbindgen_export4),x=p,m=S(i,t.__wbindgen_export4),I=p;t.encode_prores_444_sample_cbr_rgb16_lut(w,b,x,n,e,_,m,I);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function An(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(w,b,x,n,e,_,i);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fn(r,n,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),w=p;t.encode_prores_rgba(d,g,w,n,e);var _=o().getInt32(d+0,!0),i=o().getInt32(d+4,!0),c=o().getInt32(d+8,!0),a=o().getInt32(d+12,!0);if(a)throw u(c);var s=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Mn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=S(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zn(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=S(r,t.__wbindgen_export4),x=p,m=S(i,t.__wbindgen_export4),I=p;t.encode_prores_sample_cbr_rgb16_lut(w,b,x,n,e,_,m,I);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(r,n,e,_){let i,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=y(r,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.exr_sequence_filename(x,m,I,n,e,_);var a=o().getInt32(x+0,!0),s=o().getInt32(x+4,!0),d=o().getInt32(x+8,!0),g=o().getInt32(x+12,!0),w=a,b=s;if(g)throw w=0,b=0,u(d);return i=w,c=b,M(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(i,c,1)}}function Tn(r,n,e,_,i,c,a,s){let d,g;try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(r,t.__wbindgen_export4),z=p,W=l(_,t.__wbindgen_export4),R=p,j=y(s,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.fit_sizing(A,F,z,n,e,W,R,i,c,a,j,T);var w=o().getInt32(A+0,!0),b=o().getInt32(A+4,!0),x=o().getInt32(A+8,!0),m=o().getInt32(A+12,!0),I=w,k=b;if(m)throw I=0,k=0,u(x);return d=I,g=k,M(I,k)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,g,1)}}function Sn(r){let n=t.initThreadPool(r);return u(n)}function Un(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_cr3(c,a,s);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,M(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function On(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_dng(c,a,s);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,M(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function qn(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_dpx(c,a,s);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,M(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Ln(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_exr(c,a,s);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,M(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function En(r,n,e){let _=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=t.inspect_isobmff(v(r),n,_,i);return u(c)}function Dn(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.inspect_tiff(c,a,s);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,M(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Pn(r,n){let e=t.inspect_wav(v(r),n);return u(e)}function Bn(r,n){let e=t.is_arriraw12_mxf(v(r),n);return u(e)}function Cn(r,n){let e=t.is_arriraw_mxf(v(r),n);return u(e)}function Vn(r,n){let e=t.is_crm(v(r),n);return u(e)}function Hn(r,n){let e=t.is_prores_mxf(v(r),n);return u(e)}function Nn(r,n){let e=t.is_vc3_mxf(v(r),n);return u(e)}function Gn(r,n){let e=t.is_xavc_mxf(v(r),n);return u(e)}function Xn(r,n){let e=t.is_xocn_mxf(v(r),n);return u(e)}function Yn(r,n,e){let _=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=t.list_isobmff_segments(v(r),n,_,i);return u(c)}function Jn(r,n){let e=t.list_mxf_segments(v(r),n);return u(e)}function Kn(r,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,i=t.list_r3d_frames(v(r),e,_);return u(i)}function Qn(r,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,i=t.list_r3d_segments(v(r),e,_);return u(i)}function Zn(r,n){let e=t.list_wav_segments(v(r),n);return u(e)}function $n(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,I=U(n,t.__wbindgen_export4),k=p;t.mux_prores_4444_alpha_samples(b,x,m,I,k,e,_,i,c);var a=o().getInt32(b+0,!0),s=o().getInt32(b+4,!0),d=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw u(d);var w=f(a,s).slice();return t.__wbindgen_export3(a,s*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tr(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,I=U(n,t.__wbindgen_export4),k=p;t.mux_prores_samples(b,x,m,I,k,e,_,i,c);var a=o().getInt32(b+0,!0),s=o().getInt32(b+4,!0),d=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw u(d);var w=f(a,s).slice();return t.__wbindgen_export3(a,s*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function er(r,n,e,_,i,c,a,s,d,g,w,b){try{let F=t.__wbindgen_add_to_stack_pointer(-16),z=l(r,t.__wbindgen_export4),W=p,R=U(n,t.__wbindgen_export4),j=p,T=y(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p;t.mux_prores_samples_full(F,z,W,R,j,e,_,i,c,T,O,s,d,g,w,b);var x=o().getInt32(F+0,!0),m=o().getInt32(F+4,!0),I=o().getInt32(F+8,!0),k=o().getInt32(F+12,!0);if(k)throw u(I);var A=f(x,m).slice();return t.__wbindgen_export3(x,m*1,1),A}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nr(r,n,e,_){let i=t.mxf_au_run(v(r),n,e,_);return u(i)}function rr(r,n){let e=t.mxf_frame_index(v(r),n);return u(e)}function _r(r,n){let e=t.mxf_gop_map(v(r),n);return u(e)}function or(r,n){let e=t.mxf_h264_kind(v(r),n);return u(e)}function ir(r,n){let e,_;try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=y(n,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.plan_isobmff_trim(w,b,x,m,I);var i=o().getInt32(w+0,!0),c=o().getInt32(w+4,!0),a=o().getInt32(w+8,!0),s=o().getInt32(w+12,!0),d=i,g=c;if(s)throw d=0,g=0,u(a);return e=d,_=g,M(d,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,_,1)}}function ar(r,n,e,_,i){let c=y(i,t.__wbindgen_export4,t.__wbindgen_export5),a=p,s=t.plan_isobmff_trim_reader(v(r),n,e,_,c,a);return u(s)}function cr(r){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=y(r,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,w,b);var _=o().getInt32(g+0,!0),i=o().getInt32(g+4,!0),c=o().getInt32(g+8,!0),a=o().getInt32(g+12,!0),s=_,d=i;if(a)throw s=0,d=0,u(c);return n=s,e=d,M(s,d)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function sr(r,n,e,_){let i=t.plan_mxf_trim(v(r),n,e,_);return u(i)}function dr(r,n,e,_,i,c,a,s){let d,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=l(e,t.__wbindgen_export4),z=p,W=l(_,t.__wbindgen_export4),R=p,j=J(i,t.__wbindgen_export4),T=p,O=J(c,t.__wbindgen_export4),L=p,P=J(a,t.__wbindgen_export4),B=p;t.plan_r3d_compact(x,m,I,k,A,F,z,W,R,j,T,O,L,P,B,s);var w=o().getInt32(x+0,!0),b=o().getInt32(x+4,!0);return d=w,g=b,M(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,g,1)}}function pr(r,n,e,_){let i,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),I=p;t.plan_wav_trim(x,m,I,n,e,_);var a=o().getInt32(x+0,!0),s=o().getInt32(x+4,!0),d=o().getInt32(x+8,!0),g=o().getInt32(x+12,!0),w=a,b=s;if(g)throw w=0,b=0,u(d);return i=w,c=b,M(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(i,c,1)}}function gr(r,n,e,_,i){let c=t.plan_wav_trim_reader(v(r),n,e,_,i);return u(c)}function ur(r,n,e,_){let i=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=y(_,t.__wbindgen_export4,t.__wbindgen_export5),s=p,d=t.prepare_isobmff(v(r),n,i,c,a,s);return u(d)}function wr(r,n,e){let _=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=t.prepare_mxf(v(r),n,_,i);return u(c)}function br(r,n,e){let _=y(n,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,s=t.prepare_r3d(v(r),_,i,c,a);return u(s)}function lr(r,n,e,_){let i=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.prepare_wav(v(r),n,i,c,_);return u(a)}function fr(r){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.probe_mov(g,w,b);var _=o().getInt32(g+0,!0),i=o().getInt32(g+4,!0),c=o().getInt32(g+8,!0),a=o().getInt32(g+12,!0),s=_,d=i;if(a)throw s=0,d=0,u(c);return n=s,e=d,M(s,d)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function vr(r,n){let e=t.probe_mxf(v(r),n);return u(e)}function xr(r,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,i=t.probe_r3d(v(r),e,_);return u(i)}function yr(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.prores_band_info(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=ot(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ir(){t.prores_reset_rate_control()}function mr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.r3d_gpu_develop_params(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hr(r){let n=l(r,t.__wbindgen_export4),e=p;return t.r3d_is_helium(n,e)!==0}function kr(r){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,w,b);var _=o().getInt32(g+0,!0),i=o().getInt32(g+4,!0),c=o().getInt32(g+8,!0),a=o().getInt32(g+12,!0),s=_,d=i;if(a)throw s=0,d=0,u(c);return n=s,e=d,M(s,d)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Ar(r,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),s=p;t.read_arriraw_unit_correction(c,a,s,n);var e=o().getInt32(c+0,!0),_=o().getInt32(c+4,!0),i=Lt(e,_).slice();return t.__wbindgen_export3(e,_*8,8),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fr(r,n,e,_,i,c,a){let s,d;try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(r,t.__wbindgen_export4),F=p,z=l(_,t.__wbindgen_export4),W=p,R=y(a,t.__wbindgen_export4,t.__wbindgen_export5),j=p;t.recover_reframe(k,A,F,n,e,z,W,i,c,R,j);var g=o().getInt32(k+0,!0),w=o().getInt32(k+4,!0),b=o().getInt32(k+8,!0),x=o().getInt32(k+12,!0),m=g,I=w;if(x)throw m=0,I=0,u(b);return s=m,d=I,M(m,I)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,d,1)}}function Mr(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=S(r,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba16(b,x,m,n,e,_,i,I,k);var a=o().getInt32(b+0,!0),s=o().getInt32(b+4,!0),d=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw u(d);var w=gt(a,s).slice();return t.__wbindgen_export3(a,s*2,2),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rr(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba8(b,x,m,n,e,_,i,I,k);var a=o().getInt32(b+0,!0),s=o().getInt32(b+4,!0),d=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw u(d);var w=f(a,s).slice();return t.__wbindgen_export3(a,s*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zr(){t.reset_dci_rate_state()}function Wr(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(r,t.__wbindgen_export4),b=p;t.resize_luma_area(g,w,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),s=o().getInt32(g+12,!0);if(s)throw u(a);var d=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jr(r,n,e,_,i){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=y(i,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.rgba8_to_xyz12(w,b,x,n,e,_,m,I);var c=o().getInt32(w+0,!0),a=o().getInt32(w+4,!0),s=o().getInt32(w+8,!0),d=o().getInt32(w+12,!0);if(d)throw u(s);var g=gt(c,a).slice();return t.__wbindgen_export3(c,a*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tr(r,n,e,_){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),s=p,d=y(_,t.__wbindgen_export4,t.__wbindgen_export5),g=p,w=t.trim_r3d(v(r),i,c,a,s,d,g);return u(w)}function Sr(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),d=p;t.vc3_band_info(a,s,d);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw u(_);var c=ot(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ur(r,n,e){let _=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=t.video_frame_index_isobmff_reader(v(r),n,_,i);return u(c)}var Z=class r{static __wrap(n){let e=Object.create(r.prototype);return e.__wbg_ptr=n,mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_wbg_rayon_poolbuilder_free(n,0)}build(){t.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}numThreads(){return t.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}receiver(){return t.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);function Or(r){t.wbg_rayon_start_worker(r)}function qr(r,n,e){let _=t.xavc_au(v(r),n,e);return u(_)}function Lr(r,n){let e=t.xavc_frame_count(v(r),n);return u(e)}function Er(r,n){let e=t.xocn_frame_count(v(r),n);return u(e)}function Dr(r){let n=l(r,t.__wbindgen_export4),e=p;return t.xocn_index_prefix_len(n,e)>>>0}function Pr(r){let n=l(r,t.__wbindgen_export4),e=p;return t.xocn_preview_prefix_len(n,e)>>>0}function kt(r){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof h(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return h(e)===void 0},__wbg___wbindgen_memory_9751d9a3017e7c25:function(){let e=t.memory;return v(e)},__wbg___wbindgen_module_f86f28f0f85995dd:function(){return v(Rt)},__wbg___wbindgen_rethrow_858623e73c3311dc:function(e){throw u(e)},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,_){throw new Error(M(e,_))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){h(e)._wbg_cb_unref()},__wbg_async_4ec36f08efecafdc:function(e){return h(e).async},__wbg_buffer_49b4f592d8036785:function(e){let _=h(e).buffer;return v(_)},__wbg_call_0e855b388e315e17:function(){return $(function(e,_,i,c){let a=h(e).call(h(_),h(i),h(c));return v(a)},arguments)},__wbg_call_5575218572ead796:function(){return $(function(e,_,i){let c=h(e).call(h(_),h(i));return v(c)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return $(function(e,_,i,c,a){let s=h(e).call(h(_),h(i),h(c),h(a));return v(s)},arguments)},__wbg_data_23c14f7d1102d077:function(e){let _=h(e).data;return v(_)},__wbg_instanceof_Window_0d356b88a2f77c42:function(e){let _;try{_=h(e)instanceof Window}catch{_=!1}return _},__wbg_length_589238bdcf171f0e:function(e){return h(e).length},__wbg_new_476e05fb84d8e4f3:function(e){let _=new Int32Array(h(e));return v(_)},__wbg_new_81880fb5002cb255:function(e){let _=new Uint8Array(h(e));return v(_)},__wbg_new_f85beb941dc6d8aa:function(e,_){try{var i={a:e,b:_},c=(s,d)=>{let g=i.a;i.a=0;try{return lt(g,i.b,s,d)}finally{i.a=g}};let a=new Promise(c);return v(a)}finally{i.a=0}},__wbg_new_typed_00a409eb4ec4f2d9:function(e,_){try{var i={a:e,b:_},c=(s,d)=>{let g=i.a;i.a=0;try{return lt(g,i.b,s,d)}finally{i.a=g}};let a=new Promise(c);return v(a)}finally{i.a=0}},__wbg_new_worker_e68fc8188cc230b5:function(e,_){let i=new Worker(M(e,_));return v(i)},__wbg_of_8737c43050b5546e:function(e,_,i){let c=Array.of(h(e),h(_),h(i));return v(c)},__wbg_postMessage_0162be6e48cf631e:function(){return $(function(e,_){h(e).postMessage(h(_))},arguments)},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,_,i){Uint8Array.prototype.set.call(f(e,_),h(i))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let _=h(e).queueMicrotask;return v(_)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(h(e))},__wbg_resolve_d82363d90af6928a:function(e){let _=Promise.resolve(h(e));return v(_)},__wbg_set_onmessage_d05709471e546dca:function(e,_){h(e).onmessage=h(_)},__wbg_startWorkers_8b582d57e92bd2d4:function(e,_,i){let c=bt(u(e),u(_),Z.__wrap(i));return v(c)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return E(e)?0:v(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return E(e)?0:v(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return E(e)?0:v(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return E(e)?0:v(e)},__wbg_then_05edfc8a4fea5106:function(e,_,i){let c=h(e).then(h(_),h(i));return v(c)},__wbg_then_591b6b3a75ee817a:function(e,_){let i=h(e).then(h(_));return v(i)},__wbg_then_c768c7c3e60c20ef:function(e,_){let i=h(e).then(h(_));return v(i)},__wbg_value_2f34afb824ffcd9a:function(e){let _=h(e).value;return v(_)},__wbg_waitAsync_134f0b4abc50f1f2:function(e,_,i){let c=Atomics.waitAsync(h(e),_>>>0,i);return v(c)},__wbg_waitAsync_485a8d512901fd53:function(){let e=Atomics.waitAsync;return v(e)},__wbindgen_cast_0000000000000001:function(e,_){let i=dt(e,_,St);return v(i)},__wbindgen_cast_0000000000000002:function(e,_){let i=dt(e,_,Ot);return v(i)},__wbindgen_cast_0000000000000003:function(e,_){let i=dt(e,_,Ut);return v(i)},__wbindgen_cast_0000000000000004:function(e){return v(e)},__wbindgen_cast_0000000000000005:function(e,_){let i=f(e,_);return v(i)},__wbindgen_cast_0000000000000006:function(e,_){let i=M(e,_);return v(i)},__wbindgen_cast_0000000000000007:function(e,_){var i=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),v(i)},__wbindgen_link_ec60efd85dcca315:function(e){let _=`onmessage = function (ev) {
|
|
4
4
|
let [ia, index, value] = ev.data;
|
|
5
5
|
ia = new Int32Array(ia.buffer);
|
|
6
6
|
let result = Atomics.wait(ia, index, value);
|
|
7
7
|
postMessage(result);
|
|
8
8
|
};
|
|
9
|
-
`,i=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(_):URL.createObjectURL(new Blob([_],{type:"text/javascript"})),c=y(i,t.__wbindgen_export4,t.__wbindgen_export5),a=p;o().setInt32(e+4,a,!0),o().setInt32(e+0,c,!0)},__wbindgen_object_clone_ref:function(e){let _=h(e);return v(_)},__wbindgen_object_drop_ref:function(e){u(e)},memory:r||new WebAssembly.Memory({initial:77,maximum:65536,shared:!0})}}}function St(r,n,e){t.__wasm_bindgen_func_elem_492(r,n,v(e))}function Ut(r,n,e){t.__wasm_bindgen_func_elem_2063(r,n,v(e))}function Ot(r,n,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_2061(c,r,n,v(e));var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);if(i)throw u(_)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function lt(r,n,e,_){t.__wasm_bindgen_func_elem_2078(r,n,v(e),v(_))}var ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrbench_free(r,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrstreamencoder_free(r,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresbench_free(r,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovencoder_free(r,1)),It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovwriter_free(r,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_wbg_rayon_poolbuilder_free(r,1));function v(r){Y===q.length&&q.push(q.length+1);let n=Y;return Y=q[n],q[n]=r,n}var ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbindgen_export2(r.a,r.b));function qt(r){r<1028||(q[r]=Y,Y=r)}function Lt(r,n){return r=r>>>0,At().subarray(r/8,r/8+n)}function gt(r,n){return r=r>>>0,Ft().subarray(r/2,r/2+n)}function ot(r,n){return r=r>>>0,Mt().subarray(r/4,r/4+n)}function f(r,n){return r=r>>>0,D().subarray(r/1,r/1+n)}var C=null;function o(){return(C===null||C.buffer!==t.memory.buffer)&&(C=new DataView(t.memory.buffer)),C}var V=null;function Et(){return(V===null||V.buffer!==t.memory.buffer)&&(V=new Float32Array(t.memory.buffer)),V}var H=null;function At(){return(H===null||H.buffer!==t.memory.buffer)&&(H=new Float64Array(t.memory.buffer)),H}function M(r,n){return Pt(r>>>0,n)}var N=null;function Ft(){return(N===null||N.buffer!==t.memory.buffer)&&(N=new Uint16Array(t.memory.buffer)),N}var G=null;function Mt(){return(G===null||G.buffer!==t.memory.buffer)&&(G=new Uint32Array(t.memory.buffer)),G}var X=null;function D(){return(X===null||X.buffer!==t.memory.buffer)&&(X=new Uint8Array(t.memory.buffer)),X}function h(r){return q[r]}function $(r,n){try{return r.apply(this,n)}catch(e){t.__wbindgen_export(v(e))}}var q=new Array(1024).fill(void 0);q.push(void 0,null,!0,!1);var Y=q.length;function E(r){return r==null}function dt(r,n,e){let _={a:r,b:n,cnt:1},i=(...c)=>{_.cnt++;let a=_.a;_.a=0;try{return e(a,_.b,...c)}finally{_.a=a,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--_.cnt===0&&(t.__wbindgen_export2(_.a,_.b),_.a=0,ht.unregister(_))},ht.register(i,_,_),i}function S(r,n){let e=n(r.length*2,2)>>>0;return Ft().set(r,e/2),p=r.length,e}function U(r,n){let e=n(r.length*4,4)>>>0;return Mt().set(r,e/4),p=r.length,e}function l(r,n){let e=n(r.length*1,1)>>>0;return D().set(r,e/1),p=r.length,e}function ut(r,n){let e=n(r.length*4,4)>>>0;return Et().set(r,e/4),p=r.length,e}function J(r,n){let e=n(r.length*8,8)>>>0;return At().set(r,e/8),p=r.length,e}function y(r,n,e){if(e===void 0){let s=Q.encode(r),d=n(s.length,1)>>>0;return D().subarray(d,d+s.length).set(s),p=s.length,d}let _=r.length,i=n(_,1)>>>0,c=D(),a=0;for(;a<_;a++){let s=r.charCodeAt(a);if(s>127)break;c[i+a]=s}if(a!==_){a!==0&&(r=r.slice(a)),i=e(i,_,_=a+r.length*3,1)>>>0;let s=D().subarray(i+a,i+_),d=Q.encodeInto(r,s);a+=d.written,i=e(i,_,a,1)>>>0}return p=a,i}function u(r){let n=h(r);return qt(r),n}var K=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;K&&K.decode();var Dt=2146435072,pt=0;function Pt(r,n){return pt+=n,pt>=Dt&&(K=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),K.decode(),pt=n),K.decode(D().slice(r,r+n))}var Q=typeof TextEncoder<"u"?new TextEncoder:void 0;Q&&(Q.encodeInto=function(r,n){let e=Q.encode(r);return n.set(e),{read:r.length,written:e.length}});var p=0,Rt,Bt,t;function zt(r,n,e){if(Bt=r,t=r.exports,Rt=n,C=null,V=null,H=null,N=null,G=null,X=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw new Error("invalid stack size");return t.__wbindgen_start(e),t}async function Ct(r,n){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,n)}catch(i){if(r.ok&&e(r.type)&&r.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",i);else throw i}let _=await r.arrayBuffer();return await WebAssembly.instantiate(_,n)}else{let _=await WebAssembly.instantiate(r,n);return _ instanceof WebAssembly.Instance?{instance:_,module:r}:_}function e(_){switch(_){case"basic":case"cors":case"default":return!0}return!1}}function Br(r,n){if(t!==void 0)return t;let e;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module:r,memory:n,thread_stack_size:e}=r:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let _=kt(n);r instanceof WebAssembly.Module||(r=new WebAssembly.Module(r));let i=new WebAssembly.Instance(r,_);return zt(i,r,e)}async function Cr(r,n){if(t!==void 0)return t;let e;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module_or_path:r,memory:n,thread_stack_size:e}=r:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),r===void 0&&(r=new URL("media_core_bg.wasm",import.meta.url));let _=kt(n);(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));let{instance:i,module:c}=await Ct(await r,_);return zt(i,c,e)}export{tt as ExrBench,et as ExrStreamEncoder,nt as ProResBench,rt as ProResMovEncoder,_t as ProResMovWriter,Nt as arriraw12_clip_info,Gt as arriraw_mxf_gpu_frame,Xt as audio_aac_au,Yt as audio_aac_config,Jt as audio_info,Kt as bench_f32_boundary,Qt as bench_piz_no_huffman,Zt as dci_code_full_depth,$t as dci_frame_cap,te as dci_gpu_colour_patch,ee as dci_gpu_colour_tables,ne as dci_last_pass_caps,re as dci_legal_rates,_e as dci_mq_bench,oe as dci_pack_tier1,ie as dci_stage_rgba8,ae as dci_transform_only,ce as decode_arriraw12_luma,se as decode_arriraw12_mxf,de as decode_arriraw12_preview,pe as decode_arriraw12_rgba,ge as decode_arriraw_luma,ue as decode_arriraw_mxf,we as decode_arriraw_preview,be as decode_arriraw_preview_gray,le as decode_arriraw_preview_meta,fe as decode_arriraw_rgba,ve as decode_arriraw_rgba_meta,xe as decode_audio_pcm,ye as decode_braw_gen5log,Ie as decode_braw_luma,me as decode_braw_preview,he as decode_braw_rgba,ke as decode_cr3_rgba,Ae as decode_crm,Fe as decode_dng_preview,Me as decode_dng_rgba,Re as decode_dpx_preview,ze as decode_dpx_rgba,We as decode_exr_linear,je as decode_exr_preview,Te as decode_exr_rgba,Se as decode_jpeg_rgba,Ue as decode_png_rgba,Oe as decode_prores_band_rgba,qe as decode_prores_luma,Le as decode_prores_mxf,Ee as decode_prores_preview,De as decode_prores_raw_acescct,Pe as decode_prores_raw_luma,Be as decode_prores_raw_preview,Ce as decode_prores_raw_rec2020,Ve as decode_prores_raw_rgba,He as decode_prores_rgb16,Ne as decode_prores_rgba,Ge as decode_prores_thumb_dc32,Xe as decode_r3d_luma,Ye as decode_r3d_preview,Je as decode_r3d_preview_clip,Ke as decode_r3d_rgb16,Qe as decode_r3d_rgba,Ze as decode_r3d_rgba_clip,$e as decode_tiff_preview,tn as decode_tiff_rgba,en as decode_vc3_band_rgba,nn as decode_vc3_luma,rn as decode_vc3_mxf,_n as decode_vc3_preview,on as decode_vc3_rgba,an as decode_xocn_index_luma,cn as decode_xocn_luma,sn as decode_xocn_mxf,dn as decode_xocn_preview,pn as decode_xocn_preview_rec709,gn as decode_xocn_rgb16,un as decode_xocn_rgba,Cr as default,wn as encode_dci_j2c,bn as encode_dci_j2c_rgb,ln as encode_dci_j2c_rgba8,fn as encode_dci_j2c_staged,vn as encode_dci_j2c_staged_modelled,xn as encode_exr,yn as encode_prores_4444_alpha_mov_rgba,In as encode_prores_4444_alpha_sample_q,mn as encode_prores_444_sample_cbr,hn as encode_prores_444_sample_cbr_rgb16,kn as encode_prores_444_sample_cbr_rgb16_lut,An as encode_prores_mov_rgba,Fn as encode_prores_rgba,Mn as encode_prores_sample_cbr,Rn as encode_prores_sample_cbr_rgb16,zn as encode_prores_sample_cbr_rgb16_lut,Wn as encode_prores_sample_q,jn as exr_sequence_filename,Tn as fit_sizing,Br as initSync,Sn as initThreadPool,Un as inspect_cr3,On as inspect_dng,qn as inspect_dpx,Ln as inspect_exr,En as inspect_isobmff,Dn as inspect_tiff,Pn as inspect_wav,Bn as is_arriraw12_mxf,Cn as is_arriraw_mxf,Vn as is_crm,Hn as is_prores_mxf,Nn as is_vc3_mxf,Gn as is_xavc_mxf,Xn as is_xocn_mxf,Yn as list_isobmff_segments,Jn as list_mxf_segments,Kn as list_r3d_frames,Qn as list_r3d_segments,Zn as list_wav_segments,$n as mux_prores_4444_alpha_samples,tr as mux_prores_samples,er as mux_prores_samples_full,nr as mxf_au_run,rr as mxf_frame_index,_r as mxf_gop_map,or as mxf_h264_kind,ir as plan_isobmff_trim,ar as plan_isobmff_trim_reader,cr as plan_mxf_compact_trim,sr as plan_mxf_trim,dr as plan_r3d_compact,pr as plan_wav_trim,gr as plan_wav_trim_reader,ur as prepare_isobmff,wr as prepare_mxf,br as prepare_r3d,lr as prepare_wav,fr as probe_mov,vr as probe_mxf,xr as probe_r3d,yr as prores_band_info,Ir as prores_reset_rate_control,mr as r3d_gpu_develop_params,hr as r3d_is_helium,kr as read_arriraw_fcs,Ar as read_arriraw_unit_correction,Fr as recover_reframe,Mr as resample_rgba16,Rr as resample_rgba8,zr as reset_dci_rate_state,Wr as resize_luma_area,jr as rgba8_to_xyz12,Tr as trim_r3d,Sr as vc3_band_info,Ur as video_frame_index_isobmff_reader,Z as wbg_rayon_PoolBuilder,Or as wbg_rayon_start_worker,qr as xavc_au,Lr as xavc_frame_count,Er as xocn_frame_count,Dr as xocn_index_prefix_len,Pr as xocn_preview_prefix_len};
|
|
9
|
+
`,i=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(_):URL.createObjectURL(new Blob([_],{type:"text/javascript"})),c=y(i,t.__wbindgen_export4,t.__wbindgen_export5),a=p;o().setInt32(e+4,a,!0),o().setInt32(e+0,c,!0)},__wbindgen_object_clone_ref:function(e){let _=h(e);return v(_)},__wbindgen_object_drop_ref:function(e){u(e)},memory:r||new WebAssembly.Memory({initial:77,maximum:65536,shared:!0})}}}function St(r,n,e){t.__wasm_bindgen_func_elem_492(r,n,v(e))}function Ut(r,n,e){t.__wasm_bindgen_func_elem_2068(r,n,v(e))}function Ot(r,n,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_2066(c,r,n,v(e));var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);if(i)throw u(_)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function lt(r,n,e,_){t.__wasm_bindgen_func_elem_2083(r,n,v(e),v(_))}var ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrbench_free(r,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrstreamencoder_free(r,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresbench_free(r,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovencoder_free(r,1)),It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovwriter_free(r,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_wbg_rayon_poolbuilder_free(r,1));function v(r){Y===q.length&&q.push(q.length+1);let n=Y;return Y=q[n],q[n]=r,n}var ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbindgen_export2(r.a,r.b));function qt(r){r<1028||(q[r]=Y,Y=r)}function Lt(r,n){return r=r>>>0,At().subarray(r/8,r/8+n)}function gt(r,n){return r=r>>>0,Ft().subarray(r/2,r/2+n)}function ot(r,n){return r=r>>>0,Mt().subarray(r/4,r/4+n)}function f(r,n){return r=r>>>0,D().subarray(r/1,r/1+n)}var C=null;function o(){return(C===null||C.buffer!==t.memory.buffer)&&(C=new DataView(t.memory.buffer)),C}var V=null;function Et(){return(V===null||V.buffer!==t.memory.buffer)&&(V=new Float32Array(t.memory.buffer)),V}var H=null;function At(){return(H===null||H.buffer!==t.memory.buffer)&&(H=new Float64Array(t.memory.buffer)),H}function M(r,n){return Pt(r>>>0,n)}var N=null;function Ft(){return(N===null||N.buffer!==t.memory.buffer)&&(N=new Uint16Array(t.memory.buffer)),N}var G=null;function Mt(){return(G===null||G.buffer!==t.memory.buffer)&&(G=new Uint32Array(t.memory.buffer)),G}var X=null;function D(){return(X===null||X.buffer!==t.memory.buffer)&&(X=new Uint8Array(t.memory.buffer)),X}function h(r){return q[r]}function $(r,n){try{return r.apply(this,n)}catch(e){t.__wbindgen_export(v(e))}}var q=new Array(1024).fill(void 0);q.push(void 0,null,!0,!1);var Y=q.length;function E(r){return r==null}function dt(r,n,e){let _={a:r,b:n,cnt:1},i=(...c)=>{_.cnt++;let a=_.a;_.a=0;try{return e(a,_.b,...c)}finally{_.a=a,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--_.cnt===0&&(t.__wbindgen_export2(_.a,_.b),_.a=0,ht.unregister(_))},ht.register(i,_,_),i}function S(r,n){let e=n(r.length*2,2)>>>0;return Ft().set(r,e/2),p=r.length,e}function U(r,n){let e=n(r.length*4,4)>>>0;return Mt().set(r,e/4),p=r.length,e}function l(r,n){let e=n(r.length*1,1)>>>0;return D().set(r,e/1),p=r.length,e}function ut(r,n){let e=n(r.length*4,4)>>>0;return Et().set(r,e/4),p=r.length,e}function J(r,n){let e=n(r.length*8,8)>>>0;return At().set(r,e/8),p=r.length,e}function y(r,n,e){if(e===void 0){let s=Q.encode(r),d=n(s.length,1)>>>0;return D().subarray(d,d+s.length).set(s),p=s.length,d}let _=r.length,i=n(_,1)>>>0,c=D(),a=0;for(;a<_;a++){let s=r.charCodeAt(a);if(s>127)break;c[i+a]=s}if(a!==_){a!==0&&(r=r.slice(a)),i=e(i,_,_=a+r.length*3,1)>>>0;let s=D().subarray(i+a,i+_),d=Q.encodeInto(r,s);a+=d.written,i=e(i,_,a,1)>>>0}return p=a,i}function u(r){let n=h(r);return qt(r),n}var K=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;K&&K.decode();var Dt=2146435072,pt=0;function Pt(r,n){return pt+=n,pt>=Dt&&(K=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),K.decode(),pt=n),K.decode(D().slice(r,r+n))}var Q=typeof TextEncoder<"u"?new TextEncoder:void 0;Q&&(Q.encodeInto=function(r,n){let e=Q.encode(r);return n.set(e),{read:r.length,written:e.length}});var p=0,Rt,Bt,t;function zt(r,n,e){if(Bt=r,t=r.exports,Rt=n,C=null,V=null,H=null,N=null,G=null,X=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw new Error("invalid stack size");return t.__wbindgen_start(e),t}async function Ct(r,n){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,n)}catch(i){if(r.ok&&e(r.type)&&r.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",i);else throw i}let _=await r.arrayBuffer();return await WebAssembly.instantiate(_,n)}else{let _=await WebAssembly.instantiate(r,n);return _ instanceof WebAssembly.Instance?{instance:_,module:r}:_}function e(_){switch(_){case"basic":case"cors":case"default":return!0}return!1}}function Br(r,n){if(t!==void 0)return t;let e;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module:r,memory:n,thread_stack_size:e}=r:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let _=kt(n);r instanceof WebAssembly.Module||(r=new WebAssembly.Module(r));let i=new WebAssembly.Instance(r,_);return zt(i,r,e)}async function Cr(r,n){if(t!==void 0)return t;let e;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module_or_path:r,memory:n,thread_stack_size:e}=r:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),r===void 0&&(r=new URL("media_core_bg.wasm",import.meta.url));let _=kt(n);(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));let{instance:i,module:c}=await Ct(await r,_);return zt(i,c,e)}export{tt as ExrBench,et as ExrStreamEncoder,nt as ProResBench,rt as ProResMovEncoder,_t as ProResMovWriter,Nt as arriraw12_clip_info,Gt as arriraw_mxf_gpu_frame,Xt as audio_aac_au,Yt as audio_aac_config,Jt as audio_info,Kt as bench_f32_boundary,Qt as bench_piz_no_huffman,Zt as dci_code_full_depth,$t as dci_frame_cap,te as dci_gpu_colour_patch,ee as dci_gpu_colour_tables,ne as dci_last_pass_caps,re as dci_legal_rates,_e as dci_mq_bench,oe as dci_pack_tier1,ie as dci_stage_rgba8,ae as dci_transform_only,ce as decode_arriraw12_luma,se as decode_arriraw12_mxf,de as decode_arriraw12_preview,pe as decode_arriraw12_rgba,ge as decode_arriraw_luma,ue as decode_arriraw_mxf,we as decode_arriraw_preview,be as decode_arriraw_preview_gray,le as decode_arriraw_preview_meta,fe as decode_arriraw_rgba,ve as decode_arriraw_rgba_meta,xe as decode_audio_pcm,ye as decode_braw_gen5log,Ie as decode_braw_luma,me as decode_braw_preview,he as decode_braw_rgba,ke as decode_cr3_rgba,Ae as decode_crm,Fe as decode_dng_preview,Me as decode_dng_rgba,Re as decode_dpx_preview,ze as decode_dpx_rgba,We as decode_exr_linear,je as decode_exr_preview,Te as decode_exr_rgba,Se as decode_jpeg_rgba,Ue as decode_png_rgba,Oe as decode_prores_band_rgba,qe as decode_prores_luma,Le as decode_prores_mxf,Ee as decode_prores_preview,De as decode_prores_raw_acescct,Pe as decode_prores_raw_luma,Be as decode_prores_raw_preview,Ce as decode_prores_raw_rec2020,Ve as decode_prores_raw_rgba,He as decode_prores_rgb16,Ne as decode_prores_rgba,Ge as decode_prores_thumb_dc32,Xe as decode_r3d_luma,Ye as decode_r3d_preview,Je as decode_r3d_preview_clip,Ke as decode_r3d_rgb16,Qe as decode_r3d_rgba,Ze as decode_r3d_rgba_clip,$e as decode_tiff_preview,tn as decode_tiff_rgba,en as decode_vc3_band_rgba,nn as decode_vc3_luma,rn as decode_vc3_mxf,_n as decode_vc3_preview,on as decode_vc3_rgba,an as decode_xocn_index_luma,cn as decode_xocn_luma,sn as decode_xocn_mxf,dn as decode_xocn_preview,pn as decode_xocn_preview_rec709,gn as decode_xocn_rgb16,un as decode_xocn_rgba,Cr as default,wn as encode_dci_j2c,bn as encode_dci_j2c_rgb,ln as encode_dci_j2c_rgba8,fn as encode_dci_j2c_staged,vn as encode_dci_j2c_staged_modelled,xn as encode_exr,yn as encode_prores_4444_alpha_mov_rgba,In as encode_prores_4444_alpha_sample_q,mn as encode_prores_444_sample_cbr,hn as encode_prores_444_sample_cbr_rgb16,kn as encode_prores_444_sample_cbr_rgb16_lut,An as encode_prores_mov_rgba,Fn as encode_prores_rgba,Mn as encode_prores_sample_cbr,Rn as encode_prores_sample_cbr_rgb16,zn as encode_prores_sample_cbr_rgb16_lut,Wn as encode_prores_sample_q,jn as exr_sequence_filename,Tn as fit_sizing,Br as initSync,Sn as initThreadPool,Un as inspect_cr3,On as inspect_dng,qn as inspect_dpx,Ln as inspect_exr,En as inspect_isobmff,Dn as inspect_tiff,Pn as inspect_wav,Bn as is_arriraw12_mxf,Cn as is_arriraw_mxf,Vn as is_crm,Hn as is_prores_mxf,Nn as is_vc3_mxf,Gn as is_xavc_mxf,Xn as is_xocn_mxf,Yn as list_isobmff_segments,Jn as list_mxf_segments,Kn as list_r3d_frames,Qn as list_r3d_segments,Zn as list_wav_segments,$n as mux_prores_4444_alpha_samples,tr as mux_prores_samples,er as mux_prores_samples_full,nr as mxf_au_run,rr as mxf_frame_index,_r as mxf_gop_map,or as mxf_h264_kind,ir as plan_isobmff_trim,ar as plan_isobmff_trim_reader,cr as plan_mxf_compact_trim,sr as plan_mxf_trim,dr as plan_r3d_compact,pr as plan_wav_trim,gr as plan_wav_trim_reader,ur as prepare_isobmff,wr as prepare_mxf,br as prepare_r3d,lr as prepare_wav,fr as probe_mov,vr as probe_mxf,xr as probe_r3d,yr as prores_band_info,Ir as prores_reset_rate_control,mr as r3d_gpu_develop_params,hr as r3d_is_helium,kr as read_arriraw_fcs,Ar as read_arriraw_unit_correction,Fr as recover_reframe,Mr as resample_rgba16,Rr as resample_rgba8,zr as reset_dci_rate_state,Wr as resize_luma_area,jr as rgba8_to_xyz12,Tr as trim_r3d,Sr as vc3_band_info,Ur as video_frame_index_isobmff_reader,Z as wbg_rayon_PoolBuilder,Or as wbg_rayon_start_worker,qr as xavc_au,Lr as xavc_frame_count,Er as xocn_frame_count,Dr as xocn_index_prefix_len,Pr as xocn_preview_prefix_len};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{a}from"./chunk-
|
|
3
|
+
import{a}from"./chunk-GIZIR52D.js";import"./chunk-PSANHDZM.js";export{a as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{a as N}from"./chunk-AACY2V3L.js";import{b as $}from"./chunk-FMYTLXWN.js";import{b as J}from"./chunk-BK62N3ID.js";import{$ as E,Ca as l,J as M,O as P,Z as D,_ as T,a as B,aa as L,ba as C,c as I,da as O,e as S,la as V,oa as W,qa as G,t as k}from"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";var z=new Uint8Array([6,14,43,52,2,5,1,1,13,1,2,1,1,17,1,0]);function oe(t){e:for(let r=t.length-z.length;r>=0;r--){for(let e=0;e<z.length;e++)if(t[r+e]!==z[e])continue e;return r}return-1}function j(t,r){if(r>=t.byteLength)return[null,0];let e=t.getUint8(r);if(e<128)return[e,1];let n=e&127;if(n===0||n>8||r+1+n>t.byteLength)return[null,1];let a=0;for(let i=0;i<n;i++)a=a*256+t.getUint8(r+1+i);return[a,1+n]}function b(t,r){let e=t.getUint32(r,!1),n=t.getUint32(r+4,!1);return e*4294967296+n}async function Z(t){let r=t.fileSize,e=[];if(r<1024)return e;let a=Math.max(0,r-65536),i=r-a,o=await t.read(a,i);e.push({offset:a,length:i});let s=oe(o);if(s<0)return e;let c=new DataView(o.buffer,o.byteOffset,o.byteLength),[f,re]=j(c,s+16);if(f===null||f<16||f>65536)return e;let F=s+16+re;if(F+f>o.length)return e;let A=[],te=new DataView(o.buffer,o.byteOffset+F,f),g=Math.floor((f-4)/12);if(g<1||g>4096)return e;for(let u=0;u<g;u++){let d=b(te,u*12+4);d>=0&&d<r&&A.push(d)}for(let u of A){let d=Math.min(256,r-u),p=await t.read(u,d);if(p.length<80)continue;let y=new DataView(p.buffer,p.byteOffset,p.byteLength),[R,v]=j(y,16);if(R===null)continue;let m=16+v,_,x;if(p.length<m+64){let ie=Math.min(m+64,r-u),h=await t.read(u,ie);if(h.length<m+64)continue;let U=new DataView(h.buffer,h.byteOffset,h.byteLength);_=b(U,m+32),x=b(U,m+40)}else _=b(y,m+32),x=b(y,m+40);let ne=u+16+v+R+_+x,ae=Math.min(ne+65536,r)-u;e.push({offset:u,length:ae})}return e}function H(t,r){let e=[];for(let n of t){if(n.kind!=="clip"||!n.source_range)continue;let a=n.source_range.start.value,i=n.source_range.duration.value,o=Math.max(0,Math.floor(a)-r),s=Math.floor(a+i-1)+r;s>=o&&e.push({first_frame:o,last_frame:s})}return e}function se(t,r){let e=[...t].sort((i,o)=>i.offset-o.offset),n=[],a=0;for(let i of e)i.offset>a&&n.push({offset:a,length:i.offset-a}),a=Math.max(a,i.offset+i.length);return a<r&&n.push({offset:a,length:r-a}),n}async function q(t,r,e){let n=H(r,0);if(n.length===0)throw new Error("planMxfTrimsFromItems: no usable trim ranges in items");await l();let a=(o,s)=>t.read(o,s),i=await $(n,e,(o,s)=>V(a,t.fileSize,o,s));return i.map((o,s)=>{let c=JSON.parse(o);return i.length>1&&(c.output_clip_number=s+1,c.output_clip_count=i.length,c.output_part_number=1),c})}async function K(t,r,e){await l();let n=H(r,e),i=await W((s,c)=>t.read(s,c),t.fileSize,JSON.stringify(n));if(i!=="null")return JSON.parse(i);console.warn(`[mxf] no parseable index \u2014 shipping the WHOLE file (${t.fileSize} bytes). The cut's ${n.length} range(s) cannot be addressed; nothing is trimmed.`);let o=(await Z(t)).map(s=>({offset:s.offset,length:s.length}));return{fileSize:t.fileSize,structuralRanges:o,essenceRanges:se(o,t.fileSize),trimInputs:n,wholeFileFallback:!0}}async function Q(t){await l();let e=await G((n,a)=>t.read(n,a),t.fileSize);return JSON.parse(e)}function w(t){return(r,e)=>t.read(r,e)}var Me={async inspect(t){let r=t.parts[0],e=await Q(r);if(!e)return null;let n=e.timecode??null,a=n&&n.fps_denominator>0?n.fps_numerator/n.fps_denominator:null,i=e.width??null,o=e.height??null;return{id:r.filename,kind:"external",target_url:r.filename,available_range:a&&e.frame_count?{start:{value:0,rate:a},duration:{value:e.frame_count,rate:a}}:null,reel_name:null,source_timecode:n?.display??null,source_fps:a,source_resolution_w:i,source_resolution_h:o,container:"mxf",codec:null,size_bytes:r.fileSize,streams:[...i||o||a?[{kind:"video",codec:null,width:i??void 0,height:o??void 0,rate:a??void 0,codec_specific:null}]:[],...e.audio?[{kind:"audio",codec:e.audio.codec_fourcc,channels:e.audio.channels??void 0,rate:e.audio.sample_rate??void 0,bit_depth:e.audio.bit_depth??void 0,codec_specific:{fourcc:e.audio.codec_fourcc}}]:[]],decode_provenance:e.decode_provenance??null,vendor_metadata:{frame_count:e.frame_count,...n?{drop_frame:n.drop_frame}:{},...e.inner_codec?{inner_codec:e.inner_codec}:{},...e.truncated?{truncated:!0}:{}},binding_state:"unbound",raw_extraction:{mxf_probe:e},metadata:{}}},async extract(t){await l();let r=t.parts[0],e=JSON.parse(await O(w(r),r.fileSize));return e.length===0?null:{v:1,container:"mxf",codec:"mxf",frame_count:N(e),granularity:"frame",segments:e}},async sparsify(t,r){let e=t.parts[0],n=await K(e,r.items,r.handles);return[{filename:e.filename,fileSize:n.fileSize,structuralRanges:n.structuralRanges,essenceRanges:n.essenceRanges,trimInputs:n.trimInputs,wholeFileFallback:n.wholeFileFallback}]},async trim(t,r){let e=t.parts[0];return q(e,r.items,r.handles)},async decode(t,r,e){await l();let n=t.parts[0],a=w(n),i=await ee(t),o=e.detail==="coarse",s;if(i==="arriraw")s=await S(a,n.fileSize,r,o?"preview:4":"full");else if(i==="arriraw-alev3")s=await I(a,n.fileSize,r,o?"preview:4":"full");else if(i==="dnxhr")s=await M(a,n.fileSize,r,o?"preview":"full");else if(i==="xocn")s=await P(a,n.fileSize,r,o?"preview":"full");else if(i==="prores")s=await k(a,n.fileSize,r,o?"preview":"full");else throw new Error(`mxf decode: no decoder for inner codec '${i}'`);let c=new DataView(s.buffer,s.byteOffset,8);return{width:c.getUint32(0,!0),height:c.getUint32(4,!0),rgba:s.slice(8)}},async decode16(t,r){await l();let e=t.parts[0],n=w(e),a=await ee(t),i;try{if(a==="arriraw"){let o=await ue(t,r);if(o)return o;i=await S(n,e.fileSize,r,"rgb16")}else if(a==="dnxhr")i=await M(n,e.fileSize,r,"rgb16");else if(a==="xocn")i=await P(n,e.fileSize,r,"rgb16");else throw new Error(`mxf decode16: no decoder for inner codec '${a}'`)}catch(o){throw fe(o,a)}return J(i)}};function fe(t,r){let e=typeof t=="string"?t:t instanceof Error?t.message:"";return/has no 16-bit decoder|no rgb16 tier/.test(e)?new Error(`mxf ${r}: has no 16-bit decoder \u2014 ${e}`):t}var X=new WeakMap;async function ue(t,r){if(!!0)return null;try{let e=await import("./arriraw-GUQEZ7CH.js");if(!await e.arrirawGpuAvailable())return null;let{parseArrirawGpuPayload:n,arrirawFrameToRgb16:a}=await import("./clip-state-B6JOX3JE.js"),i=t.parts[0],o=X.get(t)??null,s=await B(w(i),i.fileSize,r,o?.key),c=n(s,o);if(!c)return null;X.set(t,{key:c.key,state:c.state});let f=await e.decodeArrirawFrameGpu(c.essence,c.state);return f?{width:f.width,height:f.height,rgb16:a(f)}:null}catch{return null}}var Y=new WeakMap;async function ee(t){let r=Y.get(t);if(r)return r;await l();let e=t.parts[0],n=w(e),a="mxf";return await T(n,e.fileSize)?a="arriraw":await D(n,e.fileSize)?a="arriraw-alev3":await L(n,e.fileSize)?a="dnxhr":await C(n,e.fileSize)?a="xocn":await E(n,e.fileSize)&&(a="prores"),Y.set(t,a),a}export{Me as mxfFormat};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{a,b,c,d,e,f,g,h,i}from"./chunk-
|
|
3
|
+
import{a,b,c,d,e,f,g,h,i}from"./chunk-BK62N3ID.js";import"./chunk-PSANHDZM.js";export{c as CoverageMissError,e as DeliveryCoverageMissError,a as INTENTS,f as asDeliveryCoverageMiss,h as extract,i as mediaOp,d as parseDeliveryCoverageMiss,g as resolveFormat,b as unpackFrame16};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{c as l}from"./chunk-
|
|
3
|
+
import{c as l}from"./chunk-BK62N3ID.js";import{Ca as f,E as _,F as S,G as P,ea as b,fa as R,ra as w,ta as v,wa as F}from"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";var g=class{constructor(e=[]){this.ranges=[];for(let[r,n]of e)this.add(r,n)}add(e,r){if(r<=e)return;let n=[],[s,o]=[e,r];for(let[i,a]of this.ranges)a<s||i>o?n.push([i,a]):(s=Math.min(s,i),o=Math.max(o,a));n.push([s,o]),n.sort((i,a)=>i[0]-a[0]),this.ranges=n}has(e,r){return r<=e?!0:this.ranges.some(([n,s])=>n<=e&&s>=r)}missing(e,r){if(r<=e)return[];let n=[],s=e;for(let[o,i]of this.ranges)if(!(i<=s)&&(o>=r||(o>s&&n.push([s,Math.min(o,r)]),s=Math.max(s,i),s>=r)))break;return s<r&&n.push([s,r]),n}count(){return this.ranges.reduce((e,[r,n])=>e+(n-r),0)}toJSON(){return this.ranges.map(([e,r])=>[e,r])}};function N(t,e){let r=new g;for(let n of t){if(n.kind!=="clip"||!n.source_range)continue;let s=n.source_range.start.value,o=n.source_range.duration.value,i=Math.max(0,Math.max(0,Math.floor(s))-e),a=Math.floor(s+o)+e;a>i&&r.add(i,a)}return r.toJSON()}function O(t,e,r){let n=N(e,r),s=a=>n.some(([c,u])=>a>=c&&a<u),o=new Map,i=a=>{let c=o.get(a);return c||(c={part:a,structuralRanges:[],essenceRanges:[]},o.set(a,c)),c};for(let a of t.segments){let c=a.part??0;a.kind==="structural"?i(c).structuralRanges.push({offset:a.offset,length:a.length}):(a.kind==="frame"||a.kind==="gop")&&a.frame_in!=null&&s(a.frame_in)&&i(c).essenceRanges.push({offset:a.offset,length:a.length})}return[...o.values()].sort((a,c)=>a.part-c.part)}async function A(t,e){if(!!0)return null;try{let n=await(await import("./r3d-YZH6X2D7.js")).decodeR3dRgbaGpu(t,e);return n?{width:n.width,height:n.height,rgba:n.rgba}:null}catch{return null}}function p(t){return(e,r,n)=>t.parts[e].read(r,n)}function d(t){return JSON.stringify(t.parts.map(e=>({name:e.filename,size:e.fileSize})))}function L(t,e){let r=[];for(let n of t){if(n.kind!=="clip"||!n.source_range)continue;let s=n.source_range.start.value,o=n.source_range.duration.value;r.push({frame_in:Math.max(0,Math.floor(s)),frame_out:Math.floor(s+o),handles:e})}return JSON.stringify(r)}var k=16,h=new WeakMap,J=new WeakMap;function x(t){let e=J.get(t);return e||(e=t.parts[0].read(0,Math.min(16*1024,t.parts[0].fileSize)),J.set(t,e)),e}async function D(t){let e=h.get(t);return e||(await f(),e=JSON.parse(await b(p(t),d(t))),h.set(t,e)),e}async function G(t){await f();let e=await b(p(t),d(t));return h.set(t,JSON.parse(e)),e}function B(t,e){h.set(t,JSON.parse(e))}async function C(t,e){let r=JSON.parse(await R(p(t),d(t)));return{v:1,container:"r3d",codec:"redcode",frame_count:e.frame_count,granularity:"frame",...t.parts.length>1?{part_names:t.parts.map(n=>n.filename.split(/[/\\]/).pop()??n.filename)}:{},segments:r}}var V={async inspect(t){await f();let e=await w(p(t),d(t)),r=JSON.parse(e);if(!r||r.frame_count===0)return null;let n=t.parts[0],s=r.timecode??null,o=s&&s.fps_denominator>0?s.fps_numerator/s.fps_denominator:null,i=r.width??null,a=r.height??null;return{id:n.filename,kind:"external",target_url:n.filename,available_range:o&&r.frame_count?{start:{value:0,rate:o},duration:{value:r.frame_count,rate:o}}:null,reel_name:r.reel??null,source_timecode:s?.display??null,source_fps:o,source_resolution_w:i,source_resolution_h:a,container:"r3d",codec:"redcode",size_bytes:r.file_size,streams:[{kind:"video",codec:"redcode",width:i??void 0,height:a??void 0,rate:o??void 0,bit_depth:k,codec_specific:{fourcc:r.codec_fourcc??"REDCODE"}}],decode_provenance:r.decode_provenance??null,vendor_metadata:{frame_count:r.frame_count,...s?{drop_frame:s.drop_frame}:{}},binding_state:"unbound",raw_extraction:{r3d_probe:r},metadata:{}}},async extract(t){await f();let e=JSON.parse(await w(p(t),d(t)));return!e||e.frame_count===0?null:C(t,e)},async sparsify(t,e){await f();let r=JSON.parse(await R(p(t),d(t))),n={v:1,container:"r3d",codec:"redcode",frame_count:r.filter(o=>o.kind==="frame").length,granularity:"frame",segments:r},s=new Map;for(let o of r)o.kind==="frame"&&s.set(o.part??0,(s.get(o.part??0)??0)+1);return O(n,e.items,e.handles).map(o=>({filename:t.parts[o.part].filename,fileSize:t.parts[o.part].fileSize,structuralRanges:o.structuralRanges,essenceRanges:o.essenceRanges,frameCount:s.get(o.part)??0,keptFrames:o.essenceRanges.length}))},async trim(t,e){await f();let r=t.parts.some(a=>a.dataRanges!==void 0),n=r?JSON.stringify(t.parts.map(a=>a.dataRanges??[])):"[]",s=r?"[]":L(e.items,e.handles),o=await F(p(t),d(t),s,n);return JSON.parse(o).parts.map(a=>a.trim_plan)},async decode(t,e,r){await f();let n=await D(t);if(e<0||e>=n.length)throw new l(e,n.length);let s=n[e],o=s.part??0,i=t.parts[o];if(!i)throw new l(e,n.length);let a=await i.read(s.essenceOffset,s.essenceLength),c=2,u=await x(t),m;if(r.detail==="coarse")m=_(a,u,0);else if(v(a))m=_(a,u,c);else{let y=await A(a,u);if(y)return y;m=P(a,u)}let M=new DataView(m.buffer,m.byteOffset,8);return{width:M.getUint32(0,!0),height:M.getUint32(4,!0),rgba:m.slice(8)}},async decode16(t,e){await f();let r=await D(t);if(e<0||e>=r.length)throw new l(e,r.length);let n=r[e],s=t.parts[n.part??0];if(!s)throw new l(e,r.length);let o=await s.read(n.essenceOffset,n.essenceLength),i=S(o),a=new DataView(i.buffer,i.byteOffset,8),c=a.getUint32(0,!0),u=a.getUint32(4,!0),m=i.slice(8);return{width:c,height:u,rgb16:new Uint16Array(m.buffer,m.byteOffset,c*u*3)}}};export{G as listR3dFramesJson,V as r3dFormat,B as seedR3dFramesJson};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{Ca as r1,sa as n1}from"./chunk-R6WJ6JIQ.js";import{a as e1}from"./chunk-7D7H6VFW.js";import"./chunk-PSANHDZM.js";var t1=new Uint32Array([327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,458759,458759,458759,458759,458759,458759,458759,458759,524296,524296,524296,524296,589839,589839,655376,655377,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,458764,458764,458764,458764,458764,458764,458764,458764,458766,458766,458766,458766,458766,458766,458766,458766,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154]),a1=new Uint32Array([393223,393224,327686,327686,262149,262149,262149,262149,196609,196609,196609,196609,196609,196609,196609,196609,262146,262146,262146,262146,262147,262147,262147,262147,196612,196612,196612,196612,196612,196612,196612,196612,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536]),i1=new Uint32Array([131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,196610,196610,196610,196610,196610,196610,196610,196610,196611,196611,196611,196611,196611,196611,196611,196611,196612,196612,196612,196612,196612,196612,196612,196612,262149,262149,262149,262149,262150,262150,262150,262150,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073]),u1=new Uint32Array([0,1,5,6,14,15,27,28,44,45,65,66,90,91,119,120,2,4,7,13,16,26,29,43,46,64,67,89,92,118,121,150,3,8,12,17,25,30,42,47,63,68,88,93,117,122,149,151,9,11,18,24,31,41,48,62,69,87,94,116,123,148,152,177,10,19,23,32,40,49,61,70,86,95,115,124,147,153,176,178,20,22,33,39,50,60,71,85,96,114,125,146,154,175,179,200,21,34,38,51,59,72,84,97,113,126,145,155,174,180,199,201,35,37,52,58,73,83,98,112,127,144,156,173,181,198,202,219,36,53,57,74,82,99,111,128,143,157,172,182,197,203,218,220,54,56,75,81,100,110,129,142,158,171,183,196,204,217,221,234,55,76,80,101,109,130,141,159,170,184,195,205,216,222,233,235,77,79,102,108,131,140,160,169,185,194,206,215,223,232,236,245,78,103,107,132,139,161,168,186,193,207,214,224,231,237,244,246,104,106,133,138,162,167,187,192,208,213,225,230,238,243,247,252,105,134,137,163,166,188,191,209,212,226,229,239,242,248,251,253,135,136,164,165,189,190,210,211,227,228,240,241,249,250,254,255]),z=new Int32Array([2048,2882,2841,2772,2676,2554,2408,2239,2048,1837,1609,1365,1108,841,565,284,2048,2772,2408,1837,1108,284,-565,-1365,-2048,-2554,-2841,-2882,-2676,-2239,-1609,-841,2048,2554,1609,284,-1108,-2239,-2841,-2772,-2048,-841,565,1837,2676,2882,2408,1365,2048,2239,565,-1365,-2676,-2772,-1609,284,2048,2882,2408,841,-1108,-2554,-2841,-1837,2048,1837,-565,-2554,-2676,-841,1609,2882,2048,-284,-2408,-2772,-1108,1365,2841,2239,2048,1365,-1609,-2882,-1108,1837,2841,841,-2048,-2772,-565,2239,2676,284,-2408,-2554,2048,841,-2408,-2239,1108,2882,565,-2554,-2048,1365,2841,284,-2676,-1837,1609,2772,2048,284,-2841,-841,2676,1365,-2408,-1837,2048,2239,-1609,-2554,1108,2772,-565,-2882,2048,-284,-2841,841,2676,-1365,-2408,1837,2048,-2239,-1609,2554,1108,-2772,-565,2882,2048,-841,-2408,2239,1108,-2882,565,2554,-2048,-1365,2841,-284,-2676,1837,1609,-2772,2048,-1365,-1609,2882,-1108,-1837,2841,-841,-2048,2772,-565,-2239,2676,-284,-2408,2554,2048,-1837,-565,2554,-2676,841,1609,-2882,2048,284,-2408,2772,-1108,-1365,2841,-2239,2048,-2239,565,1365,-2676,2772,-1609,-284,2048,-2882,2408,-841,-1108,2554,-2841,1837,2048,-2554,1609,-284,-1108,2239,-2841,2772,-2048,841,565,-1837,2676,-2882,2408,-1365,2048,-2772,2408,-1837,1108,-284,-565,1365,-2048,2554,-2841,2882,-2676,2239,-1609,841,2048,-2882,2841,-2772,2676,-2554,2408,-2239,2048,-1837,1609,-1365,1108,-841,565,-284]),s1={m16:931135616,lg_a:1098061119,lg_b:1125906863,lg_c:1046850094,lg_pa:1008981770,gc_k:1064554302,gc_p:1101529087,gc_t:1028443341,sd_eps:953267991,inv273:997199617,rr_c13:956301440,rr_c16:931135616,rr_c18:914358400,bil_sg:973078528,bil_srb:975874731,sobel_sc:931135616,bil_t7_0:1032826803,bil_t7_1:1040595071,bil_t7_2:1044597305,bil_t7_3:1046301409,bil_t7_4:1044597305,bil_t7_5:1040595071,bil_t7_6:1032826803,bil_t9_0:1031861895,bil_t9_1:1035879338,bil_t9_2:1039871874,bil_t9_3:1041522383,bil_t9_4:1042077871,bil_t9_5:1041522383,bil_t9_6:1039871874,bil_t9_7:1035879338,bil_t9_8:1031861895,gauss55_00:1065353216,gauss55_01:1082130432,gauss55_02:1088421888,gauss55_03:1082130432,gauss55_04:1065353216,gauss55_10:1082130432,gauss55_11:1098907648,gauss55_12:1104150528,gauss55_13:1098907648,gauss55_14:1082130432,gauss55_20:1088421888,gauss55_21:1104150528,gauss55_22:1109655552,gauss55_23:1104150528,gauss55_24:1088421888,gauss55_30:1082130432,gauss55_31:1098907648,gauss55_32:1104150528,gauss55_33:1098907648,gauss55_34:1082130432,gauss55_40:1065353216,gauss55_41:1082130432,gauss55_42:1088421888,gauss55_43:1082130432,gauss55_44:1065353216};function E(n,r){return(n[r]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3])>>>0}function w(n,r){return n[r]<<8|n[r+1]}function q(n){let r=Math.min(n.length,65536),e=-1;for(let u=16;u+6<=r;u+=2){if(w(n,u)!==259)continue;let g=w(n,u+2),p=w(n,u+4);if(g<256||g>8192||p<128||p>8192)continue;let y=u-16;if(E(n,y+4)!==0||E(n,y+8)!==0)continue;let P=E(n,y);if(!(P<65536||y+P>n.length+8192)){e=y;break}}if(e<0)throw new Error("RED codestream container not found");let i=e,t=i+12,a=[];for(let u=0;u<8;u++)a.push(w(n,t+4+2*u));let o=i+28;if(o+512>n.length)throw new Error("R3D container table truncated");let b=a[1],m=a[2],f=i+540,v=v1(n,f,a[4],b);if(b%2!==0)throw new Error(`odd R3D canvas width ${b}`);return{canvasW:b,canvasH:m,rawFields:a,table512:n.subarray(o,o+512),streamOff:f,segments:v}}function v1(n,r,e,i){let t=Math.ceil(i/128),a=r;for(;(w(n,a)&4095)<256;)if(a+=2,a+2>n.length)throw new Error("R3D segment stream truncated");a+=1;let o=a,b=n[a-1],m=[];for(let f=0;f<e;f++){if(o+8>n.length)throw new Error("R3D segment header past essence end");let v=[w(n,o),w(n,o+2),w(n,o+4),w(n,o+6)],u=v.map(h=>h+7>>3),g=o+8,p=u[0]+u[1]+u[2]+u[3];if(g+p>n.length)throw new Error("R3D segment body past essence end");let y=g,P=v.map((h,x)=>{let C={off:y,bitLength:h,byteLength:u[x]};return y+=u[x],C});m.push({x:f%t*128,y:Math.floor(f/t)*16,quant:b,subbands:P}),b=n[g+p]??0,o=g+p+1}return m}function o1(n){let r=new Uint32Array(n.segments.length*4*8),e=0;for(let i of n.segments)for(let t=0;t<4;t++){let a=i.subbands[t];r[e]=a.off,r[e+1]=a.bitLength,r[e+2]=a.byteLength,r[e+3]=i.x,r[e+4]=i.y,r[e+5]=i.quant,r[e+6]=t,r[e+7]=0,e+=8}return r}function k(n){return x1[0]=n>>>0,h1[0]}var c1=new ArrayBuffer(4),x1=new Uint32Array(c1),h1=new Float32Array(c1),w1=1112556626;function B1(n){if(n.length<140)return null;let r=new DataView(n.buffer,n.byteOffset,n.byteLength);if(r.getUint32(0,!0)!==w1||r.getUint32(4,!0)!==1)return null;let e=r.getUint32(8,!0),i=12,t=[];for(let f=0;f<4;f++,i+=4)t.push(r.getUint32(i,!0));let a=[];for(let f=0;f<26;f++,i+=4)a.push(r.getUint32(i,!0));let o=r.getUint32(i,!0);i+=4;let b=r.getUint32(i,!0);if(i+=4,i+b>n.length)return null;let m=new TextDecoder().decode(n.subarray(i,i+b));return{wbBits:t,smatrixBits:a,exposureBits:o,fixFlashers:(e&2)!==0,model:m}}async function M(n){try{return await r1(),B1(n1(n??new Uint8Array(0)))}catch{return null}}var l1=`// R3D KOMODO entropy decode (kernel 1 of 2). One invocation per (segment, subband) job.
|
|
3
|
+
import{a as e1}from"./chunk-7D7H6VFW.js";import{Ca as r1,sa as n1}from"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";var t1=new Uint32Array([327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,327683,458759,458759,458759,458759,458759,458759,458759,458759,524296,524296,524296,524296,589839,589839,655376,655377,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,393227,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262148,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,262146,458764,458764,458764,458764,458764,458764,458764,458764,458766,458766,458766,458766,458766,458766,458766,458766,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,393229,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,327686,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,131081,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,196609,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262149,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154,262154]),a1=new Uint32Array([393223,393224,327686,327686,262149,262149,262149,262149,196609,196609,196609,196609,196609,196609,196609,196609,262146,262146,262146,262146,262147,262147,262147,262147,196612,196612,196612,196612,196612,196612,196612,196612,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536]),i1=new Uint32Array([131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,131072,196610,196610,196610,196610,196610,196610,196610,196610,196611,196611,196611,196611,196611,196611,196611,196611,196612,196612,196612,196612,196612,196612,196612,196612,262149,262149,262149,262149,262150,262150,262150,262150,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073,131073]),u1=new Uint32Array([0,1,5,6,14,15,27,28,44,45,65,66,90,91,119,120,2,4,7,13,16,26,29,43,46,64,67,89,92,118,121,150,3,8,12,17,25,30,42,47,63,68,88,93,117,122,149,151,9,11,18,24,31,41,48,62,69,87,94,116,123,148,152,177,10,19,23,32,40,49,61,70,86,95,115,124,147,153,176,178,20,22,33,39,50,60,71,85,96,114,125,146,154,175,179,200,21,34,38,51,59,72,84,97,113,126,145,155,174,180,199,201,35,37,52,58,73,83,98,112,127,144,156,173,181,198,202,219,36,53,57,74,82,99,111,128,143,157,172,182,197,203,218,220,54,56,75,81,100,110,129,142,158,171,183,196,204,217,221,234,55,76,80,101,109,130,141,159,170,184,195,205,216,222,233,235,77,79,102,108,131,140,160,169,185,194,206,215,223,232,236,245,78,103,107,132,139,161,168,186,193,207,214,224,231,237,244,246,104,106,133,138,162,167,187,192,208,213,225,230,238,243,247,252,105,134,137,163,166,188,191,209,212,226,229,239,242,248,251,253,135,136,164,165,189,190,210,211,227,228,240,241,249,250,254,255]),z=new Int32Array([2048,2882,2841,2772,2676,2554,2408,2239,2048,1837,1609,1365,1108,841,565,284,2048,2772,2408,1837,1108,284,-565,-1365,-2048,-2554,-2841,-2882,-2676,-2239,-1609,-841,2048,2554,1609,284,-1108,-2239,-2841,-2772,-2048,-841,565,1837,2676,2882,2408,1365,2048,2239,565,-1365,-2676,-2772,-1609,284,2048,2882,2408,841,-1108,-2554,-2841,-1837,2048,1837,-565,-2554,-2676,-841,1609,2882,2048,-284,-2408,-2772,-1108,1365,2841,2239,2048,1365,-1609,-2882,-1108,1837,2841,841,-2048,-2772,-565,2239,2676,284,-2408,-2554,2048,841,-2408,-2239,1108,2882,565,-2554,-2048,1365,2841,284,-2676,-1837,1609,2772,2048,284,-2841,-841,2676,1365,-2408,-1837,2048,2239,-1609,-2554,1108,2772,-565,-2882,2048,-284,-2841,841,2676,-1365,-2408,1837,2048,-2239,-1609,2554,1108,-2772,-565,2882,2048,-841,-2408,2239,1108,-2882,565,2554,-2048,-1365,2841,-284,-2676,1837,1609,-2772,2048,-1365,-1609,2882,-1108,-1837,2841,-841,-2048,2772,-565,-2239,2676,-284,-2408,2554,2048,-1837,-565,2554,-2676,841,1609,-2882,2048,284,-2408,2772,-1108,-1365,2841,-2239,2048,-2239,565,1365,-2676,2772,-1609,-284,2048,-2882,2408,-841,-1108,2554,-2841,1837,2048,-2554,1609,-284,-1108,2239,-2841,2772,-2048,841,565,-1837,2676,-2882,2408,-1365,2048,-2772,2408,-1837,1108,-284,-565,1365,-2048,2554,-2841,2882,-2676,2239,-1609,841,2048,-2882,2841,-2772,2676,-2554,2408,-2239,2048,-1837,1609,-1365,1108,-841,565,-284]),s1={m16:931135616,lg_a:1098061119,lg_b:1125906863,lg_c:1046850094,lg_pa:1008981770,gc_k:1064554302,gc_p:1101529087,gc_t:1028443341,sd_eps:953267991,inv273:997199617,rr_c13:956301440,rr_c16:931135616,rr_c18:914358400,bil_sg:973078528,bil_srb:975874731,sobel_sc:931135616,bil_t7_0:1032826803,bil_t7_1:1040595071,bil_t7_2:1044597305,bil_t7_3:1046301409,bil_t7_4:1044597305,bil_t7_5:1040595071,bil_t7_6:1032826803,bil_t9_0:1031861895,bil_t9_1:1035879338,bil_t9_2:1039871874,bil_t9_3:1041522383,bil_t9_4:1042077871,bil_t9_5:1041522383,bil_t9_6:1039871874,bil_t9_7:1035879338,bil_t9_8:1031861895,gauss55_00:1065353216,gauss55_01:1082130432,gauss55_02:1088421888,gauss55_03:1082130432,gauss55_04:1065353216,gauss55_10:1082130432,gauss55_11:1098907648,gauss55_12:1104150528,gauss55_13:1098907648,gauss55_14:1082130432,gauss55_20:1088421888,gauss55_21:1104150528,gauss55_22:1109655552,gauss55_23:1104150528,gauss55_24:1088421888,gauss55_30:1082130432,gauss55_31:1098907648,gauss55_32:1104150528,gauss55_33:1098907648,gauss55_34:1082130432,gauss55_40:1065353216,gauss55_41:1082130432,gauss55_42:1088421888,gauss55_43:1082130432,gauss55_44:1065353216};function E(n,r){return(n[r]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3])>>>0}function w(n,r){return n[r]<<8|n[r+1]}function q(n){let r=Math.min(n.length,65536),e=-1;for(let u=16;u+6<=r;u+=2){if(w(n,u)!==259)continue;let g=w(n,u+2),p=w(n,u+4);if(g<256||g>8192||p<128||p>8192)continue;let y=u-16;if(E(n,y+4)!==0||E(n,y+8)!==0)continue;let P=E(n,y);if(!(P<65536||y+P>n.length+8192)){e=y;break}}if(e<0)throw new Error("RED codestream container not found");let i=e,t=i+12,a=[];for(let u=0;u<8;u++)a.push(w(n,t+4+2*u));let o=i+28;if(o+512>n.length)throw new Error("R3D container table truncated");let b=a[1],m=a[2],f=i+540,v=v1(n,f,a[4],b);if(b%2!==0)throw new Error(`odd R3D canvas width ${b}`);return{canvasW:b,canvasH:m,rawFields:a,table512:n.subarray(o,o+512),streamOff:f,segments:v}}function v1(n,r,e,i){let t=Math.ceil(i/128),a=r;for(;(w(n,a)&4095)<256;)if(a+=2,a+2>n.length)throw new Error("R3D segment stream truncated");a+=1;let o=a,b=n[a-1],m=[];for(let f=0;f<e;f++){if(o+8>n.length)throw new Error("R3D segment header past essence end");let v=[w(n,o),w(n,o+2),w(n,o+4),w(n,o+6)],u=v.map(h=>h+7>>3),g=o+8,p=u[0]+u[1]+u[2]+u[3];if(g+p>n.length)throw new Error("R3D segment body past essence end");let y=g,P=v.map((h,x)=>{let C={off:y,bitLength:h,byteLength:u[x]};return y+=u[x],C});m.push({x:f%t*128,y:Math.floor(f/t)*16,quant:b,subbands:P}),b=n[g+p]??0,o=g+p+1}return m}function o1(n){let r=new Uint32Array(n.segments.length*4*8),e=0;for(let i of n.segments)for(let t=0;t<4;t++){let a=i.subbands[t];r[e]=a.off,r[e+1]=a.bitLength,r[e+2]=a.byteLength,r[e+3]=i.x,r[e+4]=i.y,r[e+5]=i.quant,r[e+6]=t,r[e+7]=0,e+=8}return r}function k(n){return x1[0]=n>>>0,h1[0]}var c1=new ArrayBuffer(4),x1=new Uint32Array(c1),h1=new Float32Array(c1),w1=1112556626;function B1(n){if(n.length<140)return null;let r=new DataView(n.buffer,n.byteOffset,n.byteLength);if(r.getUint32(0,!0)!==w1||r.getUint32(4,!0)!==1)return null;let e=r.getUint32(8,!0),i=12,t=[];for(let f=0;f<4;f++,i+=4)t.push(r.getUint32(i,!0));let a=[];for(let f=0;f<26;f++,i+=4)a.push(r.getUint32(i,!0));let o=r.getUint32(i,!0);i+=4;let b=r.getUint32(i,!0);if(i+=4,i+b>n.length)return null;let m=new TextDecoder().decode(n.subarray(i,i+b));return{wbBits:t,smatrixBits:a,exposureBits:o,fixFlashers:(e&2)!==0,model:m}}async function M(n){try{return await r1(),B1(n1(n??new Uint8Array(0)))}catch{return null}}var l1=`// R3D KOMODO entropy decode (kernel 1 of 2). One invocation per (segment, subband) job.
|
|
4
4
|
// Faithful port of decode_subband_raw in rust/media-core/src/r3d/entropy.rs.
|
|
5
5
|
// Writes RAW coefficients (scan order) straight into coeff[job*2048 ..] \u2014 the buffer must be
|
|
6
6
|
// zero-initialized; only nonzero decoded positions are written (deterministic across reruns).
|