src.nth.io/

summaryrefslogtreecommitdiff
path: root/main/display.h
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-06-19 19:41:20 -0500
committerLuke Hoersten <[email protected]>2026-06-19 19:41:20 -0500
commit1063a4e33022efdbe071df07abe59d9c0ba01173 (patch)
tree1ce071b90e3b11d2e6d11b78f8c48eabd35c594c /main/display.h
parentbccf0fa25e59f4fa9df9d0b3a129aeb369f17a87 (diff)
scrypted: user-controllable JPEG quality (1–31) in the viewport Settings
Adds a "JPEG quality" field under Display alongside frame_interval_ms, brightness, etc. ffmpeg -q:v range 1..31 — 1 = highest quality + biggest JPEG (~140KB at panel-native), higher numbers = smaller + lossier. Plumbed through both the live-stream encoder and the snapshot one-shot encoder. Reads from viewport storage; defaults to 1 if unset; clamps to [1, 31] on read so an out-of-range input from the UI doesn't crash ffmpeg. Changing the value triggers the existing onBindingChanged debounce which already restarts the live stream — picks up the new quality within ~300ms of Save.
Diffstat (limited to 'main/display.h')
0 files changed, 0 insertions, 0 deletions