MCPcopy Create free account
hub / github.com/ACM-VIT/conclave / assertOutputWriterQuality

Function assertOutputWriterQuality

scripts/debug-video-effects-headless.mjs:1611–1622  ·  view source on GitHub ↗
(state, label)

Source from the content-addressed store, hash-verified

1609 )}`,
1610 );
1611 }
1612 return quality;
1613};
1614
1615const percentile = (values, ratio) => {
1616 if (values.length === 0) return null;
1617 const sorted = [...values].sort((left, right) => left - right);
1618 const index = Math.min(
1619 sorted.length - 1,
1620 Math.max(0, Math.ceil(sorted.length * ratio) - 1),
1621 );
1622 return sorted[index];
1623};
1624
1625const getEffectSwitchLatencyQuality = (logs, state, label, options = {}) => {

Callers 1

runFunction · 0.85

Calls 2

getOutputWriterQualityFunction · 0.85
emitFunction · 0.70

Tested by

no test coverage detected