conformtools 0.6.5 → 0.6.7
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 +18 -13
- package/dist/account-DJTD3KYK.js +3 -0
- package/dist/arriraw-YIJ3BYNN.js +525 -0
- package/dist/avid-panel/MANIFEST.json +11 -0
- package/dist/avid-panel/avid-manifest.json +46 -0
- package/dist/avid-panel/icon.svg +4 -0
- package/dist/avid-panel/icons/conformtools.svg +4 -0
- package/dist/avid-panel/index.html +26 -0
- package/dist/avid-panel/panel.css +12 -0
- package/dist/avid-panel/panel.js +7 -0
- package/dist/bridge-JQF4V3V2.js +3 -0
- package/dist/browser/timeline_core_bg.wasm +0 -0
- package/dist/chunk-2BPR6LK6.js +3 -0
- package/dist/chunk-3D3Z4TBR.js +3 -0
- package/dist/chunk-55BKURYP.js +378 -0
- package/dist/chunk-5WEZRGXG.js +39 -0
- package/dist/chunk-6V4OEOOX.js +3 -0
- package/dist/chunk-7D7H6VFW.js +3 -0
- package/dist/chunk-A7FNR3T5.js +3 -0
- package/dist/chunk-AACY2V3L.js +3 -0
- package/dist/chunk-AMRJXYL4.js +3 -0
- package/dist/chunk-C2ESM27Z.js +3 -0
- package/dist/chunk-D4WPRRBT.js +3 -0
- package/dist/chunk-D6YDLKSA.js +3 -0
- package/dist/chunk-DKGGJM6Z.js +3 -0
- package/dist/chunk-EUBXH67N.js +7 -0
- package/dist/chunk-GK4YYKJ6.js +19 -0
- package/dist/chunk-GM6QKY7W.js +3 -0
- package/dist/chunk-J2JXLEAI.js +3 -0
- package/dist/chunk-JV7TZDKJ.js +3 -0
- package/dist/chunk-NAFLOZER.js +9 -0
- package/dist/chunk-NFJHWZJX.js +3 -0
- package/dist/chunk-NU3X7P4N.js +3 -0
- package/dist/chunk-P2LL3JMC.js +20 -0
- package/dist/chunk-PFISREY4.js +3 -0
- package/dist/chunk-PFZVET7S.js +3 -0
- package/dist/chunk-PHAMF4JF.js +4 -0
- package/dist/chunk-PLRB2YXJ.js +3 -0
- package/dist/chunk-PSANHDZM.js +3 -0
- package/dist/chunk-RGMTLNMF.js +3 -0
- package/dist/chunk-RJ6JA2LZ.js +3 -0
- package/dist/chunk-S5JDS5PQ.js +5 -0
- package/dist/chunk-SGLQY53R.js +3 -0
- package/dist/chunk-SKFMOLUO.js +8 -0
- package/dist/chunk-SNTAZJ5A.js +6 -0
- package/dist/chunk-TK55FA56.js +3 -0
- package/dist/chunk-TXQR2HI2.js +4 -0
- package/dist/chunk-VIBEEWPC.js +10 -0
- package/dist/chunk-WN53ARHJ.js +3 -0
- package/dist/chunk-XLEINKFL.js +5 -0
- package/dist/claude-setup-IIWUB4CE.js +5 -0
- package/dist/cli.js +17 -0
- package/dist/clip-state-B6JOX3JE.js +3 -0
- package/dist/conformtools-analyze +0 -0
- package/dist/conformtools-decode +0 -0
- package/dist/cr3-wasm-HLJWEV2S.js +3 -0
- package/dist/dng-wasm-CQDLPM5V.js +3 -0
- package/dist/dpx-wasm-TLGMM7BO.js +3 -0
- package/dist/engine-P6H5P6HP.js +5 -0
- package/dist/esm-SFFBP7PS.js +3 -0
- package/dist/exr-wasm-2NPKPTVB.js +3 -0
- package/dist/flame/hook/conformtools_flame/__init__.py +10 -0
- package/dist/flame/hook/conformtools_flame/building.py +191 -0
- package/dist/flame/hook/conformtools_flame/hook.py +177 -0
- package/dist/flame/hook/conformtools_flame/render.py +622 -0
- package/dist/flame/hook/conformtools_flame/util.py +33 -0
- package/dist/flame/hook/conformtools_flame/verbs.py +1037 -0
- package/dist/flame/hook/conformtools_flame_hook.py +42 -0
- package/dist/fonts/gfx/BarlowCondensed-Bold.ttf +0 -0
- package/dist/fonts/gfx/BarlowCondensed-Regular.ttf +0 -0
- package/dist/fonts/gfx/InstrumentSerif-Regular.ttf +0 -0
- package/dist/fonts/gfx/Inter-Bold.ttf +0 -0
- package/dist/fonts/gfx/Inter-Regular.ttf +0 -0
- package/dist/fonts/gfx/JetBrainsMono-Bold.ttf +0 -0
- package/dist/fonts/gfx/JetBrainsMono-Regular.ttf +0 -0
- package/dist/fonts/gfx/OFL.txt +100 -0
- package/dist/framing-SWOD4CWB.js +3 -0
- package/dist/gfx-worker.js +3 -0
- package/dist/h264-JJMZSUWW.js +3 -0
- package/dist/h264-mxf-DCUOGLDU.js +3 -0
- package/dist/host-relink-TWAF6WIG.js +10 -0
- package/dist/hosts-Z666EF7V.js +3 -0
- package/dist/http.js +5 -0
- package/dist/i2o-transfer +0 -0
- package/dist/inspect-FJKYPEXL.js +68 -0
- package/dist/isobmff-VJOWP4MH.js +3 -0
- package/dist/mc-video-5MGGOQN4.js +3 -0
- package/dist/mcp.js +13 -0
- package/dist/media-NZYVREUF.js +3 -0
- package/dist/media_core-YZ3PABEG.js +9 -0
- package/dist/media_core_bg-FDL7GJZP.js +3 -0
- package/dist/media_core_bg-XRBVKQZH.js +3 -0
- package/dist/mxf-FJSRFLJC.js +3 -0
- package/dist/nuke/panel/python/Startup/conformtools_nuke_startup.py +44 -0
- package/dist/nuke/panel/python/conformtools_nuke/__init__.py +10 -0
- package/dist/nuke/panel/python/conformtools_nuke/panel.py +217 -0
- package/dist/nuke/panel/python/conformtools_nuke/verbs.py +837 -0
- package/dist/ops-X7NAREC4.js +3 -0
- package/dist/peer-kit/ctpeer/__init__.py +21 -0
- package/dist/peer-kit/ctpeer/client.py +247 -0
- package/dist/peer-kit/ctpeer/neutral.py +178 -0
- package/dist/peer-kit/ctpeer/pairing.py +139 -0
- package/dist/peer-kit/ctpeer/protocol.py +209 -0
- package/dist/peer-kit/ctpeer/websocket.py +289 -0
- package/dist/premiere-uxp/icons/panel.png +0 -0
- package/dist/premiere-uxp/icons/panel@2x.png +0 -0
- package/dist/premiere-uxp/icons/plugin.png +0 -0
- package/dist/premiere-uxp/icons/plugin@2x.png +0 -0
- package/dist/premiere-uxp/index.html +38 -0
- package/dist/premiere-uxp/index.js +93 -0
- package/dist/premiere-uxp/lib/clipmeta.js +170 -0
- package/dist/premiere-uxp/lib/ctx.js +68 -0
- package/dist/premiere-uxp/lib/edit.js +516 -0
- package/dist/premiere-uxp/lib/handles.js +57 -0
- package/dist/premiere-uxp/lib/markers.js +198 -0
- package/dist/premiere-uxp/lib/pairing.js +67 -0
- package/dist/premiere-uxp/lib/premiere.js +91 -0
- package/dist/premiere-uxp/lib/probe.js +452 -0
- package/dist/premiere-uxp/lib/protocol.js +165 -0
- package/dist/premiere-uxp/lib/render.js +45 -0
- package/dist/premiere-uxp/lib/session.js +85 -0
- package/dist/premiere-uxp/lib/sizing.js +325 -0
- package/dist/premiere-uxp/lib/time.js +88 -0
- package/dist/premiere-uxp/lib/timeline.js +336 -0
- package/dist/premiere-uxp/lib/verbs.js +21 -0
- package/dist/premiere-uxp/lib/write.js +97 -0
- package/dist/premiere-uxp/manifest.json +102 -0
- package/dist/probe-F7WQHMIA.js +3 -0
- package/dist/prores-RIG37OIH.js +526 -0
- package/dist/r3d-CXUNG6VS.js +1025 -0
- package/dist/r3d-T5O6IIZZ.js +3 -0
- package/dist/resolve-bridge.py +2286 -0
- package/dist/resolve-presets/conform.tools.xml +127 -0
- package/dist/source-QGWWLMME.js +3 -0
- package/dist/statusline-GMMCFMOA.js +4 -0
- package/dist/statusline.js +3 -0
- package/dist/still-P4JJNTEO.js +3 -0
- package/dist/still-wasm-DN5LPASS.js +3 -0
- package/dist/store-7IOEBOZY.js +3 -0
- package/dist/tiff-wasm-BPRDR6EB.js +3 -0
- package/dist/timeline-DQG6TVPF.js +3 -0
- package/dist/timeline_core-IOENXK4Z.js +3 -0
- package/dist/timeline_core_bg-JW42YM3G.js +3 -0
- package/dist/udf_bg-B37GKRIH.js +3 -0
- 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-64SC6P7U.js +3 -0
- package/package.json +6 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import"./chunk-PSANHDZM.js";function wt(_,n){return new Promise(e=>{_.addEventListener("message",function o({data:a}){a?.type===n&&(_.removeEventListener("message",o),e(a))})})}wt(self,"wasm_bindgen_worker_init").then(async({init:_,receiver:n})=>{let e=await import("./media_core-YZ3PABEG.js");await e.default(_),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(n)});var Tt;async function bt(_,n,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");let o={type:"wasm_bindgen_worker_init",init:{module_or_path:_,memory:n},receiver:e.receiver()};Tt=await Promise.all(Array.from({length:e.numThreads()},async()=>{let a=new Worker(new URL("./workerHelpers.js",import.meta.url),{type:"module"});return a.postMessage(o),await wt(a,"wasm_bindgen_worker_ready"),a})),e.build()}var et=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,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(a,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.exrbench_new(s,n,e,o,g,w);var c=r().getInt32(s+0,!0),i=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0);if(d)throw u(i);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=r().getFloat64(c+0,!0),o=r().getInt32(c+8,!0),a=r().getInt32(c+12,!0);if(a)throw u(o);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=r().getFloat64(c+0,!0),o=r().getInt32(c+8,!0),a=r().getInt32(c+12,!0);if(a)throw u(o);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}};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,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 i=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(i,this.__wbg_ptr);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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 a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(n,e,o,a,c,i,d,s,g,w){try{let I=t.__wbindgen_add_to_stack_pointer(-16),k=y(o,t.__wbindgen_export4,t.__wbindgen_export5),A=p,F=y(a,t.__wbindgen_export4,t.__wbindgen_export5),R=p,z=y(c,t.__wbindgen_export4,t.__wbindgen_export5),M=p,T=y(i,t.__wbindgen_export4,t.__wbindgen_export5),U=p,O=y(s,t.__wbindgen_export4,t.__wbindgen_export5),q=p;t.exrstreamencoder_new(I,n,e,k,A,F,R,z,M,T,U,d,O,q,g,w);var b=r().getInt32(I+0,!0),x=r().getInt32(I+4,!0),m=r().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 d=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(d,this.__wbg_ptr,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}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&&(nt.prototype[Symbol.dispose]=nt.prototype.free);var rt=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,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(o,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.proresbench_new(s,n,e,g,w,a);var c=r().getInt32(s+0,!0),i=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0);if(d)throw u(i);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=r().getFloat64(c+0,!0),o=r().getInt32(c+8,!0),a=r().getInt32(c+12,!0);if(a)throw u(o);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&&(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_proresmovencoder_free(n,0)}add_frame_rgba(n){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),i=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,c,i);var e=r().getInt32(a+0,!0),o=r().getInt32(a+4,!0);if(o)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(n,e,o,a){let c=t.proresmovencoder_new(n,e,o,a);return this.__wbg_ptr=c,It.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&&(_t.prototype[Symbol.dispose]=_t.prototype.free);var ot=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_proresmovwriter_free(n,0)}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(n,e,o,a){let c=t.proresmovwriter_new(n,e,o,a);return this.__wbg_ptr=c,yt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(i,this.__wbg_ptr);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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 a=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),i=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,c,i);var e=r().getInt32(a+0,!0),o=r().getInt32(a+4,!0);if(o)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(n){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(a,this.__wbg_ptr,n);var e=r().getInt32(a+0,!0),o=r().getInt32(a+4,!0);if(o)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),o=p;t.proresmovwriter_set_profile(this.__wbg_ptr,e,o)}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&&(ot.prototype[Symbol.dispose]=ot.prototype.free);function Nt(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.arriraw12_clip_info(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Gt(_,n,e,o){var a=E(o)?0:y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let i=t.arriraw_mxf_gpu_frame(v(_),n,e,a,c);return u(i)}function Xt(_,n,e){let o=t.audio_aac_au(v(_),n,e);return u(o)}function Yt(_,n){let e=t.audio_aac_config(v(_),n);return u(e)}function Jt(_,n){let e=t.audio_info(v(_),n);return u(e)}function Kt(_){let n=it(_,t.__wbindgen_export4),e=p;return t.bench_f32_boundary(n,e)}function Qt(_,n,e,o){let a=it(_,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(a,c,n,e,o)}function Zt(_,n){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=y(_,t.__wbindgen_export4,t.__wbindgen_export5),s=p;var e=it(n,t.__wbindgen_export4),o=p;t.color_cst(i,d,s,e,o,v(n));var a=r().getInt32(i+0,!0),c=r().getInt32(i+4,!0);if(c)throw u(a)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(_,n,e){let o=W(_,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(o,a,n,e)}function te(_,n,e){return t.dci_frame_cap(_,n,e)>>>0}function ee(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=y(n,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=ut(e,o).slice();return t.__wbindgen_export3(e,o*2,2),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=y(_,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(o);var _=r().getInt32(o+0,!0),n=r().getInt32(o+4,!0),e=$(_,n).slice();return t.__wbindgen_export3(_,n*4,4),e}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(_,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,_,n);var e=r().getInt32(c+0,!0),o=r().getInt32(c+4,!0),a=$(e,o).slice();return t.__wbindgen_export3(e,o*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(_){return t.dci_mq_bench(_)>>>0}function ie(_,n,e,o,a,c,i,d,s,g,w){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=S(_,t.__wbindgen_export4),R=p,z=l(n,t.__wbindgen_export4),M=p,T=S(e,t.__wbindgen_export4),U=p,O=S(o,t.__wbindgen_export4),q=p,P=S(a,t.__wbindgen_export4),B=p,at=S(c,t.__wbindgen_export4),ct=p,dt=S(i,t.__wbindgen_export4),st=p,zt=S(d,t.__wbindgen_export4),Wt=p;t.dci_pack_tier1(A,F,R,z,M,T,U,O,q,P,B,at,ct,dt,st,zt,Wt,s,g,w);var b=r().getInt32(A+0,!0),x=r().getInt32(A+4,!0),m=r().getInt32(A+8,!0),I=r().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 ae(_,n){let e=t.dci_stage_rgba8(_,n);return u(e)}function ce(_,n,e){let o=W(_,t.__wbindgen_export4),a=p;return t.dci_transform_only(o,a,n,e)}function de(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw12_mxf(v(_),n,e,a,c);return u(i)}function pe(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(s,g,w,b,x,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_arriraw_luma(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw_mxf(v(_),n,e,a,c);return u(i)}function be(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(_,n,e,o,a,c,i,d,s){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(_,t.__wbindgen_export4),R=p;var g=E(s)?0:J(s,t.__wbindgen_export4),w=p;t.decode_arriraw_preview_meta(A,F,R,n,e,o,a,c,i,d,g,w);var b=r().getInt32(A+0,!0),x=r().getInt32(A+4,!0),m=r().getInt32(A+8,!0),I=r().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 ve(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_arriraw_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(_,n,e,o,a,c,i,d){try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(_,t.__wbindgen_export4),F=p;var s=E(d)?0:J(d,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(k,A,F,n,e,o,a,c,i,s,g);var w=r().getInt32(k+0,!0),b=r().getInt32(k+4,!0),x=r().getInt32(k+8,!0),m=r().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 Ie(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_arw_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_arw_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_,n,e,o){let a=t.decode_audio_pcm(v(_),n,e,o);return u(a)}function he(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_bmp_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.decode_braw_gen5log(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_braw_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_braw_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_braw_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_cr2_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_cr2_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_crm(v(_),n,e,a,c);return u(i)}function Te(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_dng_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dng_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_dpx_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dv_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_dv_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dv_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_exr_linear(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_exr_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_exr_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_gif_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_heic_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_j2k_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_j2k_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_j2k_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_mpeg2_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_mpeg2_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_mpeg2_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_png_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_prores_band_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_prores_mxf(v(_),n,e,a,c);return u(i)}function en(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_prores_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p,b=y(n,t.__wbindgen_export4,t.__wbindgen_export5),x=p,m=l(e,t.__wbindgen_export4),I=p;t.decode_prores_raw_tier(s,g,w,b,x,m,I);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_psd_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_r3d_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_r3d_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(s,g,w,b,x,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ln(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_tga_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function In(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_tiff_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function yn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function mn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_vc3_band_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_vc3_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kn(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_vc3_mxf(v(_),n,e,a,c);return u(i)}function An(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_vc3_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_webp_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Mn(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.decode_xocn_index_luma(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_xocn_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zn(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_xocn_mxf(v(_),n,e,a,c);return u(i)}function Wn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_xocn_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);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(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.decode_xocn_rgb16(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Un(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function On(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(_,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ln(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=W(_,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,o,a,c);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,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,o,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function En(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(w,_,n,e,b,x,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(w,_,n,e,b,x,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pn(_,n,e,o,a,c,i,d,s,g,w,b,x,m,I){try{let M=t.__wbindgen_add_to_stack_pointer(-16),T=it(_,t.__wbindgen_export4),U=p,O=y(a,t.__wbindgen_export4,t.__wbindgen_export5),q=p,P=y(c,t.__wbindgen_export4,t.__wbindgen_export5),B=p,at=y(i,t.__wbindgen_export4,t.__wbindgen_export5),ct=p,dt=y(x,t.__wbindgen_export4,t.__wbindgen_export5),st=p;t.encode_exr(M,T,U,n,e,o,O,q,P,B,at,ct,d,s,g,w,b,dt,st,m,I);var k=r().getInt32(M+0,!0),A=r().getInt32(M+4,!0),F=r().getInt32(M+8,!0),R=r().getInt32(M+12,!0);if(R)throw u(F);var z=f(k,A).slice();return t.__wbindgen_export3(k,A*1,1),z}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(w,b,x,n,e,o,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Cn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Vn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Hn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(_,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Nn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=W(_,t.__wbindgen_export4),x=p,m=W(a,t.__wbindgen_export4),I=p;t.encode_prores_444_sample_cbr_rgb16_lut(w,b,x,n,e,o,m,I);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Gn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(w,b,x,n,e,o,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.encode_prores_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Yn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(_,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Kn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=W(_,t.__wbindgen_export4),x=p,m=W(a,t.__wbindgen_export4),I=p;t.encode_prores_sample_cbr_rgb16_lut(w,b,x,n,e,o,m,I);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Zn(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=y(_,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.exr_sequence_filename(x,m,I,n,e,o);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function $n(_,n,e,o,a,c,i,d){let s,g;try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(_,t.__wbindgen_export4),R=p,z=l(o,t.__wbindgen_export4),M=p,T=y(d,t.__wbindgen_export4,t.__wbindgen_export5),U=p;t.fit_sizing(A,F,R,n,e,z,M,a,c,i,T,U);var w=r().getInt32(A+0,!0),b=r().getInt32(A+4,!0),x=r().getInt32(A+8,!0),m=r().getInt32(A+12,!0),I=w,k=b;if(m)throw I=0,k=0,u(x);return s=I,g=k,j(I,k)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function tr(_){let n=t.initThreadPool(_);return u(n)}function er(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_arw(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function nr(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_cr2(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function rr(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_cr3(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function _r(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_dng(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function or(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_dpx(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function ir(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_exr(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function ar(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.inspect_isobmff(v(_),n,o,a);return u(c)}function cr(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_tiff(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function dr(_,n){let e=t.inspect_wav(v(_),n);return u(e)}function sr(_,n){let e=t.is_arriraw12_mxf(v(_),n);return u(e)}function pr(_,n){let e=t.is_arriraw_mxf(v(_),n);return u(e)}function gr(_,n){let e=t.is_crm(v(_),n);return u(e)}function ur(_,n){let e=t.is_prores_mxf(v(_),n);return u(e)}function wr(_,n){let e=t.is_vc3_mxf(v(_),n);return u(e)}function br(_,n){let e=t.is_xavc_mxf(v(_),n);return u(e)}function lr(_,n){let e=t.is_xocn_mxf(v(_),n);return u(e)}function fr(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.list_isobmff_segments(v(_),n,o,a);return u(c)}function vr(_,n){let e=t.list_mxf_segments(v(_),n);return u(e)}function xr(_,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_frames(v(_),e,o);return u(a)}function Ir(_,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_segments(v(_),e,o);return u(a)}function yr(_,n){let e=t.list_wav_segments(v(_),n);return u(e)}function mr(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(_,t.__wbindgen_export4),m=p,I=S(n,t.__wbindgen_export4),k=p;t.mux_prores_4444_alpha_samples(b,x,m,I,k,e,o,a,c);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hr(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(_,t.__wbindgen_export4),m=p,I=S(n,t.__wbindgen_export4),k=p;t.mux_prores_samples(b,x,m,I,k,e,o,a,c);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kr(_,n,e,o,a,c,i,d,s,g,w,b){try{let F=t.__wbindgen_add_to_stack_pointer(-16),R=l(_,t.__wbindgen_export4),z=p,M=S(n,t.__wbindgen_export4),T=p,U=y(i,t.__wbindgen_export4,t.__wbindgen_export5),O=p;t.mux_prores_samples_full(F,R,z,M,T,e,o,a,c,U,O,d,s,g,w,b);var x=r().getInt32(F+0,!0),m=r().getInt32(F+4,!0),I=r().getInt32(F+8,!0),k=r().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 Ar(_,n,e,o){let a=t.mxf_au_run(v(_),n,e,o);return u(a)}function Fr(_,n){let e=t.mxf_frame_index(v(_),n);return u(e)}function jr(_,n){let e=t.mxf_gop_map(v(_),n);return u(e)}function Mr(_,n){let e=t.mxf_h264_kind(v(_),n);return u(e)}function Rr(_,n){let e,o;try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,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 a=r().getInt32(w+0,!0),c=r().getInt32(w+4,!0),i=r().getInt32(w+8,!0),d=r().getInt32(w+12,!0),s=a,g=c;if(d)throw s=0,g=0,u(i);return e=s,o=g,j(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,o,1)}}function zr(_,n,e,o,a){let c=y(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.plan_isobmff_trim_reader(v(_),n,e,o,c,i);return u(d)}function Wr(_){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=y(_,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,w,b);var o=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),c=r().getInt32(g+8,!0),i=r().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,u(c);return n=d,e=s,j(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Tr(_,n,e,o){let a=t.plan_mxf_trim(v(_),n,e,o);return u(a)}function Sr(_,n,e,o,a,c,i,d){let s,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(_,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=l(e,t.__wbindgen_export4),R=p,z=l(o,t.__wbindgen_export4),M=p,T=J(a,t.__wbindgen_export4),U=p,O=J(c,t.__wbindgen_export4),q=p,P=J(i,t.__wbindgen_export4),B=p;t.plan_r3d_compact(x,m,I,k,A,F,R,z,M,T,U,O,q,P,B,d);var w=r().getInt32(x+0,!0),b=r().getInt32(x+4,!0);return s=w,g=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Ur(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(_,t.__wbindgen_export4),I=p;t.plan_wav_trim(x,m,I,n,e,o);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function Or(_,n,e,o,a){let c=t.plan_wav_trim_reader(v(_),n,e,o,a);return u(c)}function Lr(_,n,e,o){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=y(o,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=t.prepare_isobmff(v(_),n,a,c,i,d);return u(s)}function qr(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.prepare_mxf(v(_),n,o,a);return u(c)}function Er(_,n,e){let o=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.prepare_r3d(v(_),o,a,c,i);return u(d)}function Dr(_,n,e,o){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.prepare_wav(v(_),n,a,c,o);return u(i)}function Pr(_){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.probe_mov(g,w,b);var o=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),c=r().getInt32(g+8,!0),i=r().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,u(c);return n=d,e=s,j(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Br(_,n){let e=t.probe_mxf(v(_),n);return u(e)}function Cr(_,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.probe_r3d(v(_),e,o);return u(a)}function Vr(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.prores_band_info(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=$(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Hr(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.prores_raw_container_color(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Nr(){t.prores_reset_rate_control()}function Gr(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.r3d_gpu_develop_params(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xr(_,n,e){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.r3d_index_ranges(i,d,s,n,e);var o=r().getInt32(i+0,!0),a=r().getInt32(i+4,!0),c=$(o,a).slice();return t.__wbindgen_export3(o,a*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Yr(_){let n=l(_,t.__wbindgen_export4),e=p;return t.r3d_is_helium(n,e)!==0}function Jr(_){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,w,b);var o=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),c=r().getInt32(g+8,!0),i=r().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,u(c);return n=d,e=s,j(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Kr(_,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.read_arriraw_unit_correction(c,i,d,n);var e=r().getInt32(c+0,!0),o=r().getInt32(c+4,!0),a=qt(e,o).slice();return t.__wbindgen_export3(e,o*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qr(_,n,e,o,a,c,i){let d,s;try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(_,t.__wbindgen_export4),F=p,R=l(o,t.__wbindgen_export4),z=p,M=y(i,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.recover_reframe(k,A,F,n,e,R,z,a,c,M,T);var g=r().getInt32(k+0,!0),w=r().getInt32(k+4,!0),b=r().getInt32(k+8,!0),x=r().getInt32(k+12,!0),m=g,I=w;if(x)throw m=0,I=0,u(b);return d=m,s=I,j(m,I)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,s,1)}}function Zr(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=W(_,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba16(b,x,m,n,e,o,a,I,k);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=ut(i,d).slice();return t.__wbindgen_export3(i,d*2,2),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $r(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(_,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba8(b,x,m,n,e,o,a,I,k);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function t_(){t.reset_dci_rate_state()}function e_(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.resize_luma_area(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function n_(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p,m=y(a,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.rgba8_to_xyz12(w,b,x,n,e,o,m,I);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=ut(c,i).slice();return t.__wbindgen_export3(c,i*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function r_(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=W(_,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=S(e,t.__wbindgen_export4),R=p,z=y(o,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_crop(x,m,I,k,A,F,R,z,M);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function __(_,n,e){let o,a;try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=W(_,t.__wbindgen_export4),m=p,I=l(n,t.__wbindgen_export4),k=p,A=y(e,t.__wbindgen_export4,t.__wbindgen_export5),F=p;t.shot_ramp(b,x,m,I,k,A,F);var c=r().getInt32(b+0,!0),i=r().getInt32(b+4,!0),d=r().getInt32(b+8,!0),s=r().getInt32(b+12,!0),g=c,w=i;if(s)throw g=0,w=0,u(d);return o=g,a=w,j(g,w)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(o,a,1)}}function o_(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=W(_,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=S(e,t.__wbindgen_export4),R=p,z=y(o,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_scan(x,m,I,k,A,F,R,z,M);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function i_(_,n,e,o){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=y(e,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=y(o,t.__wbindgen_export4,t.__wbindgen_export5),g=p,w=t.trim_r3d(v(_),a,c,i,d,s,g);return u(w)}function a_(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.vc3_band_info(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=$(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function c_(_){t.video_close(_)}function d_(_,n,e,o){let a=t.video_decode(_,n,e,o);return u(a)}function s_(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.video_frame_index_isobmff_reader(v(_),n,o,a);return u(c)}function p_(_,n){let e=t.video_open(v(_),n);return u(e)}var Z=class _{static __wrap(n){let e=Object.create(_.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 g_(_){t.wbg_rayon_start_worker(_)}function u_(_,n,e){let o=t.xavc_au(v(_),n,e);return u(o)}function w_(_,n){let e=t.xavc_frame_count(v(_),n);return u(e)}function b_(_,n){let e=t.xocn_frame_count(v(_),n);return u(e)}function l_(_){let n=l(_,t.__wbindgen_export4),e=p;return t.xocn_index_prefix_len(n,e)>>>0}function f_(_){let n=l(_,t.__wbindgen_export4),e=p;return t.xocn_preview_prefix_len(n,e)>>>0}function kt(_){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_copy_to_typed_array_c5728021fabd0236:function(e,o,a){new Uint8Array(h(a).buffer,h(a).byteOffset,h(a).byteLength).set(f(e,o))},__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(Mt)},__wbg___wbindgen_rethrow_858623e73c3311dc:function(e){throw u(e)},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,o){throw new Error(j(e,o))},__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 o=h(e).buffer;return v(o)},__wbg_call_0e855b388e315e17:function(){return tt(function(e,o,a,c){let i=h(e).call(h(o),h(a),h(c));return v(i)},arguments)},__wbg_call_5575218572ead796:function(){return tt(function(e,o,a){let c=h(e).call(h(o),h(a));return v(c)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return tt(function(e,o,a,c,i){let d=h(e).call(h(o),h(a),h(c),h(i));return v(d)},arguments)},__wbg_data_23c14f7d1102d077:function(e){let o=h(e).data;return v(o)},__wbg_instanceof_Window_0d356b88a2f77c42:function(e){let o;try{o=h(e)instanceof Window}catch{o=!1}return o},__wbg_length_589238bdcf171f0e:function(e){return h(e).length},__wbg_new_476e05fb84d8e4f3:function(e){let o=new Int32Array(h(e));return v(o)},__wbg_new_81880fb5002cb255:function(e){let o=new Uint8Array(h(e));return v(o)},__wbg_new_f85beb941dc6d8aa:function(e,o){try{var a={a:e,b:o},c=(d,s)=>{let g=a.a;a.a=0;try{return lt(g,a.b,d,s)}finally{a.a=g}};let i=new Promise(c);return v(i)}finally{a.a=0}},__wbg_new_typed_00a409eb4ec4f2d9:function(e,o){try{var a={a:e,b:o},c=(d,s)=>{let g=a.a;a.a=0;try{return lt(g,a.b,d,s)}finally{a.a=g}};let i=new Promise(c);return v(i)}finally{a.a=0}},__wbg_new_worker_e68fc8188cc230b5:function(e,o){let a=new Worker(j(e,o));return v(a)},__wbg_of_8737c43050b5546e:function(e,o,a){let c=Array.of(h(e),h(o),h(a));return v(c)},__wbg_postMessage_0162be6e48cf631e:function(){return tt(function(e,o){h(e).postMessage(h(o))},arguments)},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,o,a){Uint8Array.prototype.set.call(f(e,o),h(a))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let o=h(e).queueMicrotask;return v(o)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(h(e))},__wbg_resolve_d82363d90af6928a:function(e){let o=Promise.resolve(h(e));return v(o)},__wbg_set_onmessage_d05709471e546dca:function(e,o){h(e).onmessage=h(o)},__wbg_startWorkers_8b582d57e92bd2d4:function(e,o,a){let c=bt(u(e),u(o),Z.__wrap(a));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,o,a){let c=h(e).then(h(o),h(a));return v(c)},__wbg_then_591b6b3a75ee817a:function(e,o){let a=h(e).then(h(o));return v(a)},__wbg_then_c768c7c3e60c20ef:function(e,o){let a=h(e).then(h(o));return v(a)},__wbg_value_2f34afb824ffcd9a:function(e){let o=h(e).value;return v(o)},__wbg_waitAsync_134f0b4abc50f1f2:function(e,o,a){let c=Atomics.waitAsync(h(e),o>>>0,a);return v(c)},__wbg_waitAsync_485a8d512901fd53:function(){let e=Atomics.waitAsync;return v(e)},__wbindgen_cast_0000000000000001:function(e,o){let a=pt(e,o,St);return v(a)},__wbindgen_cast_0000000000000002:function(e,o){let a=pt(e,o,Ot);return v(a)},__wbindgen_cast_0000000000000003:function(e,o){let a=pt(e,o,Ut);return v(a)},__wbindgen_cast_0000000000000004:function(e){return v(e)},__wbindgen_cast_0000000000000005:function(e,o){let a=f(e,o);return v(a)},__wbindgen_cast_0000000000000006:function(e,o){let a=j(e,o);return v(a)},__wbindgen_cast_0000000000000007:function(e,o){var a=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),v(a)},__wbindgen_link_ec60efd85dcca315:function(e){let o=`onmessage = function (ev) {
|
|
4
|
+
let [ia, index, value] = ev.data;
|
|
5
|
+
ia = new Int32Array(ia.buffer);
|
|
6
|
+
let result = Atomics.wait(ia, index, value);
|
|
7
|
+
postMessage(result);
|
|
8
|
+
};
|
|
9
|
+
`,a=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(o):URL.createObjectURL(new Blob([o],{type:"text/javascript"})),c=y(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p;r().setInt32(e+4,i,!0),r().setInt32(e+0,c,!0)},__wbindgen_object_clone_ref:function(e){let o=h(e);return v(o)},__wbindgen_object_drop_ref:function(e){u(e)},memory:_||new WebAssembly.Memory({initial:85,maximum:65536,shared:!0})}}}function St(_,n,e){t.__wasm_bindgen_func_elem_868(_,n,v(e))}function Ut(_,n,e){t.__wasm_bindgen_func_elem_3536(_,n,v(e))}function Ot(_,n,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_3534(c,_,n,v(e));var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);if(a)throw u(o)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function lt(_,n,e,o){t.__wasm_bindgen_func_elem_3551(_,n,v(e),v(o))}var ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_exrbench_free(_,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_exrstreamencoder_free(_,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_proresbench_free(_,1)),It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_proresmovencoder_free(_,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_proresmovwriter_free(_,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_wbg_rayon_poolbuilder_free(_,1));function v(_){Y===L.length&&L.push(L.length+1);let n=Y;return Y=L[n],L[n]=_,n}var ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbindgen_export2(_.a,_.b));function Lt(_){_<1028||(L[_]=Y,Y=_)}function qt(_,n){return _=_>>>0,At().subarray(_/8,_/8+n)}function ut(_,n){return _=_>>>0,Ft().subarray(_/2,_/2+n)}function $(_,n){return _=_>>>0,jt().subarray(_/4,_/4+n)}function f(_,n){return _=_>>>0,D().subarray(_/1,_/1+n)}var C=null;function r(){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 j(_,n){return Pt(_>>>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 jt(){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(_){return L[_]}function tt(_,n){try{return _.apply(this,n)}catch(e){t.__wbindgen_export(v(e))}}var L=new Array(1024).fill(void 0);L.push(void 0,null,!0,!1);var Y=L.length;function E(_){return _==null}function pt(_,n,e){let o={a:_,b:n,cnt:1},a=(...c)=>{o.cnt++;let i=o.a;o.a=0;try{return e(i,o.b,...c)}finally{o.a=i,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--o.cnt===0&&(t.__wbindgen_export2(o.a,o.b),o.a=0,ht.unregister(o))},ht.register(a,o,o),a}function W(_,n){let e=n(_.length*2,2)>>>0;return Ft().set(_,e/2),p=_.length,e}function S(_,n){let e=n(_.length*4,4)>>>0;return jt().set(_,e/4),p=_.length,e}function l(_,n){let e=n(_.length*1,1)>>>0;return D().set(_,e/1),p=_.length,e}function it(_,n){let e=n(_.length*4,4)>>>0;return Et().set(_,e/4),p=_.length,e}function J(_,n){let e=n(_.length*8,8)>>>0;return At().set(_,e/8),p=_.length,e}function y(_,n,e){if(e===void 0){let d=Q.encode(_),s=n(d.length,1)>>>0;return D().subarray(s,s+d.length).set(d),p=d.length,s}let o=_.length,a=n(o,1)>>>0,c=D(),i=0;for(;i<o;i++){let d=_.charCodeAt(i);if(d>127)break;c[a+i]=d}if(i!==o){i!==0&&(_=_.slice(i)),a=e(a,o,o=i+_.length*3,1)>>>0;let d=D().subarray(a+i,a+o),s=Q.encodeInto(_,d);i+=s.written,a=e(a,o,i,1)>>>0}return p=i,a}function u(_){let n=h(_);return Lt(_),n}var K=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;K&&K.decode();var Dt=2146435072,gt=0;function Pt(_,n){return gt+=n,gt>=Dt&&(K=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),K.decode(),gt=n),K.decode(D().slice(_,_+n))}var Q=typeof TextEncoder<"u"?new TextEncoder:void 0;Q&&(Q.encodeInto=function(_,n){let e=Q.encode(_);return n.set(e),{read:_.length,written:e.length}});var p=0,Mt,Bt,t;function Rt(_,n,e){if(Bt=_,t=_.exports,Mt=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(_,n){if(typeof Response=="function"&&_ instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(_,n)}catch(a){if(_.ok&&e(_.type)&&_.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",a);else throw a}let o=await _.arrayBuffer();return await WebAssembly.instantiate(o,n)}else{let o=await WebAssembly.instantiate(_,n);return o instanceof WebAssembly.Instance?{instance:o,module:_}:o}function e(o){switch(o){case"basic":case"cors":case"default":return!0}return!1}}function v_(_,n){if(t!==void 0)return t;let e;_!==void 0&&(Object.getPrototypeOf(_)===Object.prototype?{module:_,memory:n,thread_stack_size:e}=_:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let o=kt(n);_ instanceof WebAssembly.Module||(_=new WebAssembly.Module(_));let a=new WebAssembly.Instance(_,o);return Rt(a,_,e)}async function x_(_,n){if(t!==void 0)return t;let e;_!==void 0&&(Object.getPrototypeOf(_)===Object.prototype?{module_or_path:_,memory:n,thread_stack_size:e}=_:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),_===void 0&&(_=new URL("media_core_bg.wasm",import.meta.url));let o=kt(n);(typeof _=="string"||typeof Request=="function"&&_ instanceof Request||typeof URL=="function"&&_ instanceof URL)&&(_=fetch(_));let{instance:a,module:c}=await Ct(await _,o);return Rt(a,c,e)}export{et as ExrBench,nt as ExrStreamEncoder,rt as ProResBench,_t as ProResMovEncoder,ot 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 color_cst,$t as dci_code_full_depth,te as dci_frame_cap,ee as dci_gpu_colour_patch,ne as dci_gpu_colour_tables,re as dci_last_pass_caps,_e as dci_legal_rates,oe as dci_mq_bench,ie as dci_pack_tier1,ae as dci_stage_rgba8,ce as dci_transform_only,de as decode_arriraw12_luma,se as decode_arriraw12_mxf,pe as decode_arriraw12_preview,ge as decode_arriraw12_rgba,ue as decode_arriraw_luma,we as decode_arriraw_mxf,be as decode_arriraw_preview,le as decode_arriraw_preview_gray,fe as decode_arriraw_preview_meta,ve as decode_arriraw_rgba,xe as decode_arriraw_rgba_meta,Ie as decode_arw_preview,ye as decode_arw_rgba,me as decode_audio_pcm,he as decode_bmp_rgba,ke as decode_braw_gen5log,Ae as decode_braw_luma,Fe as decode_braw_preview,je as decode_braw_rgba,Me as decode_cr2_preview,Re as decode_cr2_rgba,ze as decode_cr3_rgba,We as decode_crm,Te as decode_dng_preview,Se as decode_dng_rgba,Ue as decode_dpx_preview,Oe as decode_dpx_rgba,Le as decode_dv_luma,qe as decode_dv_preview,Ee as decode_dv_rgba,De as decode_exr_linear,Pe as decode_exr_preview,Be as decode_exr_rgba,Ce as decode_gif_rgba,Ve as decode_heic_rgba,He as decode_j2k_luma,Ne as decode_j2k_preview,Ge as decode_j2k_rgba,Xe as decode_jpeg_rgba,Ye as decode_mpeg2_luma,Je as decode_mpeg2_preview,Ke as decode_mpeg2_rgba,Qe as decode_png_rgba,Ze as decode_prores_band_rgba,$e as decode_prores_luma,tn as decode_prores_mxf,en as decode_prores_preview,nn as decode_prores_raw_acescct,rn as decode_prores_raw_luma,_n as decode_prores_raw_preview,on as decode_prores_raw_rec2020,an as decode_prores_raw_rgba,cn as decode_prores_raw_tier,dn as decode_prores_rgb16,sn as decode_prores_rgba,pn as decode_prores_thumb_dc32,gn as decode_psd_rgba,un as decode_r3d_luma,wn as decode_r3d_preview,bn as decode_r3d_preview_clip,ln as decode_r3d_rgb16,fn as decode_r3d_rgba,vn as decode_r3d_rgba_clip,xn as decode_tga_rgba,In as decode_tiff_preview,yn as decode_tiff_rgba,mn as decode_vc3_band_rgba,hn as decode_vc3_luma,kn as decode_vc3_mxf,An as decode_vc3_preview,Fn as decode_vc3_rgba,jn as decode_webp_rgba,Mn as decode_xocn_index_luma,Rn as decode_xocn_luma,zn as decode_xocn_mxf,Wn as decode_xocn_preview,Tn as decode_xocn_preview_rec709,Sn as decode_xocn_rgb16,Un as decode_xocn_rgba,x_ as default,On as encode_dci_j2c,Ln as encode_dci_j2c_rgb,qn as encode_dci_j2c_rgba8,En as encode_dci_j2c_staged,Dn as encode_dci_j2c_staged_modelled,Pn as encode_exr,Bn as encode_prores_4444_alpha_mov_rgba,Cn as encode_prores_4444_alpha_sample_q,Vn as encode_prores_444_sample_cbr,Hn as encode_prores_444_sample_cbr_rgb16,Nn as encode_prores_444_sample_cbr_rgb16_lut,Gn as encode_prores_mov_rgba,Xn as encode_prores_rgba,Yn as encode_prores_sample_cbr,Jn as encode_prores_sample_cbr_rgb16,Kn as encode_prores_sample_cbr_rgb16_lut,Qn as encode_prores_sample_q,Zn as exr_sequence_filename,$n as fit_sizing,v_ as initSync,tr as initThreadPool,er as inspect_arw,nr as inspect_cr2,rr as inspect_cr3,_r as inspect_dng,or as inspect_dpx,ir as inspect_exr,ar as inspect_isobmff,cr as inspect_tiff,dr as inspect_wav,sr as is_arriraw12_mxf,pr as is_arriraw_mxf,gr as is_crm,ur as is_prores_mxf,wr as is_vc3_mxf,br as is_xavc_mxf,lr as is_xocn_mxf,fr as list_isobmff_segments,vr as list_mxf_segments,xr as list_r3d_frames,Ir as list_r3d_segments,yr as list_wav_segments,mr as mux_prores_4444_alpha_samples,hr as mux_prores_samples,kr as mux_prores_samples_full,Ar as mxf_au_run,Fr as mxf_frame_index,jr as mxf_gop_map,Mr as mxf_h264_kind,Rr as plan_isobmff_trim,zr as plan_isobmff_trim_reader,Wr as plan_mxf_compact_trim,Tr as plan_mxf_trim,Sr as plan_r3d_compact,Ur as plan_wav_trim,Or as plan_wav_trim_reader,Lr as prepare_isobmff,qr as prepare_mxf,Er as prepare_r3d,Dr as prepare_wav,Pr as probe_mov,Br as probe_mxf,Cr as probe_r3d,Vr as prores_band_info,Hr as prores_raw_container_color,Nr as prores_reset_rate_control,Gr as r3d_gpu_develop_params,Xr as r3d_index_ranges,Yr as r3d_is_helium,Jr as read_arriraw_fcs,Kr as read_arriraw_unit_correction,Qr as recover_reframe,Zr as resample_rgba16,$r as resample_rgba8,t_ as reset_dci_rate_state,e_ as resize_luma_area,n_ as rgba8_to_xyz12,r_ as shot_crop,__ as shot_ramp,o_ as shot_scan,i_ as trim_r3d,a_ as vc3_band_info,c_ as video_close,d_ as video_decode,s_ as video_frame_index_isobmff_reader,p_ as video_open,Z as wbg_rayon_PoolBuilder,g_ as wbg_rayon_start_worker,u_ as xavc_au,w_ as xavc_frame_count,b_ as xocn_frame_count,l_ as xocn_index_prefix_len,f_ as xocn_preview_prefix_len};
|
|
@@ -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 $}from"./chunk-AACY2V3L.js";import{b as J}from"./chunk-3D3Z4TBR.js";import{b as j}from"./chunk-2BPR6LK6.js";import{Ga as N,Ha as l,L as M,Q as P,b as B,ba as D,ca as T,da as E,e as I,ea as L,fa as C,g as S,ha as O,qa as V,ta as W,v as k,va as G}from"./chunk-RJ6JA2LZ.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 se(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 Z(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 H(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=se(o);if(s<0)return e;let c=new DataView(o.buffer,o.byteOffset,o.byteLength),[f,te]=Z(c,s+16);if(f===null||f<16||f>65536)return e;let F=s+16+te;if(F+f>o.length)return e;let A=[],ne=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(ne,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]=Z(y,16);if(R===null)continue;let m=16+v,_,x;if(p.length<m+64){let oe=Math.min(m+64,r-u),h=await t.read(u,oe);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 ae=u+16+v+R+_+x,ie=Math.min(ae+65536,r)-u;e.push({offset:u,length:ie})}return e}function q(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 ce(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 K(t,r,e){let n=q(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 J(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 Q(t,r,e){await l();let n=q(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 H(t)).map(s=>({offset:s.offset,length:s.length}));return{fileSize:t.fileSize,structuralRanges:o,essenceRanges:ce(o,t.fileSize),trimInputs:n,wholeFileFallback:!0}}async function X(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 X(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:$(e),granularity:"frame",segments:e}},async sparsify(t,r){let e=t.parts[0],n=await Q(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 K(e,r.items,r.handles)},async decode(t,r,e){await l();let n=t.parts[0],a=w(n),i=await re(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 re(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 Y=new WeakMap;async function ue(t,r){if(!N)return null;try{let e=await import("./arriraw-YIJ3BYNN.js");if(!await e.arrirawGpuAvailable())return null;let{parseArrirawGpuPayload:n,arrirawFrameToRgb16:a}=await import("./clip-state-B6JOX3JE.js"),i=t.parts[0],o=Y.get(t)??null,s=await B(w(i),i.fileSize,r,o?.key),c=n(s,o);if(!c)return null;Y.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 ee=new WeakMap;async function re(t){let r=ee.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"),ee.set(t,a),a}export{Me as mxfFormat};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""CONFORM.TOOLS for Nuke Studio / Hiero - the startup script.
|
|
2
|
+
|
|
3
|
+
Nuke Studio / Hiero import every `.py` in `<plugin path>/Python/Startup` at
|
|
4
|
+
launch (`~/.nuke/Python/Startup`, or any folder on `NUKE_PATH`; the older
|
|
5
|
+
`HIERO_PLUGIN_PATH` still works). This file puts its sibling `Python/` folder
|
|
6
|
+
on `sys.path` (where `conformtools_nuke/` and the vendored `ctpeer/` live),
|
|
7
|
+
then adds the CONFORM.TOOLS menu + dockable panel, and connects to the app if
|
|
8
|
+
the user turned on "Connect automatically".
|
|
9
|
+
|
|
10
|
+
Plain Nuke (no Studio / Hiero timeline) has no `hiero.ui`; then nothing is
|
|
11
|
+
installed.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
import os
|
|
15
|
+
import sys
|
|
16
|
+
|
|
17
|
+
_PYTHON = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
18
|
+
if _PYTHON not in sys.path:
|
|
19
|
+
sys.path.insert(0, _PYTHON)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _start():
|
|
23
|
+
try:
|
|
24
|
+
import hiero # type: ignore
|
|
25
|
+
import hiero.ui # type: ignore # noqa: F401 (absent in plain Nuke)
|
|
26
|
+
except ImportError:
|
|
27
|
+
return None
|
|
28
|
+
from conformtools_nuke import panel
|
|
29
|
+
|
|
30
|
+
ctl = panel.controller(hiero)
|
|
31
|
+
try:
|
|
32
|
+
panel.install_ui(ctl, hiero)
|
|
33
|
+
except Exception as e: # the timeline app must start even if the panel cannot
|
|
34
|
+
print(f"[CONFORM.TOOLS] panel unavailable: {e}", file=sys.stderr)
|
|
35
|
+
try:
|
|
36
|
+
hiero.core.events.registerInterest("kAfterProjectLoad", lambda event: ctl.project_changed())
|
|
37
|
+
except Exception:
|
|
38
|
+
pass
|
|
39
|
+
if ctl.auto_connect:
|
|
40
|
+
ctl.connect()
|
|
41
|
+
return ctl
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
_start()
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""CONFORM.TOOLS host plugin for Foundry Nuke Studio / Hiero.
|
|
2
|
+
|
|
3
|
+
`verbs.NukePeer` answers the host-bridge capability verbs from `hiero.core`;
|
|
4
|
+
`panel.Controller` owns the bridge connection; `panel.install_ui` adds the
|
|
5
|
+
dockable status panel and the CONFORM.TOOLS menu. The startup script
|
|
6
|
+
(`Python/Startup/conformtools_nuke_startup.py`) wires it up when Nuke Studio
|
|
7
|
+
or Hiero starts.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
__version__ = "0.1.0"
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"""The panel's controller (the bridge connection + one preference), the
|
|
2
|
+
dockable status panel, and the menu entries.
|
|
3
|
+
|
|
4
|
+
Every `hiero` call a request makes goes through
|
|
5
|
+
`hiero.core.executeInMainThreadWithResult` (Foundry: methods on objects
|
|
6
|
+
attached to a project throw off the main thread); the bridge client's own
|
|
7
|
+
threads only wait. Requests reach `verbs.NukePeer` methods by exact name
|
|
8
|
+
through `ctpeer.Dispatcher` and nothing else is ever run.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
import json
|
|
14
|
+
import os
|
|
15
|
+
import sys
|
|
16
|
+
from typing import Any, Callable, Dict, List, Optional
|
|
17
|
+
|
|
18
|
+
from ctpeer import BridgeClient
|
|
19
|
+
|
|
20
|
+
from . import __version__
|
|
21
|
+
from .verbs import CAPABILITIES, OPTIONAL_VERBS, NukePeer
|
|
22
|
+
|
|
23
|
+
TITLE = "CONFORM.TOOLS"
|
|
24
|
+
PANEL_ID = "app.conform.tools.panel"
|
|
25
|
+
PREFS_ENV = "CONFORM_TOOLS_NUKE_PREFS"
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def prefs_path() -> str:
|
|
29
|
+
return os.environ.get(PREFS_ENV) or os.path.join(os.path.expanduser("~"), ".conformtools", "nuke_panel.json")
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def load_prefs(path: Optional[str] = None) -> Dict[str, Any]:
|
|
33
|
+
try:
|
|
34
|
+
with open(path or prefs_path(), "r", encoding="utf-8") as f:
|
|
35
|
+
data = json.load(f)
|
|
36
|
+
return data if isinstance(data, dict) else {}
|
|
37
|
+
except (OSError, ValueError):
|
|
38
|
+
return {}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def save_prefs(prefs: Dict[str, Any], path: Optional[str] = None) -> None:
|
|
42
|
+
path = path or prefs_path()
|
|
43
|
+
os.makedirs(os.path.dirname(path), exist_ok=True)
|
|
44
|
+
with open(path, "w", encoding="utf-8") as f:
|
|
45
|
+
json.dump(prefs, f, indent=2)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class Controller:
|
|
49
|
+
def __init__(self, hiero: Any, client_factory: Callable[..., BridgeClient] = BridgeClient,
|
|
50
|
+
prefs_file: Optional[str] = None, read_pairing: Optional[Callable[[], Dict[str, Any]]] = None):
|
|
51
|
+
self.hiero = hiero
|
|
52
|
+
self.client_factory = client_factory
|
|
53
|
+
self.prefs_file = prefs_file
|
|
54
|
+
self.read_pairing = read_pairing
|
|
55
|
+
self.client: Optional[BridgeClient] = None
|
|
56
|
+
self.peer: Optional[NukePeer] = None
|
|
57
|
+
self.lines: List[str] = []
|
|
58
|
+
self.listeners: List[Callable[[str, str], None]] = []
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def auto_connect(self) -> bool:
|
|
62
|
+
return bool(load_prefs(self.prefs_file).get("auto_connect", False))
|
|
63
|
+
|
|
64
|
+
def set_auto_connect(self, on: bool) -> None:
|
|
65
|
+
prefs = load_prefs(self.prefs_file)
|
|
66
|
+
prefs["auto_connect"] = bool(on)
|
|
67
|
+
save_prefs(prefs, self.prefs_file)
|
|
68
|
+
|
|
69
|
+
def log(self, line: str) -> None:
|
|
70
|
+
self.lines = (self.lines + [line])[-200:]
|
|
71
|
+
print(f"[{TITLE}] {line}", file=sys.stderr)
|
|
72
|
+
|
|
73
|
+
def _on_state(self, state: str, detail: str) -> None:
|
|
74
|
+
for fn in list(self.listeners):
|
|
75
|
+
try:
|
|
76
|
+
fn(state, detail)
|
|
77
|
+
except Exception:
|
|
78
|
+
pass
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def running(self) -> bool:
|
|
82
|
+
return self.client is not None
|
|
83
|
+
|
|
84
|
+
def host_info(self) -> Dict[str, Any]:
|
|
85
|
+
env = getattr(self.hiero.core, "env", {}) or {}
|
|
86
|
+
version = str(env.get("VersionString") or env.get("VersionMajor") or "")
|
|
87
|
+
return {"id": "nuke", "name": "Nuke Studio", "version": version, "platform": sys.platform, "plugin_version": __version__}
|
|
88
|
+
|
|
89
|
+
def run_on_main(self, fn: Callable[[], Any]) -> Any:
|
|
90
|
+
return self.hiero.core.executeInMainThreadWithResult(fn)
|
|
91
|
+
|
|
92
|
+
def connect(self) -> BridgeClient:
|
|
93
|
+
if self.client is not None:
|
|
94
|
+
return self.client
|
|
95
|
+
self.peer = NukePeer(self.hiero)
|
|
96
|
+
kwargs: Dict[str, Any] = {}
|
|
97
|
+
if self.read_pairing is not None:
|
|
98
|
+
kwargs["read_pairing"] = self.read_pairing
|
|
99
|
+
self.client = self.client_factory(
|
|
100
|
+
host=self.host_info(), capabilities=CAPABILITIES, optional_verbs=OPTIONAL_VERBS, verbs=self.peer.verbs(),
|
|
101
|
+
run_on_main=self.run_on_main, log=self.log, on_state=self._on_state, **kwargs)
|
|
102
|
+
self.client.start()
|
|
103
|
+
return self.client
|
|
104
|
+
|
|
105
|
+
def disconnect(self) -> None:
|
|
106
|
+
client, self.client = self.client, None
|
|
107
|
+
if client is not None:
|
|
108
|
+
client.stop()
|
|
109
|
+
self._on_state("stopped", "")
|
|
110
|
+
|
|
111
|
+
def status(self) -> str:
|
|
112
|
+
if self.client is None:
|
|
113
|
+
return "Not connected"
|
|
114
|
+
return {"connected": "Connected to CONFORM.TOOLS", "unpaired": "Waiting for the app - turn on its Host Bridge (Settings)",
|
|
115
|
+
"connecting": "Connecting...", "hello": "Connecting...", "refused": f"Refused by the app ({self.client.detail})",
|
|
116
|
+
"closed": "Waiting for the app"}.get(self.client.state, self.client.state)
|
|
117
|
+
|
|
118
|
+
def project_changed(self) -> None:
|
|
119
|
+
if self.peer is not None:
|
|
120
|
+
self.peer.handles.clear()
|
|
121
|
+
if self.client is not None:
|
|
122
|
+
self.client.event("project_changed", {})
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
# ── Qt: the status panel and the menu ──────────────────────────────────────
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def qt() -> Any:
|
|
129
|
+
"""PySide6 (Nuke 16) or PySide2 (Nuke 15), as one namespace."""
|
|
130
|
+
try:
|
|
131
|
+
from PySide6 import QtCore, QtGui, QtWidgets # type: ignore
|
|
132
|
+
action = QtGui.QAction
|
|
133
|
+
except ImportError:
|
|
134
|
+
from PySide2 import QtCore, QtGui, QtWidgets # type: ignore
|
|
135
|
+
action = QtWidgets.QAction
|
|
136
|
+
ns = type("Qt", (), {})()
|
|
137
|
+
ns.QtCore, ns.QtGui, ns.QtWidgets, ns.QAction = QtCore, QtGui, QtWidgets, action
|
|
138
|
+
return ns
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
def build_panel(ctl: Controller, Q: Any) -> Any:
|
|
142
|
+
"""The dockable panel: status line, Connect / Disconnect, the
|
|
143
|
+
auto-connect checkbox. Polls the controller on a main-thread QTimer, so
|
|
144
|
+
no Qt object is ever touched from the bridge's threads."""
|
|
145
|
+
W = Q.QtWidgets
|
|
146
|
+
widget = W.QWidget()
|
|
147
|
+
widget.setObjectName(PANEL_ID)
|
|
148
|
+
widget.setWindowTitle(TITLE)
|
|
149
|
+
layout = W.QVBoxLayout(widget)
|
|
150
|
+
status = W.QLabel(ctl.status())
|
|
151
|
+
button = W.QPushButton("Connect")
|
|
152
|
+
auto = W.QCheckBox("Connect automatically when Nuke Studio starts")
|
|
153
|
+
auto.setChecked(ctl.auto_connect)
|
|
154
|
+
for w in (status, button, auto):
|
|
155
|
+
layout.addWidget(w)
|
|
156
|
+
|
|
157
|
+
def refresh() -> None:
|
|
158
|
+
status.setText(ctl.status())
|
|
159
|
+
button.setText("Disconnect" if ctl.running else "Connect")
|
|
160
|
+
|
|
161
|
+
def toggle() -> None:
|
|
162
|
+
ctl.disconnect() if ctl.running else ctl.connect()
|
|
163
|
+
refresh()
|
|
164
|
+
|
|
165
|
+
button.clicked.connect(toggle)
|
|
166
|
+
auto.toggled.connect(lambda on: ctl.set_auto_connect(bool(on)))
|
|
167
|
+
timer = Q.QtCore.QTimer(widget)
|
|
168
|
+
timer.timeout.connect(refresh)
|
|
169
|
+
timer.start(500)
|
|
170
|
+
widget._ct_refresh = refresh # kept alive with the widget; used by tests
|
|
171
|
+
widget._ct_timer = timer
|
|
172
|
+
return widget
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def install_ui(ctl: Controller, hiero: Any, Q: Optional[Any] = None) -> Dict[str, Any]:
|
|
176
|
+
"""Register the panel with Hiero's window manager (Window menu, dockable)
|
|
177
|
+
and add CONFORM.TOOLS > Connect / Disconnect / Show Panel actions."""
|
|
178
|
+
Q = Q or qt()
|
|
179
|
+
ui = hiero.ui
|
|
180
|
+
app_cls = getattr(Q.QtWidgets, "QApplication", None)
|
|
181
|
+
if app_cls is not None and app_cls.instance() is None:
|
|
182
|
+
raise RuntimeError("no Qt application (Nuke Studio running without a GUI)")
|
|
183
|
+
panel = build_panel(ctl, Q)
|
|
184
|
+
try:
|
|
185
|
+
ui.windowManager().addWindow(panel)
|
|
186
|
+
except Exception as e:
|
|
187
|
+
ctl.log(f"panel not docked: {e}")
|
|
188
|
+
actions = {}
|
|
189
|
+
for label, fn in (("Connect", ctl.connect), ("Disconnect", ctl.disconnect),
|
|
190
|
+
("Show Panel", lambda: _show(ui, panel))):
|
|
191
|
+
act = Q.QAction(f"{label}", None)
|
|
192
|
+
act.triggered.connect(lambda checked=False, f=fn: f())
|
|
193
|
+
try:
|
|
194
|
+
ui.addMenuAction(TITLE, act)
|
|
195
|
+
except Exception as e:
|
|
196
|
+
ctl.log(f"menu action {label} not added: {e}")
|
|
197
|
+
actions[label] = act
|
|
198
|
+
return {"panel": panel, "actions": actions}
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
def _show(ui: Any, panel: Any) -> None:
|
|
202
|
+
try:
|
|
203
|
+
ui.windowManager().showWindow(panel)
|
|
204
|
+
except Exception:
|
|
205
|
+
panel.show()
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
_controller: Optional[Controller] = None
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
def controller(hiero: Any = None) -> Controller:
|
|
212
|
+
global _controller
|
|
213
|
+
if _controller is None:
|
|
214
|
+
if hiero is None:
|
|
215
|
+
import hiero # type: ignore # the real package, inside Nuke Studio only
|
|
216
|
+
_controller = Controller(hiero)
|
|
217
|
+
return _controller
|