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>
No files matched your search
@@ -38,7 +38,7 @@ use voelin_core::settings::{
|
|||||||
};
|
};
|
||||||
use voelin_core::stream::{EndReason, StreamSetup, ViewerInfo, ViewerState};
|
use voelin_core::stream::{EndReason, StreamSetup, ViewerInfo, ViewerState};
|
||||||
use voelin_core::studio::scene::{
|
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::studio::{self, SourceChange, Stats, Status, Studio, camera};
|
||||||
use voelin_core::{Command, HistoryMessage, HistorySource, StreamState};
|
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());
|
let mut cam = source(2, "Camera", camera.clone(), Transform::default());
|
||||||
cam.transform = vm::studio::placement(&camera, (1920, 1080));
|
cam.transform = vm::studio::placement(&camera, (1920, 1080));
|
||||||
cam.background = Background::Blur { strength: 0.04 };
|
cam.background = Background::Blur { strength: 0.04 };
|
||||||
main.sources = vec![
|
let mut game = source(
|
||||||
source(
|
1,
|
||||||
1,
|
"Game Capture",
|
||||||
"Game Capture",
|
SourceKind::Pattern { size: (1280, 720) },
|
||||||
SourceKind::Pattern { size: (1280, 720) },
|
Transform { fit: Fit::Cover, ..Transform::full(1920, 1080) },
|
||||||
Transform { fit: Fit::Cover, ..Transform::full(1920, 1080) },
|
);
|
||||||
),
|
// The pattern's frame counter sits in its top-left corner, under the
|
||||||
cam,
|
// 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");
|
let mut chatting = Scene::new(2, "Just Chatting");
|
||||||
chatting.sources = vec![source(
|
chatting.sources = vec![source(
|
||||||
1,
|
1,
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 137 KiB |
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |