mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
* capture: record lab movies as full-quality HEVC * capture: live HEVC check and microphone refusal test; docs
58 lines
2.1 KiB
Rust
58 lines
2.1 KiB
Rust
//! Screen recording for macOS on `ScreenCaptureKit`.
|
|
//!
|
|
//! A host describes a recording with a [`Plan`] and starts it with [`Recorder::start`]. Each
|
|
//! display, window or region source records to its own MP4: H.264 through an
|
|
//! `SCRecordingOutput`, or HEVC at a constant quality through Hex's own `AVAssetWriter`
|
|
//! ([`Encoder`]).
|
|
//! [`Recording::stop`] returns at once; the files are finished on the recording's own thread and
|
|
//! come back from [`Finishing::wait`] along with a versioned [`Manifest`] that places every file
|
|
//! on one clock: Mach host time in nanoseconds.
|
|
//!
|
|
//! The crate holds no global state and starts nothing that outlives a recording.
|
|
#![cfg(target_os = "macos")]
|
|
|
|
mod av_writer;
|
|
mod clicks;
|
|
mod cursor;
|
|
mod error;
|
|
mod external_audio;
|
|
mod final_frame_hold;
|
|
mod frames;
|
|
mod input;
|
|
mod manifest;
|
|
mod native;
|
|
mod plan;
|
|
mod probe;
|
|
mod screenshot;
|
|
mod session;
|
|
mod system_audio;
|
|
#[cfg(test)]
|
|
mod test_dir;
|
|
mod time;
|
|
mod video_writer;
|
|
|
|
pub use cursor::{
|
|
CursorButton, CursorButtonEvent, CursorButtonState, CursorCapture, CursorCaptureDiagnostics,
|
|
CursorClickCaptureStatus, CursorPositionSample, CursorTelemetry, Millis,
|
|
NORMALIZED_COORDINATE_MAX, NormalizedCoordinate,
|
|
};
|
|
pub use error::Error;
|
|
pub use external_audio::ExternalAudioSink;
|
|
pub use final_frame_hold::{FinalFrameHold, FinalFrameHoldError, hold_final_video_frame};
|
|
pub use frames::{Frame, FrameTap};
|
|
pub use input::{
|
|
HostEvent, HostInputReceiver, HostInputSender, InputEvent, KeyPolicy, Modifiers, RecordedInput,
|
|
filter_key, host_channel, secure_input_enabled,
|
|
};
|
|
pub use manifest::{
|
|
AudioGap, Clock, CursorBundle, FileEntry, FileKind, InputBundle, MANIFEST_VERSION, Manifest,
|
|
Marker, Permission, SIDECAR_VERSION, SourceEntry, TrackKind,
|
|
};
|
|
pub use native::Recorder;
|
|
pub use plan::{
|
|
AudioPlan, CursorDrawing, Encoder, Exclusions, ExternalMic, Input, MANIFEST_NAME, MIC_WARMUP,
|
|
Mic, Names, Plan, Rect, Source, SourcePlan,
|
|
};
|
|
pub use screenshot::{Image, screenshot, screenshot_with};
|
|
pub use session::{Finished, Finishing, Recording, SourceCursor};
|
|
pub use time::{HostTime, MediaTime, Timebase};
|