MCPcopy
hub / github.com/CapSoftware/Cap / createIdentityEditSpec

Function createIdentityEditSpec

apps/web/lib/video-edits.ts:105–111  ·  view source on GitHub ↗
(sourceDuration: number)

Source from the content-addressed store, hash-verified

103}
104
105export function createIdentityEditSpec(sourceDuration: number): VideoEditSpec {
106 const duration = normalizeDuration(sourceDuration);
107 return normalizeKeepRanges(
108 duration > 0 ? [{ start: 0, end: duration }] : [],
109 duration,
110 );
111}
112
113export function areEditSpecsEquivalent(
114 left: VideoEditSpec,

Callers 5

saveVideoEditsFunction · 0.90
restoreVideoToOriginalFunction · 0.90
AuthorizedContentFunction · 0.90
EditVideoPageFunction · 0.90

Calls 2

normalizeDurationFunction · 0.85
normalizeKeepRangesFunction · 0.85

Tested by

no test coverage detected