mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-19 15:18:40 +01:00
feat(timeline): index a session
`timeline.jsonl` is a merged, time-sorted index that points into the raw files by byte range, so the raw files are never rewritten and the index can be rebuilt at any time. It places komorebi's log, events, the OS trace and the recorder's own incidents on one timeline, and answers what was around a video time and where in the video a log line or event is. `frames` extracts PNG frames from the recorded video with ffmpeg, which is never used to capture.
This commit is contained in:
1 parent
383cc3c3db
commit
1006ec2570
7 files changed
+2347
No files matched your search
Generated
+49
@@ -233,6 +233,15 @@ version = "0.8.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
|
||||
|
||||
[[package]]
|
||||
name = "crc32fast"
|
||||
version = "1.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "crossbeam-channel"
|
||||
version = "0.5.15"
|
||||
@@ -319,12 +328,31 @@ version = "2.4.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
|
||||
|
||||
[[package]]
|
||||
name = "fdeflate"
|
||||
version = "0.3.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
|
||||
dependencies = [
|
||||
"simd-adler32",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "find-msvc-tools"
|
||||
version = "0.1.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
|
||||
|
||||
[[package]]
|
||||
name = "flate2"
|
||||
version = "1.1.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
|
||||
dependencies = [
|
||||
"crc32fast",
|
||||
"miniz_oxide",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "foldhash"
|
||||
version = "0.1.5"
|
||||
@@ -498,6 +526,7 @@ dependencies = [
|
||||
"objc2-foundation",
|
||||
"objc2-screen-capture-kit",
|
||||
"parking_lot",
|
||||
"png",
|
||||
"schemars",
|
||||
"serde",
|
||||
"serde_json_lenient",
|
||||
@@ -575,6 +604,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
|
||||
dependencies = [
|
||||
"adler2",
|
||||
"simd-adler32",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -789,6 +819,19 @@ version = "0.2.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
||||
|
||||
[[package]]
|
||||
name = "png"
|
||||
version = "0.18.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"crc32fast",
|
||||
"fdeflate",
|
||||
"flate2",
|
||||
"miniz_oxide",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "prettyplease"
|
||||
version = "0.2.37"
|
||||
@@ -1012,6 +1055,12 @@ version = "1.3.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
||||
|
||||
[[package]]
|
||||
name = "simd-adler32"
|
||||
version = "0.3.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"
|
||||
|
||||
[[package]]
|
||||
name = "slab"
|
||||
version = "0.4.12"
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
"color-spantrace 0.3.0 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"colorchoice 1.0.5 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"core-foundation-sys 0.8.7 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"crc32fast 1.5.0 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"crossbeam-channel 0.5.15 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"crossbeam-utils 0.8.21 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"dirs 6.0.0 registry+https://github.com/rust-lang/crates.io-index",
|
||||
@@ -38,6 +39,8 @@
|
||||
"errno 0.3.14 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"eyre 0.6.12 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"fastrand 2.4.1 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"fdeflate 0.3.7 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"flate2 1.1.9 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"getrandom 0.4.2 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"gimli 0.32.3 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"heck 0.5.0 registry+https://github.com/rust-lang/crates.io-index",
|
||||
@@ -62,6 +65,7 @@
|
||||
"parking_lot 0.12.5 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"parking_lot_core 0.9.12 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"pin-project-lite 0.2.17 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"png 0.18.1 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"proc-macro2 1.0.106 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"quote 1.0.45 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"ref-cast 1.0.25 registry+https://github.com/rust-lang/crates.io-index",
|
||||
@@ -145,6 +149,7 @@
|
||||
"color-spantrace 0.3.0 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"colorchoice 1.0.5 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"core-foundation-sys 0.8.7 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"crc32fast 1.5.0 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"crossbeam-channel 0.5.15 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"crossbeam-utils 0.8.21 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"dirs 6.0.0 registry+https://github.com/rust-lang/crates.io-index",
|
||||
@@ -154,6 +159,8 @@
|
||||
"errno 0.3.14 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"eyre 0.6.12 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"fastrand 2.4.1 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"fdeflate 0.3.7 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"flate2 1.1.9 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"getrandom 0.4.2 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"gimli 0.32.3 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"heck 0.5.0 registry+https://github.com/rust-lang/crates.io-index",
|
||||
@@ -184,6 +191,7 @@
|
||||
"parking_lot 0.12.5 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"parking_lot_core 0.9.12 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"pin-project-lite 0.2.17 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"png 0.18.1 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"proc-macro2 1.0.106 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"quote 1.0.45 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"ref-cast 1.0.25 registry+https://github.com/rust-lang/crates.io-index",
|
||||
@@ -200,6 +208,7 @@
|
||||
"serde_json 1.0.149 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"serde_json_lenient 0.2.4 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"sharded-slab 0.1.7 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"simd-adler32 0.3.9 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"smallvec 1.15.1 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"strsim 0.11.1 registry+https://github.com/rust-lang/crates.io-index",
|
||||
"syn 2.0.117 registry+https://github.com/rust-lang/crates.io-index",
|
||||
|
||||
@@ -77,6 +77,9 @@ only when they changed), and what happened to the recording itself (`recorder.js
|
||||
The OS trace is under `oslog/`, one file per stream.
|
||||
Each display's video is `video-<id>[-<n>].mp4` with a `frames-<id>[-<n>].csv` beside it holding every frame's timestamp,
|
||||
one segment to a file: a display that is unplugged and returns starts a new segment instead of extending the old one.
|
||||
`timeline.jsonl` is the only derived file: a time-sorted index of every record that points into the raw files by byte
|
||||
range. Anything that happens to the recorder leaves the raw files readable, and the index is rebuilt from them with
|
||||
`reindex`. The file formats are specified on the `session` and `timeline` modules.
|
||||
|
||||
## Recording
|
||||
|
||||
@@ -101,3 +104,4 @@ backend that docks and undocks without hardware.
|
||||
| A running recorder can be told from one that died | the OS: an exclusive lock on `recorder.lock`, held for as long as the recorder runs and dropped by the OS when the process ends however it ends |
|
||||
| A manifest from a newer build is not read | a runtime error when the manifest is read, covered by `rejects_manifests_from_the_future` |
|
||||
| A manifest is never half-written | write to a temporary file and rename |
|
||||
| The raw files are never rewritten | convention: the index only references them, and `reindex` rebuilds the index from them |
|
||||
@@ -12,6 +12,7 @@ color-eyre = { workspace = true }
|
||||
crossbeam-channel = { workspace = true }
|
||||
dirs = { workspace = true }
|
||||
parking_lot = { workspace = true }
|
||||
png = "0.18"
|
||||
schemars = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
serde_json = { workspace = true }
|
||||
|
||||
@@ -0,0 +1,273 @@
|
||||
//! Extracting still frames from a session's video so the exact moment can be looked at.
|
||||
//!
|
||||
//! `ffmpeg` is used to extract stills, here, and by the self-test to read its clock strip; it is
|
||||
//! never used for capture or for playback. Frames in the mp4 only exist where the screen
|
||||
//! changed, so the frame returned for a timecode is the most recent one at or before it - which
|
||||
//! is exactly what was on screen at that moment.
|
||||
//!
|
||||
//! This is the `frames` command: [`extract`] picks, for each time asked for, the segment of each
|
||||
//! display that has video then (see [`crate::session::Manifest::segment_at`]), seeks to the right
|
||||
//! place in that segment's file, and writes a PNG into the session's `frames/` directory. A display
|
||||
//! with no video at that moment (unplugged, asleep, between segments) is reported, not an error.
|
||||
//!
|
||||
//! Nothing here is specific to a host or a komorebi flavor: the video is an mp4 either way, and
|
||||
//! `ffmpeg` reads it. What differs by OS is only how to get `ffmpeg` ([`ffmpeg_install_hint`]).
|
||||
|
||||
use crate::session::Manifest;
|
||||
use crate::session::Session;
|
||||
use crate::timecode;
|
||||
use color_eyre::eyre;
|
||||
use color_eyre::eyre::WrapErr;
|
||||
use serde::Serialize;
|
||||
use std::path::PathBuf;
|
||||
use std::process::Command;
|
||||
|
||||
/// A still frame that [`extract`] wrote.
|
||||
#[derive(Debug, Clone, PartialEq, Serialize)]
|
||||
pub struct ExtractedFrame {
|
||||
/// The id of the display the frame is of.
|
||||
pub display: u32,
|
||||
/// The time that was asked for, in seconds of video time.
|
||||
pub video_s: f64,
|
||||
/// The time within the display's own file.
|
||||
pub file_s: f64,
|
||||
/// Where the PNG was written: [`frame_path`] of the display and `video_s`.
|
||||
pub path: PathBuf,
|
||||
}
|
||||
|
||||
/// Returns where the frame for `video_s` on `display` goes: `frames/frame-<display>-t<video_s>.png`
|
||||
/// in the session directory.
|
||||
///
|
||||
/// The time is written in seconds with three decimals, zero padded to nine characters, so the
|
||||
/// names of one display's frames sort in time order for any time below 100,000 seconds. The time
|
||||
/// is the one asked for, not the time of the frame ffmpeg found.
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```rust
|
||||
/// use komorebi_recorder::frames::frame_path;
|
||||
/// use komorebi_recorder::session::Session;
|
||||
/// use std::path::PathBuf;
|
||||
///
|
||||
/// let session = Session { dir: PathBuf::from("/s") };
|
||||
/// let earlier = frame_path(&session, 2, 9.5);
|
||||
/// let later = frame_path(&session, 2, 12.25);
|
||||
/// assert_eq!(later, PathBuf::from("/s/frames/frame-2-t00012.250.png"));
|
||||
/// assert!(earlier < later);
|
||||
/// ```
|
||||
#[must_use]
|
||||
pub fn frame_path(session: &Session, display: u32, video_s: f64) -> PathBuf {
|
||||
session.path(format!("frames/frame-{display}-t{video_s:09.3}.png"))
|
||||
}
|
||||
|
||||
/// Returns how to get `ffmpeg` on this OS, as a fragment to put in a sentence: `winget` or `scoop`
|
||||
/// on Windows, `brew` or the `nix develop` shell on macOS, and the package manager elsewhere.
|
||||
#[must_use]
|
||||
pub fn ffmpeg_install_hint() -> &'static str {
|
||||
if cfg!(windows) {
|
||||
"e.g. `winget install Gyan.FFmpeg` or `scoop install ffmpeg`"
|
||||
} else if cfg!(target_os = "macos") {
|
||||
"e.g. `brew install ffmpeg`, or use `nix develop`, which provides it"
|
||||
} else {
|
||||
"with your package manager"
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns true if and only if `ffmpeg` can be run: `ffmpeg -version` is found on `PATH` and
|
||||
/// succeeds.
|
||||
#[must_use]
|
||||
pub fn ffmpeg_available() -> bool {
|
||||
Command::new("ffmpeg")
|
||||
.arg("-version")
|
||||
.output()
|
||||
.is_ok_and(|output| output.status.success())
|
||||
}
|
||||
|
||||
/// A display that was asked for but had no video at the requested moment.
|
||||
#[derive(Debug, Clone, PartialEq, Serialize)]
|
||||
pub struct Skipped {
|
||||
/// The id of the display.
|
||||
pub display: u32,
|
||||
/// The time that was asked for, in seconds of video time.
|
||||
pub video_s: f64,
|
||||
/// Why there was no video, as a sentence.
|
||||
pub reason: String,
|
||||
}
|
||||
|
||||
/// What [`extract`] produced: the frames it wrote and the displays it had to leave out.
|
||||
#[derive(Debug, Clone, PartialEq, Serialize)]
|
||||
pub struct Extraction {
|
||||
/// The frames written, in the order of the times asked for and, within a time, of the displays'
|
||||
/// ids.
|
||||
pub frames: Vec<ExtractedFrame>,
|
||||
/// The displays that had no video at a time asked for. A time at which every display was
|
||||
/// skipped is an error, so each time asked for has at least one frame in `frames`.
|
||||
pub skipped: Vec<Skipped>,
|
||||
}
|
||||
|
||||
/// Extracts a frame at each of `times` from every display (or just `display`) that has video then.
|
||||
///
|
||||
/// A display that was unplugged, asleep or between segments at that moment is reported in
|
||||
/// `skipped` rather than failing the others.
|
||||
///
|
||||
/// `times` are in seconds of video time (see [`crate::timecode`]). For each, and each display
|
||||
/// wanted, the segment with video at that time is found with
|
||||
/// [`Manifest::segment_at`](crate::session::Manifest::segment_at), which allows 50 ms either side
|
||||
/// of a segment's span. `ffmpeg` is asked for one frame at that time in the segment's file
|
||||
/// (`file_s`, never below zero), and writes it to [`frame_path`]. Because the video has frames only
|
||||
/// where the screen changed, that frame is the latest one at or before the time. An existing frame
|
||||
/// at the same path is overwritten.
|
||||
///
|
||||
/// `display` limits the extraction to one display id; `None` is every display recorded.
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns an error if
|
||||
///
|
||||
/// * `ffmpeg` cannot be run (the message says how to install it for this OS);
|
||||
/// * the session has no recorded video, or none for `display`;
|
||||
/// * a time is before the first frame or more than half a second after the end of the recorded
|
||||
/// video (the message gives the span);
|
||||
/// * no display has video at a time (the message names the displays);
|
||||
/// * the `frames/` directory cannot be created, or `ffmpeg` fails or writes no file (the message
|
||||
/// has what `ffmpeg` said).
|
||||
///
|
||||
/// Frames already written for earlier times stay on disk when a later time fails.
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```rust,no_run
|
||||
/// use komorebi_recorder::frames::extract;
|
||||
/// use komorebi_recorder::session::Session;
|
||||
///
|
||||
/// let session = Session::open("/path/to/recordings/20261026T120000Z")?;
|
||||
/// let manifest = session.manifest()?;
|
||||
///
|
||||
/// // what was on screen at 12.5 s and at 14 s, on every display that had video then
|
||||
/// let extraction = extract(&session, &manifest, &[12.5, 14.0], None)?;
|
||||
/// for frame in &extraction.frames {
|
||||
/// println!("display {} at {:.3} s into its file: {}", frame.display, frame.file_s, frame.path.display());
|
||||
/// }
|
||||
/// # Ok::<(), Box<dyn std::error::Error>>(())
|
||||
/// ```
|
||||
///
|
||||
/// This needs `ffmpeg` and a recorded session, so it is not run, and no test covers it: the
|
||||
/// `frames` command is the check. What it can be checked against without video is the file name
|
||||
/// ([`frame_path`], and the test `frame_paths_sort_chronologically`) and the segment lookup
|
||||
/// (`Manifest::segment_at`, in the tests of `timeline`).
|
||||
pub fn extract(
|
||||
session: &Session,
|
||||
manifest: &Manifest,
|
||||
times: &[f64],
|
||||
display: Option<u32>,
|
||||
) -> eyre::Result<Extraction> {
|
||||
if !ffmpeg_available() {
|
||||
eyre::bail!(
|
||||
"ffmpeg was not found on PATH; install it ({}) to extract frames",
|
||||
ffmpeg_install_hint()
|
||||
);
|
||||
}
|
||||
|
||||
let ids: Vec<u32> = manifest
|
||||
.display_ids()
|
||||
.into_iter()
|
||||
.filter(|id| display.is_none_or(|wanted| wanted == *id))
|
||||
.collect();
|
||||
|
||||
if ids.is_empty() {
|
||||
eyre::bail!(match display {
|
||||
Some(id) => format!("display {id} has no recorded video in this session"),
|
||||
None => "this session has no recorded video".to_string(),
|
||||
});
|
||||
}
|
||||
|
||||
std::fs::create_dir_all(session.path("frames"))?;
|
||||
let (_, duration) = manifest.video_span();
|
||||
let mut extraction = Extraction {
|
||||
frames: Vec::new(),
|
||||
skipped: Vec::new(),
|
||||
};
|
||||
|
||||
for &video_s in times {
|
||||
if video_s < 0.0 || video_s > duration + 0.5 {
|
||||
eyre::bail!(
|
||||
"{} is outside the recorded video (00:00.000 to {})",
|
||||
timecode::format(video_s),
|
||||
timecode::format(duration)
|
||||
);
|
||||
}
|
||||
|
||||
let before = extraction.frames.len();
|
||||
for &id in &ids {
|
||||
let Some(entry) = manifest.segment_at(id, video_s) else {
|
||||
extraction.skipped.push(Skipped {
|
||||
display: id,
|
||||
video_s,
|
||||
reason: "no video for this display at that moment (it was unplugged, asleep, \
|
||||
or its stream had stopped)"
|
||||
.to_string(),
|
||||
});
|
||||
continue;
|
||||
};
|
||||
|
||||
let file_s = (video_s - entry.offset_s).max(0.0);
|
||||
let path = frame_path(session, id, video_s);
|
||||
let output = Command::new("ffmpeg")
|
||||
.args(["-y", "-v", "error", "-ss", &format!("{file_s:.3}"), "-i"])
|
||||
.arg(session.path(&entry.result.file))
|
||||
.args(["-frames:v", "1"])
|
||||
.arg(&path)
|
||||
.output()
|
||||
.wrap_err("could not run ffmpeg")?;
|
||||
|
||||
if !output.status.success() || !path.is_file() {
|
||||
eyre::bail!(
|
||||
"ffmpeg could not extract a frame at {} from {}: {}",
|
||||
timecode::format(file_s),
|
||||
entry.result.file,
|
||||
String::from_utf8_lossy(&output.stderr).trim()
|
||||
);
|
||||
}
|
||||
|
||||
extraction.frames.push(ExtractedFrame {
|
||||
display: id,
|
||||
video_s,
|
||||
file_s,
|
||||
path,
|
||||
});
|
||||
}
|
||||
|
||||
if extraction.frames.len() == before {
|
||||
eyre::bail!(
|
||||
"no display has video at {}: {}",
|
||||
timecode::format(video_s),
|
||||
extraction
|
||||
.skipped
|
||||
.iter()
|
||||
.filter(|skipped| skipped.video_s == video_s)
|
||||
.map(|skipped| format!("display {}", skipped.display))
|
||||
.collect::<Vec<_>>()
|
||||
.join(", ")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Ok(extraction)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn frame_paths_sort_chronologically() {
|
||||
let session = Session {
|
||||
dir: PathBuf::from("/s"),
|
||||
};
|
||||
let a = frame_path(&session, 2, 9.5);
|
||||
let b = frame_path(&session, 2, 12.25);
|
||||
assert_eq!(a, PathBuf::from("/s/frames/frame-2-t00009.500.png"));
|
||||
assert_eq!(b, PathBuf::from("/s/frames/frame-2-t00012.250.png"));
|
||||
assert!(a < b);
|
||||
}
|
||||
}
|
||||
@@ -50,6 +50,7 @@
|
||||
//! | [`session`] | the session directory and its manifest |
|
||||
//! | [`capture`] | capturing the screen into segments of video |
|
||||
//! | [`power`] and [`system_state`] | sleep, wake, lock and display changes |
|
||||
//! | [`timeline`] and [`frames`] | the time-sorted index of a session and the frame times of its video |
|
||||
//!
|
||||
//! # What is not supported
|
||||
//!
|
||||
@@ -65,6 +66,7 @@
|
||||
pub mod analysis;
|
||||
pub mod capture;
|
||||
pub mod clock;
|
||||
pub mod frames;
|
||||
pub mod incidents;
|
||||
pub mod komorebi_link;
|
||||
pub mod lock;
|
||||
@@ -74,3 +76,4 @@ pub mod session;
|
||||
pub mod sources;
|
||||
pub mod system_state;
|
||||
pub mod timecode;
|
||||
pub mod timeline;
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user