Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
test(compositor): fix two local-only D3D11 render tests
EtienneLescotfd8e6ce08655
diff --git a/crates/compositor/tests/device_frame_render.rs b/crates/compositor/tests/device_frame_render.rsindex 8780f1e91..0fb753cba 100644--- a/crates/compositor/tests/device_frame_render.rs+++ b/crates/compositor/tests/device_frame_render.rs@@ -550,7 +550,8 @@ fn the_device_trails_with_the_screen_under_motion_blur() {json};for device in ["laptop", "window"] {- for rotation in ["null", r#""iso""#, ORBIT] {+ // Un libellé par rotation : ORBIT est un fragment JSON, illégal dans un nom de fichier Windows.+ for (label, rotation) in [("flat", "null"), ("iso", r#""iso""#), ("orbit", ORBIT)] {let case = format!("{device} {rotation}");let still = |blur| render(&comp, &blue, &json(device, rotation, blur), None, 4.0);assert!(still(0.0) == still(1.0), "{case} : immobile, le flou ne doit rien changer");@@ -579,7 +580,7 @@ fn the_device_trails_with_the_screen_under_motion_blur() {}println!("{case:<24} {smeared:>5} / {probes:>5} sondes du cadre changent avec le flou");if let Some(dir) = out_dir("OPENSCREEN_DEVICE_OUT") {- let name = format!("trail-{device}-{}", rotation.trim_matches('"'));+ let name = format!("trail-{device}-{label}");save(&dir, &format!("{name}-sharp"), &sharp, (W, H));save(&dir, &format!("{name}-blurred"), &blurred, (W, H));}diff --git a/crates/compositor/tests/output_geometry_golden.rs b/crates/compositor/tests/output_geometry_golden.rsindex 723cbd8fb..369d89f39 100644--- a/crates/compositor/tests/output_geometry_golden.rs+++ b/crates/compositor/tests/output_geometry_golden.rs@@ -95,7 +95,7 @@ fn scene_json(screen: &str, webcam: &str, w: u32, h: u32) -> String {r##"{{"clips": [{{"screenPath":"{s}","webcamPath":"{c}","sourceStartSec":0,"sourceEndSec":30,"webcamOffsetSec":0,"hasAudio":true}}],"layout": {{"preset":"picture-in-picture","webcamSize":1.0,"webcamShape":"rounded","webcamMirror":false,"webcamPosition":null,"webcamReactiveZoom":false}},- "effects": {{"padding":0.1,"blur":true,"shadow":1.0,"roundnessPx":24,"motionBlur":0.0}},+ "effects": {{"padding":0.1,"blur":true,"shadow":1.0,"roundnessFrac":0.0222,"motionBlur":0.0}},"background": {{"kind":"gradient","angleDeg":135,"stops":["#eaebed","#bcc0c6"]}},"zoomRegions": [],"speedRegions": [],@@ -212,7 +212,7 @@ fn golden_side_by_side_webcam_is_not_stretched() {"clips": [{{"screenPath":"{s}","webcamPath":"{c}","sourceStartSec":0,"sourceEndSec":30,"webcamOffsetSec":0,"hasAudio":true}}],"layout": {{"preset":"dual-frame","webcamSize":1.0,"webcamShape":"rectangle","webcamMirror":false,"webcamRect":{{"x":0.66,"y":0.06,"width":0.31,"height":0.88}},"webcamReactiveZoom":false}},- "effects": {{"padding":0.0,"blur":true,"shadow":1.0,"roundnessPx":24,"motionBlur":0.0}},+ "effects": {{"padding":0.0,"blur":true,"shadow":1.0,"roundnessFrac":0.0222,"motionBlur":0.0}},"background": {{"kind":"gradient","angleDeg":135,"stops":["#b02a2a","#7a1414"]}},"zoomRegions": [], "speedRegions": [],"cursor": {{"show":false,"size":1,"smoothing":0,"motionBlur":0,"clickBounce":0,"clipToBounds":false,"theme":"default"}},@@ -278,7 +278,7 @@ fn golden_cropped_clip_is_not_stretched() {"clips": [{{"screenPath":"{s}","webcamPath":"{c}","sourceStartSec":0,"sourceEndSec":30,"webcamOffsetSec":0,"hasAudio":true}}],"layout": {{"preset":"no-webcam","webcamSize":1.0,"webcamShape":"rectangle","webcamMirror":false,"screenRect":{{"x":{sx},"y":{sy},"width":{rect_w},"height":{rect_h}}},"webcamReactiveZoom":false}},- "effects": {{"padding":0.0,"blur":true,"shadow":1.0,"roundnessPx":24,"motionBlur":0.0}},+ "effects": {{"padding":0.0,"blur":true,"shadow":1.0,"roundnessFrac":0.0222,"motionBlur":0.0}},"background": {{"kind":"gradient","angleDeg":135,"stops":["#1e3a5f","#0d1b2a"]}},"zoomRegions": [], "speedRegions": [],"cursor": {{"show":false,"size":1,"smoothing":0,"motionBlur":0,"clickBounce":0,"clipToBounds":false,"theme":"default"}},