| 1 | pub mod audio; |
| 2 | #[cfg(target_os = "linux")] |
| 3 | pub mod audio_capture; |
| 4 | #[cfg(target_os = "windows")] |
| 5 | #[path = "audio_capture_windows.rs"] |
| 6 | pub mod audio_capture; |
| 7 | #[cfg(any(target_os = "linux", target_os = "windows"))] |
| 8 | pub mod camera; |
| 9 | #[cfg(target_os = "linux")] |
| 10 | pub mod capture; |
| 11 | #[cfg(target_os = "windows")] |
| 12 | #[path = "capture_windows.rs"] |
| 13 | pub mod capture; |
| 14 | pub mod congestion; |
| 15 | |
| 16 | #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)] |
| 17 | pub enum Target { |
| 18 | Screen(usize), |
| 19 | Window(usize), |
| 20 | } |
| 21 | |
| 22 | pub struct Source { |
| 23 | pub target: Target, |
| 24 | pub name: String, |
| 25 | pub preview: Option<image::RgbaImage>, |
| 26 | } |
| 27 | pub mod encode; |
| 28 | #[cfg(any(target_os = "linux", target_os = "windows"))] |
| 29 | pub mod fake; |
| 30 | pub mod frame; |
| 31 | pub mod pacer; |
| 32 | pub mod reassembly; |
| 33 | pub mod session; |
| 34 | #[cfg(not(any(target_os = "linux", target_os = "windows")))] |
| 35 | mod unsupported; |
| 36 | #[cfg(not(any(target_os = "linux", target_os = "windows")))] |
| 37 | pub use unsupported::{audio_capture, camera, capture}; |