# seefn1000-afk/vrchat-dlss5-cam architecture

> Architecture diagram of the GitHub repository seefn1000-afk/vrchat-dlss5-cam, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/seefn1000-afk/vrchat-dlss5-cam
- Repository: https://github.com/seefn1000-afk/vrchat-dlss5-cam

## Overview

VRChat-DLSS5-Cam is a Windows desktop application for previewing and enhancing VRChat camera feeds, capturing PNG photos, and processing image or video files. The principal workflow is to launch the app, receive a Spout camera feed, render it through the GPU pipeline, preview it, then capture a photo. The graph also preserves documented media-library, video, settings, localization, and update capabilities. Source excerpts establish the application shell and processing interfaces; several subsystem connections are documented in the README rather than verified in implementation excerpts.

Main entry points: [`src/core/App.cpp`](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/App.cpp) (App shell), [`src/gfx/Pipeline.cpp`](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/gfx/Pipeline.cpp) (Frame pipeline), [`src/ui/MainUI.cpp`](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/ui/MainUI.cpp) (Main interface), [`src/main.cpp`](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/main.cpp) (Program entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_main["Program entry<br/>[main.cpp]"]
  node_appshell["App shell<br/>[App.cpp]"]
  node_ui["Main interface<br/>[MainUI.cpp]"]
  node_preview["Live preview<br/>[App.cpp]"]
end

subgraph group_media["Sources and Capture"]
  node_spout["Spout receiver<br/>[SpoutReceiver.cpp]"]
  node_library["Media library<br/>[MediaLibrary.cpp]"]
  node_images["Image source<br/>[ImageSource.cpp]"]
  node_video["Video source<br/>[VideoSource.cpp]"]
  node_capture["Photo capture<br/>[Capture.cpp]"]
  node_writer["Video writer<br/>[VideoWriter.cpp]"]
end

subgraph group_render["GPU Rendering"]
  node_pipeline["Frame pipeline<br/>[Pipeline.cpp]"]
  node_device["GPU device<br/>[Device.cpp]"]
  node_motion["Optical flow<br/>[NvOpticalFlow.cpp]"]
  node_depth["Depth estimation<br/>[DepthEstimator.cpp]"]
  node_ngx["NGX runtime<br/>[NgxCore.cpp]"]
  node_dlss["DLSS features<br/>[DlssFeature.cpp]"]
  node_dlssnr["DLSS neural rendering<br/>[DlssnrFeature.cpp]"]
end

subgraph group_support["Settings and Services"]
  node_settings["Settings<br/>[Settings.cpp]"]
  node_i18n["Localization<br/>[I18n.cpp]"]
  node_updater["Updater<br/>[Updater.cpp]"]
  node_log[("Logging<br/>[Log.cpp]")]
end

node_user(("User"))
node_vrchat(("VRChat camera"))

node_user -->|"launches"| node_main
node_main -->|"starts"| node_appshell
node_user -->|"operates"| node_ui
node_ui -.->|"sends actions"| node_appshell
node_vrchat -->|"provides feed"| node_spout
node_spout -.->|"supplies frames"| node_appshell
node_appshell -->|"updates"| node_preview
node_appshell -->|"dispatches frames"| node_pipeline
node_pipeline -->|"uses GPU"| node_device
node_pipeline -->|"uses flow"| node_motion
node_pipeline -->|"uses depth"| node_depth
node_pipeline -->|"uses runtime"| node_ngx
node_pipeline -->|"runs DLSS"| node_dlss
node_pipeline -->|"runs neural rendering"| node_dlssnr
node_user -->|"requests photo"| node_capture
node_pipeline -->|"submits capture"| node_capture
node_appshell -->|"manages"| node_library
node_appshell -->|"opens images"| node_images
node_appshell -->|"processes video"| node_video
node_appshell -->|"owns video output"| node_writer
node_user -->|"configures"| node_settings
node_appshell -->|"reads settings"| node_settings
node_ui -->|"displays translations"| node_i18n
node_appshell -->|"checks updates"| node_updater
node_appshell -->|"logs events"| node_log

click node_spout "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/SpoutReceiver.cpp"
click node_main "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/main.cpp"
click node_appshell "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/App.cpp"
click node_ui "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/ui/MainUI.cpp"
click node_preview "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/App.cpp"
click node_settings "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/Settings.cpp"
click node_i18n "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/I18n.cpp"
click node_library "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/MediaLibrary.cpp"
click node_images "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/ImageSource.cpp"
click node_video "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/VideoSource.cpp"
click node_capture "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/Capture.cpp"
click node_writer "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/VideoWriter.cpp"
click node_pipeline "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/gfx/Pipeline.cpp"
click node_device "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/gfx/Device.cpp"
click node_motion "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/gfx/NvOpticalFlow.cpp"
click node_depth "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/gfx/DepthEstimator.cpp"
click node_ngx "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/ngx/NgxCore.cpp"
click node_dlss "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/ngx/DlssFeature.cpp"
click node_dlssnr "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/ngx/DlssnrFeature.cpp"
click node_updater "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/Updater.cpp"
click node_log "https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/Log.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_appshell,node_ui,node_preview,node_user toneBlue
class node_spout,node_library,node_images,node_video,node_capture,node_writer toneAmber
class node_pipeline,node_device,node_motion,node_depth,node_ngx,node_dlss,node_dlssnr toneMint
class node_settings,node_i18n,node_updater,node_log toneRose
class node_vrchat toneIndigo
```

## Components

### Application

- [Program entry](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/main.cpp): `src/main.cpp`
- [App shell](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/App.cpp): `src/core/App.cpp`
- [Main interface](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/ui/MainUI.cpp): `src/ui/MainUI.cpp`
- [Live preview](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/App.cpp): `src/core/App.cpp`

### Sources and Capture

- [Spout receiver](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/SpoutReceiver.cpp): `src/core/SpoutReceiver.cpp`
- [Media library](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/MediaLibrary.cpp): `src/core/MediaLibrary.cpp`
- [Image source](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/ImageSource.cpp): `src/core/ImageSource.cpp`
- [Video source](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/VideoSource.cpp): `src/core/VideoSource.cpp`
- [Photo capture](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/Capture.cpp): `src/core/Capture.cpp`
- [Video writer](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/VideoWriter.cpp): `src/core/VideoWriter.cpp`

### GPU Rendering

- [Frame pipeline](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/gfx/Pipeline.cpp): `src/gfx/Pipeline.cpp`
- [GPU device](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/gfx/Device.cpp): `src/gfx/Device.cpp`
- [Optical flow](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/gfx/NvOpticalFlow.cpp): `src/gfx/NvOpticalFlow.cpp`
- [Depth estimation](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/gfx/DepthEstimator.cpp): `src/gfx/DepthEstimator.cpp`
- [NGX runtime](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/ngx/NgxCore.cpp): `src/ngx/NgxCore.cpp`
- [DLSS features](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/ngx/DlssFeature.cpp): `src/ngx/DlssFeature.cpp`
- [DLSS neural rendering](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/ngx/DlssnrFeature.cpp): `src/ngx/DlssnrFeature.cpp`

### Settings and Services

- [Settings](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/Settings.cpp): `src/core/Settings.cpp`
- [Localization](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/I18n.cpp): `src/core/I18n.cpp`
- [Updater](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/Updater.cpp): `src/core/Updater.cpp`
- [Logging](https://github.com/seefn1000-afk/vrchat-dlss5-cam/blob/main/src/core/Log.cpp): `src/core/Log.cpp`

### Other components

- **User**
- **VRChat camera**

## Connections

- User → Program entry: launches
- Program entry → App shell: starts (evidence: `src/main.cpp`)
- User → Main interface: operates
- Main interface → App shell: sends actions
- VRChat camera → Spout receiver: provides feed
- Spout receiver → App shell: supplies frames
- App shell → Live preview: updates (evidence: `src/core/App.cpp`)
- App shell → Frame pipeline: dispatches frames
- Frame pipeline → GPU device: uses GPU
- Frame pipeline → Optical flow: uses flow
- Frame pipeline → Depth estimation: uses depth
- Frame pipeline → NGX runtime: uses runtime
- Frame pipeline → DLSS features: runs DLSS
- Frame pipeline → DLSS neural rendering: runs neural rendering
- User → Photo capture: requests photo
- Frame pipeline → Photo capture: submits capture
- App shell → Media library: manages
- App shell → Image source: opens images
- App shell → Video source: processes video
- App shell → Video writer: owns video output
- User → Settings: configures
- App shell → Settings: reads settings
- Main interface → Localization: displays translations (evidence: `src/ui/MainUI.cpp`)
- App shell → Updater: checks updates (evidence: `src/core/App.cpp`)
- App shell → Logging: logs events
