voelin-ui: keep the demo studio's game capture clear of the LIVE badge

The sample studio's "Game Capture" is the synthetic test pattern, whose
frame counter is drawn large in its top-left corner, exactly where the
preview puts LIVE and the timer: the screenshots showed half-hidden
glyphs there. The sample source now crops the pattern's top 120 rows
away (it still covers the frame), and the studio screenshots are taken
again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
selikhovandClaude Opus 5.5 committed 2026-10-03 12:24:56 +03:00
1 parent 39f5814d4a
commit 28b2bb1925
8 files changed
+11 -10

No files matched your search

+11 -10
View File
@@ -38,7 +38,7 @@ use voelin_core::settings::{
};
use voelin_core::stream::{EndReason, StreamSetup, ViewerInfo, ViewerState};
use voelin_core::studio::scene::{
Align, Background, Colour, Fit, Scene, Scenes, Source, SourceKind, Transform,
Align, Background, Colour, Crop, Fit, Scene, Scenes, Source, SourceKind, Transform,
};
use voelin_core::studio::{self, SourceChange, Stats, Status, Studio, camera};
use voelin_core::{Command, HistoryMessage, HistorySource, StreamState};
@@ -329,15 +329,16 @@ fn demo_settings() -> Settings {
let mut cam = source(2, "Camera", camera.clone(), Transform::default());
cam.transform = vm::studio::placement(&camera, (1920, 1080));
cam.background = Background::Blur { strength: 0.04 };
main.sources = vec![
source(
1,
"Game Capture",
SourceKind::Pattern { size: (1280, 720) },
Transform { fit: Fit::Cover, ..Transform::full(1920, 1080) },
),
cam,
];
let mut game = source(
1,
"Game Capture",
SourceKind::Pattern { size: (1280, 720) },
Transform { fit: Fit::Cover, ..Transform::full(1920, 1080) },
);
// The pattern's frame counter sits in its top-left corner, under the
// preview's LIVE badge and timer: cropped away.
game.crop = Crop { top: 120, ..Crop::default() };
main.sources = vec![game, cam];
let mut chatting = Scene::new(2, "Just Chatting");
chatting.sources = vec![source(
1,
Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB