Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Add screenshot editor integration and DecodedFrame constructor
Richie McIlroyc982991deabb
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rsindex 5dc049ef2..1580756f9 100644--- a/apps/desktop/src-tauri/src/lib.rs+++ b/apps/desktop/src-tauri/src/lib.rs@@ -22,6 +22,7 @@ mod posthog;mod presets;mod recording;mod recording_settings;+mod screenshot_editor;mod target_select_overlay;mod thumbnails;mod tray;@@ -58,6 +59,7 @@ use kameo::{Actor, actor::ActorRef};use notifications::NotificationType;use recording::{InProgressRecording, RecordingEvent, RecordingInputKind};use scap_targets::{Display, DisplayId, WindowId, bounds::LogicalBounds};+use screenshot_editor::{create_screenshot_editor_instance, update_screenshot_config};use serde::{Deserialize, Serialize};use serde_json::json;use specta::Type;@@ -2257,6 +2259,8 @@ pub async fn run(recording_logging_handle: LoggingHandle, logs_dir: PathBuf) {permissions::request_permission,upload_exported_video,upload_screenshot,+ create_screenshot_editor_instance,+ update_screenshot_config,get_recording_meta,save_file_dialog,list_recordings,diff --git a/crates/rendering/src/decoder/mod.rs b/crates/rendering/src/decoder/mod.rsindex e0ee74116..8875f6324 100644--- a/crates/rendering/src/decoder/mod.rs+++ b/crates/rendering/src/decoder/mod.rs@@ -17,6 +17,14 @@ pub struct DecodedFrame {}impl DecodedFrame {+ pub fn new(data: Vec<u8>, width: u32, height: u32) -> Self {+ Self {+ data: Arc::new(data),+ width,+ height,+ }+ }+pub fn data(&self) -> &[u8] {&self.data}