# vhonowslend/streamfx-public architecture

> Architecture diagram of the GitHub repository vhonowslend/streamfx-public, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vhonowslend/streamfx-public
- Repository: https://github.com/vhonowslend/streamfx-public

## Overview

StreamFX is an OBS Studio plugin for adding live visual effects and production tools to scenes. The principal workflow is an OBS user configuring a plugin filter or source, which processes scene imagery through graphics or effect-specific code for OBS to display. The tree also shows encoding, NVIDIA-backed effects, and plugin UI/update support. The blur implementation visibly selects and creates blur algorithms; other component-level runtime links are limited because their wiring was not sampled. Additional capabilities are retained from the README and component tree, with uncertain relationships left unverified.

Main entry points: [`source/plugin.cpp`](https://github.com/vhonowslend/streamfx-public/blob/root/source/plugin.cpp) (StreamFX plugin), [`components/blur/source/filter/filter-blur.cpp`](https://github.com/vhonowslend/streamfx-public/blob/root/components/blur/source/filter/filter-blur.cpp) (Blur filter), [`components/shader/source/gfx/shader/gfx-shader.cpp`](https://github.com/vhonowslend/streamfx-public/blob/root/components/shader/source/gfx/shader/gfx-shader.cpp) (Shader tools), [`components/ffmpeg/source/encoders/encoder-ffmpeg.cpp`](https://github.com/vhonowslend/streamfx-public/blob/root/components/ffmpeg/source/encoders/encoder-ffmpeg.cpp) (FFmpeg encoder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_plugin["Plugin Core"]
  node_streamfx["StreamFX plugin<br/>[plugin.cpp]"]
  node_source_tracking["Source tracking"]
end

subgraph group_visual["Visual Effects"]
  node_blur_filter["Blur filter<br/>[filter-blur.cpp]"]
  node_blur_algorithms["Blur algorithms<br/>[gfx-blur-base.cpp]"]
  node_color_grade["Color grading"]
  node_dynamic_mask["Dynamic mask"]
  node_sdf_effects["SDF effects"]
  node_transform["Transform filter"]
  node_shader["Shader tools<br/>[gfx-shader.cpp]"]
  node_shader_source["Shader source<br/>[source-shader.cpp]"]
  node_shader_transition["Shader transition"]
  node_autoframing["Auto framing"]
  node_mirror["Mirror source<br/>[source-mirror.cpp]"]
end

subgraph group_media["Media Processing"]
  node_denoising["Denoising"]
  node_upscaling["Upscaling"]
  node_virtual_greenscreen["Virtual greenscreen"]
  node_ffmpeg_encoder["FFmpeg encoder<br/>[encoder-ffmpeg.cpp]"]
  node_ffmpeg_handler["Codec handlers<br/>[handler.cpp]"]
  node_nvidia_effects["NVIDIA effects"]
  node_nvidia_cuda["CUDA context"]
end

subgraph group_graphics["Graphics Runtime"]
  node_gs_effects["OBS graphics effects<br/>[gs-effect.cpp]"]
  node_gs_rendering["Render targets"]
  node_gfx_util["Graphics utilities<br/>[gfx-util.cpp]"]
  node_mipmapper["Mipmapping<br/>[gfx-mipmapper.cpp]"]
end

subgraph group_support["Plugin Support"]
  node_ui["Plugin UI<br/>[ui.cpp]"]
  node_updater["Release updater<br/>[updater.cpp]"]
end

node_obs_user(("OBS user"))
node_github["GitHub releases"]

node_obs_user -->|"uses in OBS"| node_streamfx
node_streamfx -->|"offers blur"| node_blur_filter
node_streamfx -->|"offers shaders"| node_shader
node_blur_filter -->|"selects and creates"| node_blur_algorithms
node_blur_filter -->|"uses tracking"| node_source_tracking
node_blur_filter -->|"uses graphics helpers"| node_gs_effects
node_shader -->|"uses graphics helpers"| node_gs_effects
node_updater -->|"queries releases"| node_github
node_streamfx -.-> node_color_grade
node_streamfx -.-> node_dynamic_mask
node_streamfx -.-> node_sdf_effects
node_streamfx -.-> node_transform
node_streamfx -.-> node_shader_source
node_streamfx -.-> node_shader_transition
node_streamfx -.-> node_autoframing
node_streamfx -.-> node_mirror
node_streamfx -.-> node_denoising
node_streamfx -.-> node_upscaling
node_streamfx -.-> node_virtual_greenscreen
node_streamfx -.-> node_ffmpeg_encoder
node_ffmpeg_encoder -.-> node_ffmpeg_handler
node_streamfx -.-> node_nvidia_effects
node_nvidia_effects -.-> node_nvidia_cuda
node_streamfx -.-> node_ui
node_streamfx -.-> node_updater

click node_streamfx "https://github.com/vhonowslend/streamfx-public/blob/root/source/plugin.cpp"
click node_source_tracking "https://github.com/vhonowslend/streamfx-public/blob/root/source/obs/obs-source-tracker.cpp"
click node_blur_filter "https://github.com/vhonowslend/streamfx-public/blob/root/components/blur/source/filter/filter-blur.cpp"
click node_blur_algorithms "https://github.com/vhonowslend/streamfx-public/blob/root/components/blur/source/gfx/blur/gfx-blur-base.cpp"
click node_color_grade "https://github.com/vhonowslend/streamfx-public/blob/root/components/color-grade/source/filters/filter-color-grade.cpp"
click node_dynamic_mask "https://github.com/vhonowslend/streamfx-public/blob/root/components/dynamic-mask/source/filters/filter-dynamic-mask.cpp"
click node_sdf_effects "https://github.com/vhonowslend/streamfx-public/blob/root/components/sdf-effects/source/filters/filter-sdf-effects.cpp"
click node_transform "https://github.com/vhonowslend/streamfx-public/blob/root/components/transform/source/filter/filter-transform.cpp"
click node_shader "https://github.com/vhonowslend/streamfx-public/blob/root/components/shader/source/gfx/shader/gfx-shader.cpp"
click node_shader_source "https://github.com/vhonowslend/streamfx-public/blob/root/components/shader/source/sources/source-shader.cpp"
click node_shader_transition "https://github.com/vhonowslend/streamfx-public/blob/root/components/shader/source/transitions/transition-shader.cpp"
click node_autoframing "https://github.com/vhonowslend/streamfx-public/blob/root/components/autoframing/source/filters/filter-autoframing.cpp"
click node_mirror "https://github.com/vhonowslend/streamfx-public/blob/root/components/mirror/source/sources/source-mirror.cpp"
click node_denoising "https://github.com/vhonowslend/streamfx-public/blob/root/components/denoising/source/filters/filter-denoising.cpp"
click node_upscaling "https://github.com/vhonowslend/streamfx-public/blob/root/components/upscaling/source/filters/filter-upscaling.cpp"
click node_virtual_greenscreen "https://github.com/vhonowslend/streamfx-public/blob/root/components/virtual-greenscreen/source/filters/filter-virtual-greenscreen.cpp"
click node_ffmpeg_encoder "https://github.com/vhonowslend/streamfx-public/blob/root/components/ffmpeg/source/encoders/encoder-ffmpeg.cpp"
click node_ffmpeg_handler "https://github.com/vhonowslend/streamfx-public/blob/root/components/ffmpeg/source/encoders/ffmpeg/handler.cpp"
click node_nvidia_effects "https://github.com/vhonowslend/streamfx-public/blob/root/components/nvidia/source/nvidia/vfx/nvidia-vfx-effect.cpp"
click node_nvidia_cuda "https://github.com/vhonowslend/streamfx-public/blob/root/components/nvidia/source/nvidia/cuda/nvidia-cuda-context.cpp"
click node_gs_effects "https://github.com/vhonowslend/streamfx-public/blob/root/source/obs/gs/gs-effect.cpp"
click node_gs_rendering "https://github.com/vhonowslend/streamfx-public/blob/root/source/obs/gs/gs-rendertarget.cpp"
click node_gfx_util "https://github.com/vhonowslend/streamfx-public/blob/root/source/gfx/gfx-util.cpp"
click node_mipmapper "https://github.com/vhonowslend/streamfx-public/blob/root/source/gfx/gfx-mipmapper.cpp"
click node_ui "https://github.com/vhonowslend/streamfx-public/blob/root/source/ui/ui.cpp"
click node_updater "https://github.com/vhonowslend/streamfx-public/blob/root/source/updater.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_streamfx,node_source_tracking,node_obs_user toneBlue
class node_blur_filter,node_blur_algorithms,node_color_grade,node_dynamic_mask,node_sdf_effects,node_transform,node_shader,node_shader_source,node_shader_transition,node_autoframing,node_mirror toneAmber
class node_denoising,node_upscaling,node_virtual_greenscreen,node_ffmpeg_encoder,node_ffmpeg_handler,node_nvidia_effects,node_nvidia_cuda toneMint
class node_gs_effects,node_gs_rendering,node_gfx_util,node_mipmapper toneRose
class node_ui,node_updater,node_github toneIndigo
```

## Components

### Plugin Core

- [StreamFX plugin](https://github.com/vhonowslend/streamfx-public/blob/root/source/plugin.cpp): `source/plugin.cpp`
- [Source tracking](https://github.com/vhonowslend/streamfx-public/blob/root/source/obs/obs-source-tracker.cpp): `source/obs/obs-source-tracker.cpp`

### Visual Effects

- [Blur filter](https://github.com/vhonowslend/streamfx-public/blob/root/components/blur/source/filter/filter-blur.cpp): `components/blur/source/filter/filter-blur.cpp`
- [Blur algorithms](https://github.com/vhonowslend/streamfx-public/blob/root/components/blur/source/gfx/blur/gfx-blur-base.cpp): `components/blur/source/gfx/blur/gfx-blur-base.cpp`
- [Color grading](https://github.com/vhonowslend/streamfx-public/blob/root/components/color-grade/source/filters/filter-color-grade.cpp): `components/color-grade/source/filters/filter-color-grade.cpp`
- [Dynamic mask](https://github.com/vhonowslend/streamfx-public/blob/root/components/dynamic-mask/source/filters/filter-dynamic-mask.cpp): `components/dynamic-mask/source/filters/filter-dynamic-mask.cpp`
- [SDF effects](https://github.com/vhonowslend/streamfx-public/blob/root/components/sdf-effects/source/filters/filter-sdf-effects.cpp): `components/sdf-effects/source/filters/filter-sdf-effects.cpp`
- [Transform filter](https://github.com/vhonowslend/streamfx-public/blob/root/components/transform/source/filter/filter-transform.cpp): `components/transform/source/filter/filter-transform.cpp`
- [Shader tools](https://github.com/vhonowslend/streamfx-public/blob/root/components/shader/source/gfx/shader/gfx-shader.cpp): `components/shader/source/gfx/shader/gfx-shader.cpp`
- [Shader source](https://github.com/vhonowslend/streamfx-public/blob/root/components/shader/source/sources/source-shader.cpp): `components/shader/source/sources/source-shader.cpp`
- [Shader transition](https://github.com/vhonowslend/streamfx-public/blob/root/components/shader/source/transitions/transition-shader.cpp): `components/shader/source/transitions/transition-shader.cpp`
- [Auto framing](https://github.com/vhonowslend/streamfx-public/blob/root/components/autoframing/source/filters/filter-autoframing.cpp): `components/autoframing/source/filters/filter-autoframing.cpp`
- [Mirror source](https://github.com/vhonowslend/streamfx-public/blob/root/components/mirror/source/sources/source-mirror.cpp): `components/mirror/source/sources/source-mirror.cpp`

### Media Processing

- [Denoising](https://github.com/vhonowslend/streamfx-public/blob/root/components/denoising/source/filters/filter-denoising.cpp): `components/denoising/source/filters/filter-denoising.cpp`
- [Upscaling](https://github.com/vhonowslend/streamfx-public/blob/root/components/upscaling/source/filters/filter-upscaling.cpp): `components/upscaling/source/filters/filter-upscaling.cpp`
- [Virtual greenscreen](https://github.com/vhonowslend/streamfx-public/blob/root/components/virtual-greenscreen/source/filters/filter-virtual-greenscreen.cpp): `components/virtual-greenscreen/source/filters/filter-virtual-greenscreen.cpp`
- [FFmpeg encoder](https://github.com/vhonowslend/streamfx-public/blob/root/components/ffmpeg/source/encoders/encoder-ffmpeg.cpp): `components/ffmpeg/source/encoders/encoder-ffmpeg.cpp`
- [Codec handlers](https://github.com/vhonowslend/streamfx-public/blob/root/components/ffmpeg/source/encoders/ffmpeg/handler.cpp): `components/ffmpeg/source/encoders/ffmpeg/handler.cpp`
- [NVIDIA effects](https://github.com/vhonowslend/streamfx-public/blob/root/components/nvidia/source/nvidia/vfx/nvidia-vfx-effect.cpp): `components/nvidia/source/nvidia/vfx/nvidia-vfx-effect.cpp`
- [CUDA context](https://github.com/vhonowslend/streamfx-public/blob/root/components/nvidia/source/nvidia/cuda/nvidia-cuda-context.cpp): `components/nvidia/source/nvidia/cuda/nvidia-cuda-context.cpp`

### Graphics Runtime

- [OBS graphics effects](https://github.com/vhonowslend/streamfx-public/blob/root/source/obs/gs/gs-effect.cpp): `source/obs/gs/gs-effect.cpp`
- [Render targets](https://github.com/vhonowslend/streamfx-public/blob/root/source/obs/gs/gs-rendertarget.cpp): `source/obs/gs/gs-rendertarget.cpp`
- [Graphics utilities](https://github.com/vhonowslend/streamfx-public/blob/root/source/gfx/gfx-util.cpp): `source/gfx/gfx-util.cpp`
- [Mipmapping](https://github.com/vhonowslend/streamfx-public/blob/root/source/gfx/gfx-mipmapper.cpp): `source/gfx/gfx-mipmapper.cpp`

### Plugin Support

- [Plugin UI](https://github.com/vhonowslend/streamfx-public/blob/root/source/ui/ui.cpp): `source/ui/ui.cpp`
- [Release updater](https://github.com/vhonowslend/streamfx-public/blob/root/source/updater.cpp): `source/updater.cpp`

### Other components

- **OBS user**
- **GitHub releases**

## Connections

- OBS user → StreamFX plugin: uses in OBS
- StreamFX plugin → Blur filter: offers blur
- StreamFX plugin → Shader tools: offers shaders
- Blur filter → Blur algorithms: selects and creates (evidence: `components/blur/source/filter/filter-blur.cpp`)
- Blur filter → Source tracking: uses tracking (evidence: `components/blur/source/filter/filter-blur.cpp`)
- Blur filter → OBS graphics effects: uses graphics helpers (evidence: `components/blur/source/filter/filter-blur.cpp`)
- Shader tools → OBS graphics effects: uses graphics helpers (evidence: `components/shader/source/gfx/shader/gfx-shader.cpp`)
- Release updater → GitHub releases: queries releases (evidence: `source/updater.cpp`)
- StreamFX plugin → Color grading
- StreamFX plugin → Dynamic mask
- StreamFX plugin → SDF effects
- StreamFX plugin → Transform filter
- StreamFX plugin → Shader source
- StreamFX plugin → Shader transition
- StreamFX plugin → Auto framing
- StreamFX plugin → Mirror source
- StreamFX plugin → Denoising
- StreamFX plugin → Upscaling
- StreamFX plugin → Virtual greenscreen
- StreamFX plugin → FFmpeg encoder
- FFmpeg encoder → Codec handlers
- StreamFX plugin → NVIDIA effects
- NVIDIA effects → CUDA context
- StreamFX plugin → Plugin UI
- StreamFX plugin → Release updater
