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

Function getPreviewResolution

apps/desktop/src/routes/editor/context.ts:124–132  ·  view source on GitHub ↗
(
	quality: EditorPreviewQuality,
)

Source from the content-addressed store, hash-verified

122};
123
124export const getPreviewResolution = (
125 quality: EditorPreviewQuality,
126): XY<number> => {
127 const scale = previewQualityScale[quality];
128 const width = (Math.max(4, Math.round(OUTPUT_SIZE.x * scale)) + 3) & ~3;
129 const height = (Math.max(2, Math.round(OUTPUT_SIZE.y * scale)) + 1) & ~1;
130
131 return { x: width, y: height };
132};
133
134export type TimelineTrackType =
135 | "clip"

Callers 2

previewResolutionBaseFunction · 0.85
requestFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected