Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
.pragma library
// Logical pixels shared by the QML cards and the one native videoHost.
function calculate(width, height, tab) {
const compact = width < 1120 || height < 500
const margin = 12, top = 56, gap = 10
const bodyHeight = Math.max(1, height - top - margin)
const leftWidth = 260, rightWidth = 340
const footerHeight = compact ? 60 : 116
const body = { x: margin, y: top, width: Math.max(1, width - 2 * margin),
height: Math.max(1, bodyHeight - footerHeight - gap) }
const left = compact ? body : { x: margin, y: top, width: leftWidth, height: bodyHeight }
const settings = compact ? body : { x: width - margin - rightWidth, y: top,
width: rightWidth, height: bodyHeight - footerHeight - gap }
const footer = { x: compact ? margin : settings.x, y: height - margin - footerHeight,
width: compact ? body.width : rightWidth, height: footerHeight }
const centerX = compact ? margin : margin + leftWidth + gap
const centerWidth = compact ? body.width : Math.max(1, width - margin * 2 - leftWidth - rightWidth - gap * 2)
const centerHeight = compact ? body.height : bodyHeight
const trimHeight = compact ? 72 : 110
const preview = { x: centerX, y: top, width: centerWidth, height: Math.max(1, centerHeight - trimHeight - gap) }
const trim = { x: centerX, y: top + centerHeight - trimHeight, width: centerWidth, height: trimHeight }
return { compact: compact, left: left, settings: settings, footer: footer, preview: preview, trim: trim,
video: !compact || tab === 1 ? preview : { x: 0, y: 0, width: 0, height: 0 } }
}