conformtools 0.6.28 → 0.6.30

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.
Files changed (59) hide show
  1. package/dist/{account-RSL4PTDB.js → account-B7ZF6OQM.js} +1 -1
  2. package/dist/{agent-hook-setup-IACTYSVL.js → agent-hook-setup-KBCGZNEE.js} +1 -1
  3. package/dist/{analysis-engine-BBOSGAB2.js → analysis-engine-LGB4OXG7.js} +1 -1
  4. package/dist/{bridge-I6VDW7YC.js → bridge-4ZKCOIOA.js} +1 -1
  5. package/dist/browser/timeline_core_bg.wasm +0 -0
  6. package/dist/{chunk-X76IIWBH.js → chunk-2XB3P2Q5.js} +1 -1
  7. package/dist/{chunk-CSH2RRI6.js → chunk-3QYAWIID.js} +1 -1
  8. package/dist/{chunk-7CASAJU4.js → chunk-463MBAHG.js} +1 -1
  9. package/dist/{chunk-QY4QDBIN.js → chunk-4QGSPWXM.js} +91 -91
  10. package/dist/{chunk-TGLH2JDW.js → chunk-FHCRWOI7.js} +1 -1
  11. package/dist/{chunk-NRURUPLU.js → chunk-GDPYFRSV.js} +1 -1
  12. package/dist/chunk-H3FD5KA2.js +7 -0
  13. package/dist/{chunk-BIX5ETBY.js → chunk-HHOFGYZ7.js} +1 -1
  14. package/dist/{chunk-CV7OBWOX.js → chunk-KMDKF7EJ.js} +1 -1
  15. package/dist/chunk-KWJVI7VL.js +545 -0
  16. package/dist/chunk-QQBDHVUU.js +3 -0
  17. package/dist/chunk-RKJML7MH.js +10 -0
  18. package/dist/{chunk-3KS3547B.js → chunk-SSFG7FNI.js} +1 -1
  19. package/dist/{chunk-WG75XXKG.js → chunk-TBODUVBP.js} +2 -2
  20. package/dist/{chunk-UXEL636C.js → chunk-UXVABU6B.js} +1 -1
  21. package/dist/{chunk-HNEKQMQG.js → chunk-YJREJ2MH.js} +1 -1
  22. package/dist/{chunk-UE76WJ3Y.js → chunk-ZL562JIE.js} +1 -1
  23. package/dist/chunk-ZNBXAGOK.js +7 -0
  24. package/dist/{chunk-RL5XRG6O.js → chunk-ZTXOFGJY.js} +1 -1
  25. package/dist/{claude-setup-6RMV3QZM.js → claude-setup-FYWGYBTH.js} +1 -1
  26. package/dist/cli.js +2 -2
  27. package/dist/demo-engine-I35YCWFG.js +3 -0
  28. package/dist/{engine-I2NXY2OK.js → engine-WJLTTZSK.js} +2 -2
  29. package/dist/framing-AYR35WRJ.js +3 -0
  30. package/dist/gfx-worker.js +1 -1
  31. package/dist/h264-QGSP23K2.js +3 -0
  32. package/dist/{h264-mxf-PKSTGNGH.js → h264-mxf-I4YANT5F.js} +1 -1
  33. package/dist/{host-relink-B3M3B3VF.js → host-relink-ACZC6TG2.js} +1 -1
  34. package/dist/{hosted-26GUD7IU.js → hosted-SPL5V4NR.js} +1 -1
  35. package/dist/hosts-RSOGNUPK.js +3 -0
  36. package/dist/http.js +2 -2
  37. package/dist/{inspect-RT36GEVU.js → inspect-B6KD6ZTA.js} +2 -2
  38. package/dist/{isobmff-65LRNCQH.js → isobmff-LAXAYC7P.js} +1 -1
  39. package/dist/{mc-video-2PCAX65A.js → mc-video-KQ7TP4DG.js} +1 -1
  40. package/dist/mcp.js +7 -7
  41. package/dist/{media-NCUTSVJ4.js → media-SUPBJX64.js} +1 -1
  42. package/dist/{mxf-WFJNAX7D.js → mxf-2TQO552L.js} +1 -1
  43. package/dist/{ops-SH3IUU2Z.js → ops-CVKPID5Z.js} +1 -1
  44. package/dist/{probe-VB6JH6ZJ.js → probe-HUPB4H4G.js} +1 -1
  45. package/dist/{r3d-X2O5LUAB.js → r3d-EPSGIBPT.js} +1 -1
  46. package/dist/resolve-bridge.py +9 -3
  47. package/dist/{sequence-patch-OHYBBKKZ.js → sequence-patch-GXM3QSJC.js} +1 -1
  48. package/dist/{store-F2CTSR6E.js → store-INNJPUPR.js} +1 -1
  49. package/dist/{timeline-33MJ3HOK.js → timeline-EXRRCS47.js} +1 -1
  50. package/package.json +5 -5
  51. package/dist/chunk-7GEOQ4N6.js +0 -537
  52. package/dist/chunk-AR5BTVBM.js +0 -7
  53. package/dist/chunk-IDADYIY6.js +0 -7
  54. package/dist/chunk-TIZC6IEH.js +0 -10
  55. package/dist/chunk-ZPIY5DOU.js +0 -3
  56. package/dist/demo-engine-ITZ7VG6Q.js +0 -3
  57. package/dist/framing-QC7Z2GRK.js +0 -3
  58. package/dist/h264-TVMYQ7EB.js +0 -3
  59. package/dist/hosts-LVKUUVG7.js +0 -3
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as O}from"./chunk-TK55FA56.js";import"./chunk-PSANHDZM.js";function v(e,n,t,f){let s=new DataView(e.buffer,e.byteOffset,e.byteLength),r=n;for(;r+8<=t;){let o=s.getUint32(r),a=String.fromCharCode(e[r+4],e[r+5],e[r+6],e[r+7]),c=8;if(o===1){let l=s.getUint32(r+8),g=s.getUint32(r+12);o=l*2**32+g,c=16}else o===0&&(o=t-r);if(o<c||r+o>t)break;f(a,r+c,r+o),r+=o}}var E=new Set(["moov","trak","mdia","minf","stbl"]);function D(e){let n=new DataView(e.buffer,e.byteOffset,e.byteLength),t=null,f=(r,o)=>{let a={},c=!1,l=(g,w)=>{v(e,g,w,(y,i,p)=>{if(E.has(y)){l(i,p);return}if(!(!c&&y!=="hdlr"&&y!=="stsd"))switch(y){case"hdlr":{String.fromCharCode(e[i+8],e[i+9],e[i+10],e[i+11])==="vide"&&(c=!0);break}case"stsd":{let u=i+8;a.codec=String.fromCharCode(e[u+4],e[u+5],e[u+6],e[u+7]),a.width=n.getUint16(u+32),a.height=n.getUint16(u+34);break}case"stsz":{let u=n.getUint32(i+4),m=n.getUint32(i+8),d=[];if(u===0)for(let h=0;h<m;h++)d.push(n.getUint32(i+12+h*4));else for(let h=0;h<m;h++)d.push(u);a.sampleSizes=d;break}case"stco":{let u=n.getUint32(i+4),m=[];for(let d=0;d<u;d++)m.push(n.getUint32(i+8+d*4));a.chunkOffsets=m;break}case"co64":{let u=n.getUint32(i+4),m=[];for(let d=0;d<u;d++){let h=n.getUint32(i+8+d*8),k=n.getUint32(i+12+d*8);m.push(h*2**32+k)}a.chunkOffsets=m;break}case"stsc":{let u=n.getUint32(i+4),m=[];for(let d=0;d<u;d++)m.push({firstChunk:n.getUint32(i+8+d*12),samplesPerChunk:n.getUint32(i+8+d*12+4),descIdx:n.getUint32(i+8+d*12+8)});a.sampleToChunk=m;break}}})};l(r,o),c&&a.chunkOffsets&&a.sampleSizes&&a.sampleToChunk&&(t=a)};if(((r,o)=>{v(e,r,o,(a,c,l)=>{a==="moov"&&v(e,c,l,(g,w,y)=>{g==="trak"&&f(w,y)})})})(0,e.length),!t)throw new Error("could not find a video sample table");return t}function V(e){let n=[],t=0;for(let f=0;f<e.chunkOffsets.length;f++){let s=1;for(let o=0;o<e.sampleToChunk.length;o++)f+1>=e.sampleToChunk[o].firstChunk&&(s=e.sampleToChunk[o].samplesPerChunk);let r=e.chunkOffsets[f];for(let o=0;o<s&&t<e.sampleSizes.length;o++){let a=e.sampleSizes[t];n.push({offset:r,size:a}),r+=a,t++}}return n}var P=(e,n)=>String.fromCharCode(e[n],e[n+1],e[n+2],e[n+3]),z=e=>e.toString(16).padStart(2,"0");function S(e,n,t,f){let s=new DataView(e.buffer,e.byteOffset,e.byteLength),r=n;for(;r+8<=t;){let o=s.getUint32(r),a=8;if(o===1?(o=Number(s.getBigUint64(r+8)),a=16):o===0&&(o=t-r),P(e,r+4)===f)return[r+a,r+o];if(o<a)break;r+=o}return null}function H(e,n,t,f){let s=[n,t];for(let r of f){if(!s)return null;s=S(e,s[0],s[1],r)}return s}function M(e,n,t){let f=S(e,n[0],n[1],"stts");if(!f)return new Int32Array(0);let s=t.getUint32(f[0]+4),r=[],o=0,a=f[0]+8;for(let i=0;i<s;i++){let p=t.getUint32(a),u=t.getInt32(a+4);for(let m=0;m<p;m++)r.push(o),o+=u;a+=8}let c=r.length,l=S(e,n[0],n[1],"ctts"),g=new Float64Array(c);for(let i=0;i<c;i++)g[i]=r[i];if(l){let i=t.getUint32(l[0]+4),p=l[0]+8,u=0;for(let m=0;m<i&&u<c;m++){let d=t.getUint32(p),h=t.getInt32(p+4);for(let k=0;k<d&&u<c;k++)g[u++]+=h;p+=8}}let w=Array.from({length:c},(i,p)=>p).sort((i,p)=>g[i]-g[p]||i-p),y=new Int32Array(c);for(let i=0;i<c;i++)y[w[i]]=i;return y}function I(e){let n=new DataView(e.buffer,e.byteOffset,e.byteLength),t=S(e,0,e.length,"moov"),[f,s]=t??[0,e.length],r=f;for(;r+8<=s;){let o=n.getUint32(r),a=8;if(o===1?(o=Number(n.getBigUint64(r+8)),a=16):o===0&&(o=s-r),P(e,r+4)==="trak"){let c=H(e,r+a,r+o,["mdia","minf","stbl"]);if(c){let l=S(e,c[0],c[1],"stsd");if(l){let g=l[0]+8,w=P(e,g+4);if(w==="avc1"||w==="avc3"||w==="hvc1"||w==="hev1"){let y=n.getUint32(g),i=g+8+78,p=w.startsWith("hv")||w.startsWith("he"),u=S(e,i,g+y,p?"hvcC":"avcC");if(!u)return null;let m=e.subarray(u[0],u[1]),d=p?"hvc1.1.6.L93.B0":`avc1.${z(m[1])}${z(m[2])}${z(m[3])}`,h=M(e,c,n),k=h.length,C=S(e,c[0],c[1],"stss"),b=[];if(C){let T=n.getUint32(C[0]+4);for(let U=0;U<T;U++)b.push(n.getUint32(C[0]+8+U*4)-1)}else for(let T=0;T<k;T++)b.push(T);return(b.length===0||b[0]!==0)&&b.unshift(0),b.sort((T,U)=>T-U),{codec:d,description:m,keyframes:b,decodeToPres:h}}}}}if(o<a)break;r+=o}return null}var x=8,R=1500,F=new WeakMap;async function L(e){let n=F.get(e);return n||(n=q(e),F.set(e,n)),n}async function q(e){if(typeof VideoDecoder>"u")throw new Error("h264: WebCodecs (VideoDecoder) not available in this context");let n=e.parts[0],t=await O({fileSize:n.fileSize,read:n.read}),f=V(D(t)),s=I(t);if(!s)throw new Error("h264: no H.264/HEVC config in container");let r=s.decodeToPres.length||f.length,o=new Int32Array(r);for(let l=0;l<s.decodeToPres.length;l++)o[s.decodeToPres[l]]=l;let a=[];for(let l=0;l<s.keyframes.length;l++){let g=s.keyframes[l],w=l+1<s.keyframes.length?s.keyframes[l+1]:f.length;a.push([g,w])}let c={offs:f,cfg:s,gops:a,presToDecode:o,count:r,dec:null,wanted:-1,got:null,gotResolve:null,fedThrough:-1,queue:Promise.resolve()};return c.dec=new VideoDecoder({output:l=>{Number(l.timestamp)===c.wanted&&!c.got?(c.got=l,c.gotResolve?.()):l.close()},error:()=>{c.fedThrough=-1}}),c.dec.configure({codec:s.codec,description:s.description,optimizeForLatency:!0,hardwareAcceleration:"prefer-hardware"}),c}function B(e,n){let t=0,f=e.length-1,s=0;for(;t<=f;){let r=t+f>>1;e[r][0]<=n?(s=r,t=r+1):f=r-1}return s}async function $(e){let n=e.codedWidth,t=e.codedHeight;try{let f=n*t*4,s=new Uint8Array(f);return await e.copyTo(s,{format:"RGBA",colorSpace:"srgb"}),{width:n,height:t,rgba:s}}catch{let s=new OffscreenCanvas(n,t).getContext("2d",{willReadFrequently:!0});if(!s)throw new Error("h264: no 2d context for frame readback");s.drawImage(e,0,0);let r=s.getImageData(0,0,n,t);return{width:n,height:t,rgba:new Uint8Array(r.data.buffer)}}}async function N(e,n){let t=await L(e);if(t.count===0)throw new Error("h264: empty clip");if(n<0||n>=t.count)throw new Error(`COVERAGE_MISS: frame ${n} outside 0..${t.count-1}`);let f,s=new Promise(o=>{f=o}),r=t.queue;t.queue=t.queue.then(()=>s),await r;try{let o=e.parts[0],a=t.presToDecode[n],c=B(t.gops,a),[l,g]=t.gops[c];for(let w=0;w<2;w++){let y=w===0&&t.fedThrough>l&&t.fedThrough<=g&&a>=t.fedThrough,i=y?t.fedThrough:l;if(!y&&t.fedThrough!==-1){try{await t.dec.flush()}catch{}t.fedThrough=-1}let p=Math.min(g,a+1+x);t.wanted=n,t.got=null;let u=new Promise(h=>{t.gotResolve=h});if(p>i){let h=1/0,k=0;for(let b=i;b<p;b++)h=Math.min(h,t.offs[b].offset),k=Math.max(k,t.offs[b].offset+t.offs[b].size);let C=await o.read(h,k-h);for(let b=i;b<p;b++){let T=t.offs[b];t.dec.decode(new EncodedVideoChunk({type:b===l?"key":"delta",timestamp:t.cfg.decodeToPres[b],data:C.subarray(T.offset-h,T.offset-h+T.size)}))}t.fedThrough=p}let m=new Promise(h=>setTimeout(h,R));if(await Promise.race([u,m]),!t.got){try{await t.dec.flush()}catch{}t.fedThrough=-1}let d=t.got;if(t.wanted=-1,t.gotResolve=null,t.got=null,!!d)try{return await $(d)}finally{d.close()}}throw new Error(`h264: frame ${n} did not decode`)}finally{f()}}async function A(){return(await import("./isobmff-65LRNCQH.js")).isobmffFormat}var J={async inspect(e){return(await A()).inspect(e)},async extract(e){return(await A()).extract(e)},async sparsify(e,n){return(await A()).sparsify(e,n)},async trim(e,n){return(await A()).trim(e,n)},async decode(e,n){return N(e,n)}};export{J as h264Format};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{g as a,h as b,i as c,j as d}from"./chunk-WG75XXKG.js";import"./chunk-UE76WJ3Y.js";import"./chunk-QY4QDBIN.js";import"./chunk-IN6XVTUS.js";import"./chunk-TIZC6IEH.js";import"./chunk-3PVQ5QP4.js";import"./chunk-VFXMP7IF.js";import"./chunk-X76IIWBH.js";import"./chunk-CV7OBWOX.js";import"./chunk-TNCXZIOX.js";import"./chunk-5JIFRR7U.js";import"./chunk-WRDA44QF.js";import"./chunk-PGJMKUUP.js";import"./chunk-6QB4DV22.js";import"./chunk-OSUIS4JU.js";import"./chunk-JV7TZDKJ.js";import"./chunk-BBCQMZQN.js";import"./chunk-ASFUV3PB.js";import"./chunk-NRURUPLU.js";import"./chunk-TGLH2JDW.js";import"./chunk-RL5XRG6O.js";import"./chunk-IDADYIY6.js";import"./chunk-N34DQ6MH.js";import"./chunk-NU3X7P4N.js";import"./chunk-7Z65WW4I.js";import"./chunk-AR5BTVBM.js";import"./chunk-VZ3XYHK4.js";import"./chunk-HNEKQMQG.js";import"./chunk-E75BCWXY.js";import"./chunk-ZPIY5DOU.js";import"./chunk-C2ESM27Z.js";import"./chunk-PSANHDZM.js";export{a as AVID_SETUP,b as FLAME_SETUP,d as adapter,c as setAdapter};