conformtools 0.6.4 → 0.6.6
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 +3 -3
- package/dist/account-HDXVTS5T.js +3 -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-D5KPIUSY.js +3 -0
- package/dist/browser/timeline_core_bg.wasm +0 -0
- package/dist/chunk-3OCQA33E.js +3 -0
- package/dist/chunk-3XD6NC4G.js +10 -0
- package/dist/chunk-5JBUCVRI.js +20 -0
- package/dist/chunk-5RSNFPED.js +8 -0
- package/dist/{chunk-BW2NQ54J.js → chunk-5SUGU2YR.js} +1 -1
- package/dist/{chunk-HKP4P6JN.js → chunk-6ML26TIK.js} +1 -1
- package/dist/chunk-7MC7M2Y5.js +3 -0
- package/dist/chunk-AS7IXHYM.js +19 -0
- package/dist/chunk-BL6L5ZBP.js +39 -0
- package/dist/chunk-C5IX63YF.js +3 -0
- package/dist/chunk-EJGVNQ3E.js +8 -0
- package/dist/{chunk-EPZ6NWE4.js → chunk-HGDO3OED.js} +1 -1
- package/dist/chunk-JV7TZDKJ.js +3 -0
- package/dist/chunk-LFJLRLEP.js +3 -0
- package/dist/chunk-NFJHWZJX.js +3 -0
- package/dist/{chunk-WT6NIJCB.js → chunk-NQHQKEP5.js} +1 -1
- package/dist/chunk-NU3X7P4N.js +3 -0
- package/dist/chunk-OJWIBQK4.js +376 -0
- package/dist/chunk-OVUCL3YY.js +5 -0
- package/dist/chunk-PFISREY4.js +3 -0
- package/dist/chunk-PFZVET7S.js +3 -0
- package/dist/chunk-PLRB2YXJ.js +3 -0
- package/dist/chunk-RFIPLBQ4.js +5 -0
- package/dist/chunk-SZD4C5MB.js +6 -0
- package/dist/chunk-TXQR2HI2.js +4 -0
- package/dist/chunk-UKKRZ574.js +7 -0
- package/dist/{chunk-EO5NIBOV.js → chunk-VS3MKKJ5.js} +1 -1
- package/dist/{chunk-42QQI3WX.js → chunk-X53BNWNV.js} +1 -1
- package/dist/{chunk-QTPCU2TF.js → chunk-XNR7M4VX.js} +1 -1
- package/dist/{claude-setup-BM3AAUKR.js → claude-setup-IIWUB4CE.js} +1 -1
- package/dist/cli.js +8 -8
- package/dist/conformtools-analyze +0 -0
- package/dist/conformtools-decode +0 -0
- package/dist/{cr3-wasm-WKWMEK3V.js → cr3-wasm-L2LFY3LM.js} +1 -1
- package/dist/{dng-wasm-Z5OVO4UI.js → dng-wasm-U6NC3MDK.js} +1 -1
- package/dist/{dpx-wasm-QNYXAOAJ.js → dpx-wasm-RMKEUKED.js} +1 -1
- package/dist/engine-P6H5P6HP.js +5 -0
- package/dist/{exr-wasm-BHSBJLQH.js → exr-wasm-LBAOMOZD.js} +1 -1
- 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-SRCJKAYO.js +3 -0
- package/dist/gfx-worker.js +3 -0
- package/dist/h264-3ESGVT6G.js +3 -0
- package/dist/{h264-mxf-MWS7DDV7.js → h264-mxf-NPFS7NGH.js} +1 -1
- package/dist/host-relink-D6CB2VOQ.js +10 -0
- package/dist/hosts-W4AD2MYH.js +3 -0
- package/dist/http.js +3 -2
- package/dist/i2o-transfer +0 -0
- package/dist/inspect-7ASUPU73.js +68 -0
- package/dist/isobmff-SIOE67WL.js +3 -0
- package/dist/mcp.js +7 -8
- package/dist/media-7AUNRKHF.js +3 -0
- package/dist/media_core-Q2PIEV7D.js +9 -0
- package/dist/{media_core_bg-FGAR5KA5.js → media_core_bg-FDL7GJZP.js} +1 -1
- package/dist/mxf-74TTDICM.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-73NR3X6R.js → ops-FSOOBXMV.js} +1 -1
- 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/index.js +5 -5
- package/dist/premiere-uxp/lib/clipmeta.js +6 -6
- package/dist/premiere-uxp/lib/ctx.js +30 -24
- package/dist/premiere-uxp/lib/edit.js +516 -0
- package/dist/premiere-uxp/lib/markers.js +5 -5
- package/dist/premiere-uxp/lib/pairing.js +14 -5
- package/dist/premiere-uxp/lib/premiere.js +10 -1
- package/dist/premiere-uxp/lib/probe.js +102 -0
- package/dist/premiere-uxp/lib/render.js +15 -8
- package/dist/premiere-uxp/lib/session.js +1 -1
- package/dist/premiere-uxp/lib/sizing.js +30 -17
- package/dist/premiere-uxp/lib/time.js +7 -1
- package/dist/premiere-uxp/lib/timeline.js +2 -2
- package/dist/premiere-uxp/lib/verbs.js +3 -2
- package/dist/premiere-uxp/lib/write.js +3 -3
- package/dist/premiere-uxp/manifest.json +1 -1
- package/dist/probe-F7WQHMIA.js +3 -0
- package/dist/r3d-YTLOMC7C.js +3 -0
- package/dist/{r3d-VUOYU2KQ.js → r3d-ZDJ3WURS.js} +1 -1
- package/dist/resolve-bridge.py +1262 -13
- package/dist/{still-4G25EYN5.js → still-ZG2RUQAL.js} +1 -1
- package/dist/store-ZHXLQCGN.js +3 -0
- package/dist/{tiff-wasm-QJPCR7JT.js → tiff-wasm-D2FJ3L56.js} +1 -1
- package/dist/timeline-6DYFDVEH.js +3 -0
- package/dist/timeline_core-IOENXK4Z.js +3 -0
- package/dist/wasm/media_core_bg.wasm +0 -0
- package/dist/wasm-threads/media_core_bg.wasm +0 -0
- package/dist/wav-OWMUGQMM.js +3 -0
- package/package.json +6 -4
- package/dist/chunk-6FVGUJ6L.js +0 -3
- package/dist/chunk-6TM32YIJ.js +0 -7
- package/dist/chunk-BUEIRRNY.js +0 -3
- package/dist/chunk-CL26XMDO.js +0 -3
- package/dist/chunk-DRHOPOC7.js +0 -3
- package/dist/chunk-GXEVALBL.js +0 -3
- package/dist/chunk-JB7PR2TQ.js +0 -3
- package/dist/chunk-QDWB7QU7.js +0 -3
- package/dist/chunk-QTKRMXL5.js +0 -363
- package/dist/chunk-SP5RGDAM.js +0 -3
- package/dist/chunk-TEZP6VEQ.js +0 -3
- package/dist/chunk-Y2BEEOPB.js +0 -3
- package/dist/h264-LIZVHN2W.js +0 -3
- package/dist/inspect-DZF537QL.js +0 -46
- package/dist/isobmff-HM3UPWPZ.js +0 -3
- package/dist/media_core-R5PPN3AY.js +0 -9
- package/dist/mxf-K465SWBN.js +0 -3
- package/dist/onnxruntime-web-stub-PKJ2NZBF.js +0 -3
- package/dist/r3d-RR3FUM6H.js +0 -3
- package/dist/sscd-embed-DHFTEIOC.js +0 -3
- package/dist/sscd-sweep-OYS4XAID.js +0 -3
- package/dist/timeline_core-VK2ZWPCO.js +0 -3
- package/dist/wav-63QF6SCT.js +0 -3
- /package/dist/{arriraw-3GKCR6K2.js → arriraw-YIJ3BYNN.js} +0 -0
- /package/dist/{chunk-WHY3DVXS.js → chunk-D6YDLKSA.js} +0 -0
- /package/dist/{media_core_bg-YK63OUDM.js → media_core_bg-XRBVKQZH.js} +0 -0
- /package/dist/{prores-L4JZZWGH.js → prores-RIG37OIH.js} +0 -0
- /package/dist/{timeline_core_bg-2TYWZ35G.js → timeline_core_bg-JW42YM3G.js} +0 -0
- /package/dist/{udf_bg-A4WEMSAX.js → udf_bg-B37GKRIH.js} +0 -0
|
@@ -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{f as a,g as b,h as c,i as d,j as e,k as f,l as g,m as h,n as i,o as j,p as k,q as l,r as m,s as n,t as o,u as p,v as q}from"./chunk-3XD6NC4G.js";import"./chunk-PFZVET7S.js";import"./chunk-P7OVDUA5.js";import"./chunk-UCMNH6Q6.js";import"./chunk-7MC7M2Y5.js";import"./chunk-VS3MKKJ5.js";import"./chunk-XNR7M4VX.js";import"./chunk-NU3X7P4N.js";import"./chunk-C5IX63YF.js";import"./chunk-3OCQA33E.js";import"./chunk-PLRB2YXJ.js";import"./chunk-PSANHDZM.js";export{a as MEDIA_EXTS,g as bwfAt,q as coverage,e as decodeFrameRgb16,d as decodeFrameRgba,o as factsLine,h as factsText,n as findMedia,p as findText,i as islandsFor,m as nameMatch,l as normName,c as openSource,f as probeMedia,b as siblingParts,k as trimMedia,j as trimSource};
|
|
@@ -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(r,n){return new Promise(e=>{r.addEventListener("message",function _({data:i}){i?.type===n&&(r.removeEventListener("message",_),e(i))})})}wt(self,"wasm_bindgen_worker_init").then(async({init:r,receiver:n})=>{let e=await import("./media_core-Q2PIEV7D.js");await e.default(r),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(n)});var Tt;async function bt(r,n,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");let _={type:"wasm_bindgen_worker_init",init:{module_or_path:r,memory:n},receiver:e.receiver()};Tt=await Promise.all(Array.from({length:e.numThreads()},async()=>{let i=new Worker(new URL("./workerHelpers.js",import.meta.url),{type:"module"});return i.postMessage(_),await wt(i,"wasm_bindgen_worker_ready"),i})),e.build()}var 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,_,i){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=I(i,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.exrbench_new(s,n,e,_,g,u);var c=o().getInt32(s+0,!0),a=o().getInt32(s+4,!0),d=o().getInt32(s+8,!0);if(d)throw w(a);return this.__wbg_ptr=c,ft.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(c,this.__wbg_ptr,n);var e=o().getFloat64(c+0,!0),_=o().getInt32(c+8,!0),i=o().getInt32(c+12,!0);if(i)throw w(_);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_f32_ptr(){return t.exrbench_staging_f32_ptr(this.__wbg_ptr)>>>0}staging_f32_samples(){return t.exrbench_staging_f32_samples(this.__wbg_ptr)>>>0}staging_half_len(){return t.exrbench_staging_half_len(this.__wbg_ptr)>>>0}staging_half_ptr(){return t.exrbench_staging_half_ptr(this.__wbg_ptr)>>>0}zip_stage_block(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(c,this.__wbg_ptr,n);var e=o().getFloat64(c+0,!0),_=o().getInt32(c+8,!0),i=o().getInt32(c+12,!0);if(i)throw w(_);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 a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(a,this.__wbg_ptr);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(n,e,_,i,c,a,d,s,g,u){try{let y=t.__wbindgen_add_to_stack_pointer(-16),k=I(_,t.__wbindgen_export4,t.__wbindgen_export5),A=p,F=I(i,t.__wbindgen_export4,t.__wbindgen_export5),z=p,W=I(c,t.__wbindgen_export4,t.__wbindgen_export5),M=p,T=I(a,t.__wbindgen_export4,t.__wbindgen_export5),U=p,O=I(s,t.__wbindgen_export4,t.__wbindgen_export5),q=p;t.exrstreamencoder_new(y,n,e,k,A,F,z,W,M,T,U,d,O,q,g,u);var b=o().getInt32(y+0,!0),x=o().getInt32(y+4,!0),m=o().getInt32(y+8,!0);if(m)throw w(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=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}rows_remaining(){return t.exrstreamencoder_rows_remaining(this.__wbg_ptr)>>>0}staging_ptr(){return t.exrstreamencoder_staging_ptr(this.__wbg_ptr)>>>0}staging_samples(){return t.exrstreamencoder_staging_samples(this.__wbg_ptr)>>>0}};Symbol.dispose&&(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,_,i){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=I(_,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.proresbench_new(s,n,e,g,u,i);var c=o().getInt32(s+0,!0),a=o().getInt32(s+4,!0),d=o().getInt32(s+8,!0);if(d)throw w(a);return this.__wbg_ptr=c,xt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(c,this.__wbg_ptr,n);var e=o().getFloat64(c+0,!0),_=o().getInt32(c+8,!0),i=o().getInt32(c+12,!0);if(i)throw w(_);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,yt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(n,0)}add_frame_rgba(n){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),a=p;t.proresmovencoder_add_frame_rgba(i,this.__wbg_ptr,c,a);var e=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);if(_)throw w(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(n,e,_,i){let c=t.proresmovencoder_new(n,e,_,i);return this.__wbg_ptr=c,yt.register(this,this.__wbg_ptr,this),this}set_alpha(n){t.proresmovencoder_set_alpha(this.__wbg_ptr,n)}set_bitrate_mbps(n){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,n)}set_qscale(n){t.proresmovencoder_set_qscale(this.__wbg_ptr,n)}};Symbol.dispose&&(_t.prototype[Symbol.dispose]=_t.prototype.free);var ot=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,It.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(n,0)}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(i,this.__wbg_ptr);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(n,e,_,i){let c=t.proresmovwriter_new(n,e,_,i);return this.__wbg_ptr=c,It.register(this,this.__wbg_ptr,this),this}push_frame(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(a,this.__wbg_ptr);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(n){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),a=p;t.proresmovwriter_push_sample(i,this.__wbg_ptr,c,a);var e=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);if(_)throw w(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(n){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(i,this.__wbg_ptr,n);var e=o().getInt32(i+0,!0),_=o().getInt32(i+4,!0);if(_)throw w(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=I(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p;t.proresmovwriter_set_profile(this.__wbg_ptr,e,_)}set_qscale(n){t.proresmovwriter_set_qscale(this.__wbg_ptr,n)}set_start_timecode(n,e){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,n,e)}staging_len(){return t.proresmovwriter_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresmovwriter_staging_ptr(this.__wbg_ptr)>>>0}total_len(){return t.proresmovwriter_total_len(this.__wbg_ptr)}};Symbol.dispose&&(ot.prototype[Symbol.dispose]=ot.prototype.free);function Nt(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),d=p;t.arriraw12_clip_info(c,a,d);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,R(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Gt(r,n,e,_){var i=E(_)?0:I(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let a=t.arriraw_mxf_gpu_frame(v(r),n,e,i,c);return w(a)}function Xt(r,n,e){let _=t.audio_aac_au(v(r),n,e);return w(_)}function Yt(r,n){let e=t.audio_aac_config(v(r),n);return w(e)}function Jt(r,n){let e=t.audio_info(v(r),n);return w(e)}function Kt(r){let n=it(r,t.__wbindgen_export4),e=p;return t.bench_f32_boundary(n,e)}function Qt(r,n,e,_){let i=it(r,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(i,c,n,e,_)}function Zt(r,n){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=I(r,t.__wbindgen_export4,t.__wbindgen_export5),s=p;var e=it(n,t.__wbindgen_export4),_=p;t.color_cst(a,d,s,e,_,v(n));var i=o().getInt32(a+0,!0),c=o().getInt32(a+4,!0);if(c)throw w(i)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(r,n,e){let _=j(r,t.__wbindgen_export4),i=p;return t.dci_code_full_depth(_,i,n,e)}function te(r,n,e){return t.dci_frame_cap(r,n,e)>>>0}function ee(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=I(n,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(d,s,g,u,b);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=ut(e,_).slice();return t.__wbindgen_export3(e,_*2,2),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=I(r,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);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 _=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(_);var r=o().getInt32(_+0,!0),n=o().getInt32(_+4,!0),e=$(r,n).slice();return t.__wbindgen_export3(r,n*4,4),e}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(r,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,r,n);var e=o().getInt32(c+0,!0),_=o().getInt32(c+4,!0),i=$(e,_).slice();return t.__wbindgen_export3(e,_*4,4),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(r){return t.dci_mq_bench(r)>>>0}function ie(r,n,e,_,i,c,a,d,s,g,u){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=S(r,t.__wbindgen_export4),z=p,W=l(n,t.__wbindgen_export4),M=p,T=S(e,t.__wbindgen_export4),U=p,O=S(_,t.__wbindgen_export4),q=p,P=S(i,t.__wbindgen_export4),B=p,at=S(c,t.__wbindgen_export4),ct=p,dt=S(a,t.__wbindgen_export4),st=p,Wt=S(d,t.__wbindgen_export4),jt=p;t.dci_pack_tier1(A,F,z,W,M,T,U,O,q,P,B,at,ct,dt,st,Wt,jt,s,g,u);var b=o().getInt32(A+0,!0),x=o().getInt32(A+4,!0),m=o().getInt32(A+8,!0),y=o().getInt32(A+12,!0);if(y)throw w(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(r,n){let e=t.dci_stage_rgba8(r,n);return w(e)}function ce(r,n,e){let _=j(r,t.__wbindgen_export4),i=p;return t.dci_transform_only(_,i,n,e)}function de(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(d,s,g,u,b);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(r,n,e,_){let i=I(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_arriraw12_mxf(v(r),n,e,i,c);return w(a)}function pe(r,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(s,g,u,b,x,e);var _=o().getInt32(s+0,!0),i=o().getInt32(s+4,!0),c=o().getInt32(s+8,!0),a=o().getInt32(s+12,!0);if(a)throw w(c);var d=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(d,s,g,u,b);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(r,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_luma(s,g,u,n,e);var _=o().getInt32(s+0,!0),i=o().getInt32(s+4,!0),c=o().getInt32(s+8,!0),a=o().getInt32(s+12,!0);if(a)throw w(c);var d=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(r,n,e,_){let i=I(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_arriraw_mxf(v(r),n,e,i,c);return w(a)}function be(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,u,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),d=o().getInt32(g+12,!0);if(d)throw w(a);var s=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,u,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),d=o().getInt32(g+12,!0);if(d)throw w(a);var s=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(r,n,e,_,i,c,a,d,s){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(r,t.__wbindgen_export4),z=p;var g=E(s)?0:J(s,t.__wbindgen_export4),u=p;t.decode_arriraw_preview_meta(A,F,z,n,e,_,i,c,a,d,g,u);var b=o().getInt32(A+0,!0),x=o().getInt32(A+4,!0),m=o().getInt32(A+8,!0),y=o().getInt32(A+12,!0);if(y)throw w(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(r,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_rgba(s,g,u,n,e);var _=o().getInt32(s+0,!0),i=o().getInt32(s+4,!0),c=o().getInt32(s+8,!0),a=o().getInt32(s+12,!0);if(a)throw w(c);var d=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(r,n,e,_,i,c,a,d){try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(r,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,_,i,c,a,s,g);var u=o().getInt32(k+0,!0),b=o().getInt32(k+4,!0),x=o().getInt32(k+8,!0),m=o().getInt32(k+12,!0);if(m)throw w(x);var y=f(u,b).slice();return t.__wbindgen_export3(u,b*1,1),y}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(r,n,e,_){let i=t.decode_audio_pcm(v(r),n,e,_);return w(i)}function Ie(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.decode_braw_gen5log(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function me(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_luma(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_braw_preview(d,s,g,n);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);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(r,n,e,_){let i=I(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_crm(v(r),n,e,i,c);return w(a)}function Me(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dng_preview(d,s,g,n);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dng_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dpx_preview(d,s,g,n);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_linear(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_exr_preview(d,s,g,n);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_png_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(r,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_prores_band_rgba(s,g,u,n,e);var _=o().getInt32(s+0,!0),i=o().getInt32(s+4,!0),c=o().getInt32(s+8,!0),a=o().getInt32(s+12,!0);if(a)throw w(c);var d=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_luma(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(r,n,e,_){let i=I(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_prores_mxf(v(r),n,e,i,c);return w(a)}function De(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_preview(d,s,g,n);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);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(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(d,s,g,n);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(r,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=I(n,t.__wbindgen_export4,t.__wbindgen_export5),x=p,m=l(e,t.__wbindgen_export4),y=p;t.decode_prores_raw_tier(s,g,u,b,x,m,y);var _=o().getInt32(s+0,!0),i=o().getInt32(s+4,!0),c=o().getInt32(s+8,!0),a=o().getInt32(s+12,!0);if(a)throw w(c);var d=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_luma(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_r3d_preview(d,s,g,n);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(r,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(s,g,u,b,x,e);var _=o().getInt32(s+0,!0),i=o().getInt32(s+4,!0),c=o().getInt32(s+8,!0),a=o().getInt32(s+12,!0);if(a)throw w(c);var d=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);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(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(n,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(d,s,g,u,b);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_tiff_preview(d,s,g,n);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(r,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_vc3_band_rgba(s,g,u,n,e);var _=o().getInt32(s+0,!0),i=o().getInt32(s+4,!0),c=o().getInt32(s+8,!0),a=o().getInt32(s+12,!0);if(a)throw w(c);var d=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_luma(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);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(r,n,e,_){let i=I(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_vc3_mxf(v(r),n,e,i,c);return w(a)}function an(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_vc3_preview(d,s,g,n);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.decode_xocn_index_luma(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_luma(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);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(r,n,e,_){let i=I(_,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.decode_xocn_mxf(v(r),n,e,i,c);return w(a)}function gn(r,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_xocn_preview(d,s,g,n);var e=o().getInt32(d+0,!0),_=o().getInt32(d+4,!0),i=o().getInt32(d+8,!0),c=o().getInt32(d+12,!0);if(c)throw w(i);var a=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.decode_xocn_rgb16(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ln(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=j(r,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,u,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),d=o().getInt32(g+12,!0);if(d)throw w(a);var s=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fn(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=j(r,t.__wbindgen_export4),m=p,y=I(e,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.encode_dci_j2c_rgb(b,x,m,n,y,k,_,i,c);var a=o().getInt32(b+0,!0),d=o().getInt32(b+4,!0),s=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw w(s);var u=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vn(r,n,e,_,i){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(n,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.encode_dci_j2c_rgba8(u,b,x,m,y,e,_,i);var c=o().getInt32(u+0,!0),a=o().getInt32(u+4,!0),d=o().getInt32(u+8,!0),s=o().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xn(r,n,e,_,i){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=I(_,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(u,r,n,e,b,x,i);var c=o().getInt32(u+0,!0),a=o().getInt32(u+4,!0),d=o().getInt32(u+8,!0),s=o().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function yn(r,n,e,_,i){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=I(_,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(u,r,n,e,b,x,i);var c=o().getInt32(u+0,!0),a=o().getInt32(u+4,!0),d=o().getInt32(u+8,!0),s=o().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function In(r,n,e,_,i,c,a,d,s,g,u,b,x,m,y){try{let M=t.__wbindgen_add_to_stack_pointer(-16),T=it(r,t.__wbindgen_export4),U=p,O=I(i,t.__wbindgen_export4,t.__wbindgen_export5),q=p,P=I(c,t.__wbindgen_export4,t.__wbindgen_export5),B=p,at=I(a,t.__wbindgen_export4,t.__wbindgen_export5),ct=p,dt=I(x,t.__wbindgen_export4,t.__wbindgen_export5),st=p;t.encode_exr(M,T,U,n,e,_,O,q,P,B,at,ct,d,s,g,u,b,dt,st,m,y);var k=o().getInt32(M+0,!0),A=o().getInt32(M+4,!0),F=o().getInt32(M+8,!0),z=o().getInt32(M+12,!0);if(z)throw w(F);var W=f(k,A).slice();return t.__wbindgen_export3(k,A*1,1),W}finally{t.__wbindgen_add_to_stack_pointer(16)}}function mn(r,n,e,_,i){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(u,b,x,n,e,_,i);var c=o().getInt32(u+0,!0),a=o().getInt32(u+4,!0),d=o().getInt32(u+8,!0),s=o().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,u,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),d=o().getInt32(g+12,!0);if(d)throw w(a);var s=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,u,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),d=o().getInt32(g+12,!0);if(d)throw w(a);var s=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function An(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=j(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,u,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),d=o().getInt32(g+12,!0);if(d)throw w(a);var s=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fn(r,n,e,_,i){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=j(r,t.__wbindgen_export4),x=p,m=j(i,t.__wbindgen_export4),y=p;t.encode_prores_444_sample_cbr_rgb16_lut(u,b,x,n,e,_,m,y);var c=o().getInt32(u+0,!0),a=o().getInt32(u+4,!0),d=o().getInt32(u+8,!0),s=o().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Mn(r,n,e,_,i){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(u,b,x,n,e,_,i);var c=o().getInt32(u+0,!0),a=o().getInt32(u+4,!0),d=o().getInt32(u+8,!0),s=o().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rn(r,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.encode_prores_rgba(s,g,u,n,e);var _=o().getInt32(s+0,!0),i=o().getInt32(s+4,!0),c=o().getInt32(s+8,!0),a=o().getInt32(s+12,!0);if(a)throw w(c);var d=f(_,i).slice();return t.__wbindgen_export3(_,i*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,u,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),d=o().getInt32(g+12,!0);if(d)throw w(a);var s=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=j(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,u,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),d=o().getInt32(g+12,!0);if(d)throw w(a);var s=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(r,n,e,_,i){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=j(r,t.__wbindgen_export4),x=p,m=j(i,t.__wbindgen_export4),y=p;t.encode_prores_sample_cbr_rgb16_lut(u,b,x,n,e,_,m,y);var c=o().getInt32(u+0,!0),a=o().getInt32(u+4,!0),d=o().getInt32(u+8,!0),s=o().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,a).slice();return t.__wbindgen_export3(c,a*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tn(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,u,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),d=o().getInt32(g+12,!0);if(d)throw w(a);var s=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Sn(r,n,e,_){let i,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=I(r,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.exr_sequence_filename(x,m,y,n,e,_);var a=o().getInt32(x+0,!0),d=o().getInt32(x+4,!0),s=o().getInt32(x+8,!0),g=o().getInt32(x+12,!0),u=a,b=d;if(g)throw u=0,b=0,w(s);return i=u,c=b,R(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(i,c,1)}}function Un(r,n,e,_,i,c,a,d){let s,g;try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(r,t.__wbindgen_export4),z=p,W=l(_,t.__wbindgen_export4),M=p,T=I(d,t.__wbindgen_export4,t.__wbindgen_export5),U=p;t.fit_sizing(A,F,z,n,e,W,M,i,c,a,T,U);var u=o().getInt32(A+0,!0),b=o().getInt32(A+4,!0),x=o().getInt32(A+8,!0),m=o().getInt32(A+12,!0),y=u,k=b;if(m)throw y=0,k=0,w(x);return s=y,g=k,R(y,k)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function On(r){let n=t.initThreadPool(r);return w(n)}function Ln(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),d=p;t.inspect_cr3(c,a,d);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,R(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function qn(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),d=p;t.inspect_dng(c,a,d);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,R(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function En(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),d=p;t.inspect_dpx(c,a,d);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,R(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Dn(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),d=p;t.inspect_exr(c,a,d);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,R(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Pn(r,n,e){let _=I(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=t.inspect_isobmff(v(r),n,_,i);return w(c)}function Bn(r){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),d=p;t.inspect_tiff(c,a,d);var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);return n=_,e=i,R(_,i)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Cn(r,n){let e=t.inspect_wav(v(r),n);return w(e)}function Vn(r,n){let e=t.is_arriraw12_mxf(v(r),n);return w(e)}function Hn(r,n){let e=t.is_arriraw_mxf(v(r),n);return w(e)}function Nn(r,n){let e=t.is_crm(v(r),n);return w(e)}function Gn(r,n){let e=t.is_prores_mxf(v(r),n);return w(e)}function Xn(r,n){let e=t.is_vc3_mxf(v(r),n);return w(e)}function Yn(r,n){let e=t.is_xavc_mxf(v(r),n);return w(e)}function Jn(r,n){let e=t.is_xocn_mxf(v(r),n);return w(e)}function Kn(r,n,e){let _=I(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=t.list_isobmff_segments(v(r),n,_,i);return w(c)}function Qn(r,n){let e=t.list_mxf_segments(v(r),n);return w(e)}function Zn(r,n){let e=I(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,i=t.list_r3d_frames(v(r),e,_);return w(i)}function $n(r,n){let e=I(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,i=t.list_r3d_segments(v(r),e,_);return w(i)}function tr(r,n){let e=t.list_wav_segments(v(r),n);return w(e)}function er(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=S(n,t.__wbindgen_export4),k=p;t.mux_prores_4444_alpha_samples(b,x,m,y,k,e,_,i,c);var a=o().getInt32(b+0,!0),d=o().getInt32(b+4,!0),s=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw w(s);var u=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nr(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=S(n,t.__wbindgen_export4),k=p;t.mux_prores_samples(b,x,m,y,k,e,_,i,c);var a=o().getInt32(b+0,!0),d=o().getInt32(b+4,!0),s=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw w(s);var u=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rr(r,n,e,_,i,c,a,d,s,g,u,b){try{let F=t.__wbindgen_add_to_stack_pointer(-16),z=l(r,t.__wbindgen_export4),W=p,M=S(n,t.__wbindgen_export4),T=p,U=I(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p;t.mux_prores_samples_full(F,z,W,M,T,e,_,i,c,U,O,d,s,g,u,b);var x=o().getInt32(F+0,!0),m=o().getInt32(F+4,!0),y=o().getInt32(F+8,!0),k=o().getInt32(F+12,!0);if(k)throw w(y);var A=f(x,m).slice();return t.__wbindgen_export3(x,m*1,1),A}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _r(r,n,e,_){let i=t.mxf_au_run(v(r),n,e,_);return w(i)}function or(r,n){let e=t.mxf_frame_index(v(r),n);return w(e)}function ir(r,n){let e=t.mxf_gop_map(v(r),n);return w(e)}function ar(r,n){let e=t.mxf_h264_kind(v(r),n);return w(e)}function cr(r,n){let e,_;try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(n,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.plan_isobmff_trim(u,b,x,m,y);var i=o().getInt32(u+0,!0),c=o().getInt32(u+4,!0),a=o().getInt32(u+8,!0),d=o().getInt32(u+12,!0),s=i,g=c;if(d)throw s=0,g=0,w(a);return e=s,_=g,R(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,_,1)}}function dr(r,n,e,_,i){let c=I(i,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.plan_isobmff_trim_reader(v(r),n,e,_,c,a);return w(d)}function sr(r){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=I(r,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,u,b);var _=o().getInt32(g+0,!0),i=o().getInt32(g+4,!0),c=o().getInt32(g+8,!0),a=o().getInt32(g+12,!0),d=_,s=i;if(a)throw d=0,s=0,w(c);return n=d,e=s,R(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function pr(r,n,e,_){let i=t.plan_mxf_trim(v(r),n,e,_);return w(i)}function gr(r,n,e,_,i,c,a,d){let s,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),y=p,k=l(n,t.__wbindgen_export4),A=p,F=l(e,t.__wbindgen_export4),z=p,W=l(_,t.__wbindgen_export4),M=p,T=J(i,t.__wbindgen_export4),U=p,O=J(c,t.__wbindgen_export4),q=p,P=J(a,t.__wbindgen_export4),B=p;t.plan_r3d_compact(x,m,y,k,A,F,z,W,M,T,U,O,q,P,B,d);var u=o().getInt32(x+0,!0),b=o().getInt32(x+4,!0);return s=u,g=b,R(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function ur(r,n,e,_){let i,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),y=p;t.plan_wav_trim(x,m,y,n,e,_);var a=o().getInt32(x+0,!0),d=o().getInt32(x+4,!0),s=o().getInt32(x+8,!0),g=o().getInt32(x+12,!0),u=a,b=d;if(g)throw u=0,b=0,w(s);return i=u,c=b,R(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(i,c,1)}}function wr(r,n,e,_,i){let c=t.plan_wav_trim_reader(v(r),n,e,_,i);return w(c)}function br(r,n,e,_){let i=I(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=I(_,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=t.prepare_isobmff(v(r),n,i,c,a,d);return w(s)}function lr(r,n,e){let _=I(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=t.prepare_mxf(v(r),n,_,i);return w(c)}function fr(r,n,e){let _=I(n,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=I(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.prepare_r3d(v(r),_,i,c,a);return w(d)}function vr(r,n,e,_){let i=I(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=t.prepare_wav(v(r),n,i,c,_);return w(a)}function xr(r){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.probe_mov(g,u,b);var _=o().getInt32(g+0,!0),i=o().getInt32(g+4,!0),c=o().getInt32(g+8,!0),a=o().getInt32(g+12,!0),d=_,s=i;if(a)throw d=0,s=0,w(c);return n=d,e=s,R(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function yr(r,n){let e=t.probe_mxf(v(r),n);return w(e)}function Ir(r,n){let e=I(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,i=t.probe_r3d(v(r),e,_);return w(i)}function mr(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.prores_band_info(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=$(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.prores_raw_container_color(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kr(){t.prores_reset_rate_control()}function Ar(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),a=p;t.r3d_gpu_develop_params(i,c,a);var n=o().getInt32(i+0,!0),e=o().getInt32(i+4,!0),_=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fr(r,n,e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.r3d_index_ranges(a,d,s,n,e);var _=o().getInt32(a+0,!0),i=o().getInt32(a+4,!0),c=$(_,i).slice();return t.__wbindgen_export3(_,i*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Mr(r){let n=l(r,t.__wbindgen_export4),e=p;return t.r3d_is_helium(n,e)!==0}function Rr(r){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,u,b);var _=o().getInt32(g+0,!0),i=o().getInt32(g+4,!0),c=o().getInt32(g+8,!0),a=o().getInt32(g+12,!0),d=_,s=i;if(a)throw d=0,s=0,w(c);return n=d,e=s,R(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function zr(r,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16),a=l(r,t.__wbindgen_export4),d=p;t.read_arriraw_unit_correction(c,a,d,n);var e=o().getInt32(c+0,!0),_=o().getInt32(c+4,!0),i=qt(e,_).slice();return t.__wbindgen_export3(e,_*8,8),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wr(r,n,e,_,i,c,a){let d,s;try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(r,t.__wbindgen_export4),F=p,z=l(_,t.__wbindgen_export4),W=p,M=I(a,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.recover_reframe(k,A,F,n,e,z,W,i,c,M,T);var g=o().getInt32(k+0,!0),u=o().getInt32(k+4,!0),b=o().getInt32(k+8,!0),x=o().getInt32(k+12,!0),m=g,y=u;if(x)throw m=0,y=0,w(b);return d=m,s=y,R(m,y)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,s,1)}}function jr(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=j(r,t.__wbindgen_export4),m=p,y=I(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba16(b,x,m,n,e,_,i,y,k);var a=o().getInt32(b+0,!0),d=o().getInt32(b+4,!0),s=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw w(s);var u=ut(a,d).slice();return t.__wbindgen_export3(a,d*2,2),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tr(r,n,e,_,i,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=I(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba8(b,x,m,n,e,_,i,y,k);var a=o().getInt32(b+0,!0),d=o().getInt32(b+4,!0),s=o().getInt32(b+8,!0),g=o().getInt32(b+12,!0);if(g)throw w(s);var u=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Sr(){t.reset_dci_rate_state()}function Ur(r,n,e,_){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.resize_luma_area(g,u,b,n,e,_);var i=o().getInt32(g+0,!0),c=o().getInt32(g+4,!0),a=o().getInt32(g+8,!0),d=o().getInt32(g+12,!0);if(d)throw w(a);var s=f(i,c).slice();return t.__wbindgen_export3(i,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Or(r,n,e,_,i){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(i,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.rgba8_to_xyz12(u,b,x,n,e,_,m,y);var c=o().getInt32(u+0,!0),a=o().getInt32(u+4,!0),d=o().getInt32(u+8,!0),s=o().getInt32(u+12,!0);if(s)throw w(d);var g=ut(c,a).slice();return t.__wbindgen_export3(c,a*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Lr(r,n,e,_){let i,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=j(r,t.__wbindgen_export4),y=p,k=l(n,t.__wbindgen_export4),A=p,F=S(e,t.__wbindgen_export4),z=p,W=I(_,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_crop(x,m,y,k,A,F,z,W,M);var a=o().getInt32(x+0,!0),d=o().getInt32(x+4,!0),s=o().getInt32(x+8,!0),g=o().getInt32(x+12,!0),u=a,b=d;if(g)throw u=0,b=0,w(s);return i=u,c=b,R(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(i,c,1)}}function qr(r,n,e){let _,i;try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=j(r,t.__wbindgen_export4),m=p,y=l(n,t.__wbindgen_export4),k=p,A=I(e,t.__wbindgen_export4,t.__wbindgen_export5),F=p;t.shot_ramp(b,x,m,y,k,A,F);var c=o().getInt32(b+0,!0),a=o().getInt32(b+4,!0),d=o().getInt32(b+8,!0),s=o().getInt32(b+12,!0),g=c,u=a;if(s)throw g=0,u=0,w(d);return _=g,i=u,R(g,u)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(_,i,1)}}function Er(r,n,e,_){let i,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=j(r,t.__wbindgen_export4),y=p,k=l(n,t.__wbindgen_export4),A=p,F=S(e,t.__wbindgen_export4),z=p,W=I(_,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_scan(x,m,y,k,A,F,z,W,M);var a=o().getInt32(x+0,!0),d=o().getInt32(x+4,!0),s=o().getInt32(x+8,!0),g=o().getInt32(x+12,!0),u=a,b=d;if(g)throw u=0,b=0,w(s);return i=u,c=b,R(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(i,c,1)}}function Dr(r,n,e,_){let i=I(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,a=I(e,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=I(_,t.__wbindgen_export4,t.__wbindgen_export5),g=p,u=t.trim_r3d(v(r),i,c,a,d,s,g);return w(u)}function Pr(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.vc3_band_info(a,d,s);var n=o().getInt32(a+0,!0),e=o().getInt32(a+4,!0),_=o().getInt32(a+8,!0),i=o().getInt32(a+12,!0);if(i)throw w(_);var c=$(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Br(r,n,e){let _=I(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,c=t.video_frame_index_isobmff_reader(v(r),n,_,i);return w(c)}var Z=class r{static __wrap(n){let e=Object.create(r.prototype);return e.__wbg_ptr=n,mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_wbg_rayon_poolbuilder_free(n,0)}build(){t.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}numThreads(){return t.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}receiver(){return t.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);function Cr(r){t.wbg_rayon_start_worker(r)}function Vr(r,n,e){let _=t.xavc_au(v(r),n,e);return w(_)}function Hr(r,n){let e=t.xavc_frame_count(v(r),n);return w(e)}function Nr(r,n){let e=t.xocn_frame_count(v(r),n);return w(e)}function Gr(r){let n=l(r,t.__wbindgen_export4),e=p;return t.xocn_index_prefix_len(n,e)>>>0}function Xr(r){let n=l(r,t.__wbindgen_export4),e=p;return t.xocn_preview_prefix_len(n,e)>>>0}function kt(r){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_copy_to_typed_array_c5728021fabd0236:function(e,_,i){new Uint8Array(h(i).buffer,h(i).byteOffset,h(i).byteLength).set(f(e,_))},__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof h(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return h(e)===void 0},__wbg___wbindgen_memory_9751d9a3017e7c25:function(){let e=t.memory;return v(e)},__wbg___wbindgen_module_f86f28f0f85995dd:function(){return v(Rt)},__wbg___wbindgen_rethrow_858623e73c3311dc:function(e){throw w(e)},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,_){throw new Error(R(e,_))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){h(e)._wbg_cb_unref()},__wbg_async_4ec36f08efecafdc:function(e){return h(e).async},__wbg_buffer_49b4f592d8036785:function(e){let _=h(e).buffer;return v(_)},__wbg_call_0e855b388e315e17:function(){return tt(function(e,_,i,c){let a=h(e).call(h(_),h(i),h(c));return v(a)},arguments)},__wbg_call_5575218572ead796:function(){return tt(function(e,_,i){let c=h(e).call(h(_),h(i));return v(c)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return tt(function(e,_,i,c,a){let d=h(e).call(h(_),h(i),h(c),h(a));return v(d)},arguments)},__wbg_data_23c14f7d1102d077:function(e){let _=h(e).data;return v(_)},__wbg_instanceof_Window_0d356b88a2f77c42:function(e){let _;try{_=h(e)instanceof Window}catch{_=!1}return _},__wbg_length_589238bdcf171f0e:function(e){return h(e).length},__wbg_new_476e05fb84d8e4f3:function(e){let _=new Int32Array(h(e));return v(_)},__wbg_new_81880fb5002cb255:function(e){let _=new Uint8Array(h(e));return v(_)},__wbg_new_f85beb941dc6d8aa:function(e,_){try{var i={a:e,b:_},c=(d,s)=>{let g=i.a;i.a=0;try{return lt(g,i.b,d,s)}finally{i.a=g}};let a=new Promise(c);return v(a)}finally{i.a=0}},__wbg_new_typed_00a409eb4ec4f2d9:function(e,_){try{var i={a:e,b:_},c=(d,s)=>{let g=i.a;i.a=0;try{return lt(g,i.b,d,s)}finally{i.a=g}};let a=new Promise(c);return v(a)}finally{i.a=0}},__wbg_new_worker_e68fc8188cc230b5:function(e,_){let i=new Worker(R(e,_));return v(i)},__wbg_of_8737c43050b5546e:function(e,_,i){let c=Array.of(h(e),h(_),h(i));return v(c)},__wbg_postMessage_0162be6e48cf631e:function(){return tt(function(e,_){h(e).postMessage(h(_))},arguments)},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,_,i){Uint8Array.prototype.set.call(f(e,_),h(i))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let _=h(e).queueMicrotask;return v(_)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(h(e))},__wbg_resolve_d82363d90af6928a:function(e){let _=Promise.resolve(h(e));return v(_)},__wbg_set_onmessage_d05709471e546dca:function(e,_){h(e).onmessage=h(_)},__wbg_startWorkers_8b582d57e92bd2d4:function(e,_,i){let c=bt(w(e),w(_),Z.__wrap(i));return v(c)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return E(e)?0:v(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return E(e)?0:v(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return E(e)?0:v(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return E(e)?0:v(e)},__wbg_then_05edfc8a4fea5106:function(e,_,i){let c=h(e).then(h(_),h(i));return v(c)},__wbg_then_591b6b3a75ee817a:function(e,_){let i=h(e).then(h(_));return v(i)},__wbg_then_c768c7c3e60c20ef:function(e,_){let i=h(e).then(h(_));return v(i)},__wbg_value_2f34afb824ffcd9a:function(e){let _=h(e).value;return v(_)},__wbg_waitAsync_134f0b4abc50f1f2:function(e,_,i){let c=Atomics.waitAsync(h(e),_>>>0,i);return v(c)},__wbg_waitAsync_485a8d512901fd53:function(){let e=Atomics.waitAsync;return v(e)},__wbindgen_cast_0000000000000001:function(e,_){let i=pt(e,_,St);return v(i)},__wbindgen_cast_0000000000000002:function(e,_){let i=pt(e,_,Ot);return v(i)},__wbindgen_cast_0000000000000003:function(e,_){let i=pt(e,_,Ut);return v(i)},__wbindgen_cast_0000000000000004:function(e){return v(e)},__wbindgen_cast_0000000000000005:function(e,_){let i=f(e,_);return v(i)},__wbindgen_cast_0000000000000006:function(e,_){let i=R(e,_);return v(i)},__wbindgen_cast_0000000000000007:function(e,_){var i=f(e,_).slice();return t.__wbindgen_export3(e,_*1,1),v(i)},__wbindgen_link_ec60efd85dcca315:function(e){let _=`onmessage = function (ev) {
|
|
4
|
+
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
|
+
`,i=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(_):URL.createObjectURL(new Blob([_],{type:"text/javascript"})),c=I(i,t.__wbindgen_export4,t.__wbindgen_export5),a=p;o().setInt32(e+4,a,!0),o().setInt32(e+0,c,!0)},__wbindgen_object_clone_ref:function(e){let _=h(e);return v(_)},__wbindgen_object_drop_ref:function(e){w(e)},memory:r||new WebAssembly.Memory({initial:77,maximum:65536,shared:!0})}}}function St(r,n,e){t.__wasm_bindgen_func_elem_518(r,n,v(e))}function Ut(r,n,e){t.__wasm_bindgen_func_elem_2167(r,n,v(e))}function Ot(r,n,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_2165(c,r,n,v(e));var _=o().getInt32(c+0,!0),i=o().getInt32(c+4,!0);if(i)throw w(_)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function lt(r,n,e,_){t.__wasm_bindgen_func_elem_2182(r,n,v(e),v(_))}var ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrbench_free(r,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrstreamencoder_free(r,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresbench_free(r,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovencoder_free(r,1)),It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovwriter_free(r,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_wbg_rayon_poolbuilder_free(r,1));function v(r){Y===L.length&&L.push(L.length+1);let n=Y;return Y=L[n],L[n]=r,n}var ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbindgen_export2(r.a,r.b));function Lt(r){r<1028||(L[r]=Y,Y=r)}function qt(r,n){return r=r>>>0,At().subarray(r/8,r/8+n)}function ut(r,n){return r=r>>>0,Ft().subarray(r/2,r/2+n)}function $(r,n){return r=r>>>0,Mt().subarray(r/4,r/4+n)}function f(r,n){return r=r>>>0,D().subarray(r/1,r/1+n)}var C=null;function o(){return(C===null||C.buffer!==t.memory.buffer)&&(C=new DataView(t.memory.buffer)),C}var V=null;function Et(){return(V===null||V.buffer!==t.memory.buffer)&&(V=new Float32Array(t.memory.buffer)),V}var H=null;function At(){return(H===null||H.buffer!==t.memory.buffer)&&(H=new Float64Array(t.memory.buffer)),H}function R(r,n){return Pt(r>>>0,n)}var N=null;function Ft(){return(N===null||N.buffer!==t.memory.buffer)&&(N=new Uint16Array(t.memory.buffer)),N}var G=null;function Mt(){return(G===null||G.buffer!==t.memory.buffer)&&(G=new Uint32Array(t.memory.buffer)),G}var X=null;function D(){return(X===null||X.buffer!==t.memory.buffer)&&(X=new Uint8Array(t.memory.buffer)),X}function h(r){return L[r]}function tt(r,n){try{return r.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(r){return r==null}function pt(r,n,e){let _={a:r,b:n,cnt:1},i=(...c)=>{_.cnt++;let a=_.a;_.a=0;try{return e(a,_.b,...c)}finally{_.a=a,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--_.cnt===0&&(t.__wbindgen_export2(_.a,_.b),_.a=0,ht.unregister(_))},ht.register(i,_,_),i}function j(r,n){let e=n(r.length*2,2)>>>0;return Ft().set(r,e/2),p=r.length,e}function S(r,n){let e=n(r.length*4,4)>>>0;return Mt().set(r,e/4),p=r.length,e}function l(r,n){let e=n(r.length*1,1)>>>0;return D().set(r,e/1),p=r.length,e}function it(r,n){let e=n(r.length*4,4)>>>0;return Et().set(r,e/4),p=r.length,e}function J(r,n){let e=n(r.length*8,8)>>>0;return At().set(r,e/8),p=r.length,e}function I(r,n,e){if(e===void 0){let d=Q.encode(r),s=n(d.length,1)>>>0;return D().subarray(s,s+d.length).set(d),p=d.length,s}let _=r.length,i=n(_,1)>>>0,c=D(),a=0;for(;a<_;a++){let d=r.charCodeAt(a);if(d>127)break;c[i+a]=d}if(a!==_){a!==0&&(r=r.slice(a)),i=e(i,_,_=a+r.length*3,1)>>>0;let d=D().subarray(i+a,i+_),s=Q.encodeInto(r,d);a+=s.written,i=e(i,_,a,1)>>>0}return p=a,i}function w(r){let n=h(r);return Lt(r),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(r,n){return gt+=n,gt>=Dt&&(K=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),K.decode(),gt=n),K.decode(D().slice(r,r+n))}var Q=typeof TextEncoder<"u"?new TextEncoder:void 0;Q&&(Q.encodeInto=function(r,n){let e=Q.encode(r);return n.set(e),{read:r.length,written:e.length}});var p=0,Rt,Bt,t;function zt(r,n,e){if(Bt=r,t=r.exports,Rt=n,C=null,V=null,H=null,N=null,G=null,X=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw new Error("invalid stack size");return t.__wbindgen_start(e),t}async function Ct(r,n){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,n)}catch(i){if(r.ok&&e(r.type)&&r.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",i);else throw i}let _=await r.arrayBuffer();return await WebAssembly.instantiate(_,n)}else{let _=await WebAssembly.instantiate(r,n);return _ instanceof WebAssembly.Instance?{instance:_,module:r}:_}function e(_){switch(_){case"basic":case"cors":case"default":return!0}return!1}}function Yr(r,n){if(t!==void 0)return t;let e;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module:r,memory:n,thread_stack_size:e}=r:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let _=kt(n);r instanceof WebAssembly.Module||(r=new WebAssembly.Module(r));let i=new WebAssembly.Instance(r,_);return zt(i,r,e)}async function Jr(r,n){if(t!==void 0)return t;let e;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module_or_path:r,memory:n,thread_stack_size:e}=r:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),r===void 0&&(r=new URL("media_core_bg.wasm",import.meta.url));let _=kt(n);(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));let{instance:i,module:c}=await Ct(await r,_);return zt(i,c,e)}export{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,ye as decode_audio_pcm,Ie as decode_braw_gen5log,me as decode_braw_luma,he as decode_braw_preview,ke as decode_braw_rgba,Ae as decode_cr3_rgba,Fe as decode_crm,Me as decode_dng_preview,Re as decode_dng_rgba,ze as decode_dpx_preview,We as decode_dpx_rgba,je as decode_exr_linear,Te as decode_exr_preview,Se as decode_exr_rgba,Ue as decode_jpeg_rgba,Oe as decode_png_rgba,Le as decode_prores_band_rgba,qe as decode_prores_luma,Ee as decode_prores_mxf,De as decode_prores_preview,Pe as decode_prores_raw_acescct,Be as decode_prores_raw_luma,Ce as decode_prores_raw_preview,Ve as decode_prores_raw_rec2020,He as decode_prores_raw_rgba,Ne as decode_prores_raw_tier,Ge as decode_prores_rgb16,Xe as decode_prores_rgba,Ye as decode_prores_thumb_dc32,Je as decode_r3d_luma,Ke as decode_r3d_preview,Qe as decode_r3d_preview_clip,Ze as decode_r3d_rgb16,$e as decode_r3d_rgba,tn as decode_r3d_rgba_clip,en as decode_tiff_preview,nn as decode_tiff_rgba,rn as decode_vc3_band_rgba,_n as decode_vc3_luma,on as decode_vc3_mxf,an as decode_vc3_preview,cn as decode_vc3_rgba,dn as decode_xocn_index_luma,sn as decode_xocn_luma,pn as decode_xocn_mxf,gn as decode_xocn_preview,un as decode_xocn_preview_rec709,wn as decode_xocn_rgb16,bn as decode_xocn_rgba,Jr as default,ln as encode_dci_j2c,fn as encode_dci_j2c_rgb,vn as encode_dci_j2c_rgba8,xn as encode_dci_j2c_staged,yn as encode_dci_j2c_staged_modelled,In as encode_exr,mn as encode_prores_4444_alpha_mov_rgba,hn as encode_prores_4444_alpha_sample_q,kn as encode_prores_444_sample_cbr,An as encode_prores_444_sample_cbr_rgb16,Fn as encode_prores_444_sample_cbr_rgb16_lut,Mn as encode_prores_mov_rgba,Rn as encode_prores_rgba,zn as encode_prores_sample_cbr,Wn as encode_prores_sample_cbr_rgb16,jn as encode_prores_sample_cbr_rgb16_lut,Tn as encode_prores_sample_q,Sn as exr_sequence_filename,Un as fit_sizing,Yr as initSync,On as initThreadPool,Ln as inspect_cr3,qn as inspect_dng,En as inspect_dpx,Dn as inspect_exr,Pn as inspect_isobmff,Bn as inspect_tiff,Cn as inspect_wav,Vn as is_arriraw12_mxf,Hn as is_arriraw_mxf,Nn as is_crm,Gn as is_prores_mxf,Xn as is_vc3_mxf,Yn as is_xavc_mxf,Jn as is_xocn_mxf,Kn as list_isobmff_segments,Qn as list_mxf_segments,Zn as list_r3d_frames,$n as list_r3d_segments,tr as list_wav_segments,er as mux_prores_4444_alpha_samples,nr as mux_prores_samples,rr as mux_prores_samples_full,_r as mxf_au_run,or as mxf_frame_index,ir as mxf_gop_map,ar as mxf_h264_kind,cr as plan_isobmff_trim,dr as plan_isobmff_trim_reader,sr as plan_mxf_compact_trim,pr as plan_mxf_trim,gr as plan_r3d_compact,ur as plan_wav_trim,wr as plan_wav_trim_reader,br as prepare_isobmff,lr as prepare_mxf,fr as prepare_r3d,vr as prepare_wav,xr as probe_mov,yr as probe_mxf,Ir as probe_r3d,mr as prores_band_info,hr as prores_raw_container_color,kr as prores_reset_rate_control,Ar as r3d_gpu_develop_params,Fr as r3d_index_ranges,Mr as r3d_is_helium,Rr as read_arriraw_fcs,zr as read_arriraw_unit_correction,Wr as recover_reframe,jr as resample_rgba16,Tr as resample_rgba8,Sr as reset_dci_rate_state,Ur as resize_luma_area,Or as rgba8_to_xyz12,Lr as shot_crop,qr as shot_ramp,Er as shot_scan,Dr as trim_r3d,Pr as vc3_band_info,Br as video_frame_index_isobmff_reader,Z as wbg_rayon_PoolBuilder,Cr as wbg_rayon_start_worker,Vr as xavc_au,Hr as xavc_frame_count,Nr as xocn_frame_count,Gr as xocn_index_prefix_len,Xr as xocn_preview_prefix_len};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{a}from"./chunk-
|
|
3
|
+
import{a}from"./chunk-D6YDLKSA.js";import"./chunk-PSANHDZM.js";export{a as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{a as $}from"./chunk-AACY2V3L.js";import{b as J}from"./chunk-VS3MKKJ5.js";import{b as j}from"./chunk-XNR7M4VX.js";import{Fa as N,Ga 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-C5IX63YF.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
|