diff --git a/crates/app/src/main.rs b/crates/app/src/main.rs index 6459def..e10f7dd 100644 --- a/crates/app/src/main.rs +++ b/crates/app/src/main.rs @@ -67,7 +67,7 @@ const LABEL_MIN_W: f32 = 36.; /// influence is an allocation bomb -- and 40 is already finer than the pixels a /// clip is ever given. /// -/// ponytail: "finer than the pixels" stops being true once the timeline is +/// corner-cut: "finer than the pixels" stops being true once the timeline is /// zoomed -- past ~25 ms per bucket the envelope reads as steps rather than as /// a shape. Ceiling: [`View::max_zoom`]'s 8 frames across the bed. The upgrade /// is a second, finer pass over the visible span only, cached like `waves` is. @@ -385,7 +385,7 @@ struct Import { /// the landing: what the worker read is dropped instead of joining the /// timeline. /// - /// ponytail: the *read* is not stopped -- a demuxer walk polls nothing, so + /// corner-cut: the *read* is not stopped -- a demuxer walk polls nothing, so /// the worker finishes into a result nobody takes, and the window is given /// back at the click either way. Ceiling: a cancelled cold 24 GB import /// still costs the disk its twenty seconds. Upgrade: a flag @@ -1653,7 +1653,7 @@ impl Player { // moves. Never on a frame a seek owed: that one is late by however long // its own reopen took, and answering it with another reopen is a loop. // - // ponytail: on a machine that cannot decode the file in real time at + // corner-cut: on a machine that cannot decode the file in real time at // all this settles into one restart per `RESYNC_GAP` -- in sync, and // stuttering, which is the honest picture of what that machine can do. // The upgrade path is dropping late frames *inside* the worker (skip @@ -3845,7 +3845,7 @@ impl Player { /// there is no such clip to move. The engine has the last word on where it /// may actually go -- this is the ask, not the answer. /// - /// ponytail: the bed now runs past the last frame whenever the timeline is + /// corner-cut: the bed now runs past the last frame whenever the timeline is /// shorter than the view ([`Scale::time_at`] clamps at the head only), so a /// clip *can* be dragged out there. Zoomed in against the far end it cannot: /// the scroll clamp pins the bed's right edge to the duration, and the @@ -4435,7 +4435,7 @@ impl Player { // The picture goes with it, or the empty window would keep showing the // last frame of a timeline that no longer exists. // - // ponytail: its atlas tile is not released -- `window.drop_image` wants + // corner-cut: its atlas tile is not released -- `window.drop_image` wants // a `&mut Window` this door has no other reason to take. One tile per // emptied library, against one per displayed frame in `pump`; the // upgrade path is threading the window through `act_on_row`. @@ -5027,7 +5027,7 @@ impl Player { // The drawn cue is keyed by that index ([`Player::sub_picture`]) // and the index now stands for another track. // - // ponytail: its atlas tile is not released -- `close_session`'s + // corner-cut: its atlas tile is not released -- `close_session`'s // note, for its reason and with its upgrade path. self.sub_image = None; format!( @@ -6980,7 +6980,7 @@ fn subtitle_detail(track: &engine::subtitle::SubtitleTrack) -> String { /// pictures, then no cues), with the last asked of the timeline instead of the /// track. /// -/// ponytail: that split reads the same public fields the list rows read +/// corner-cut: that split reads the same public fields the list rows read /// (`refused`, [`engine::subtitle::SubtitleTrack::is_bitmap`]) rather than the /// engine's decision, so a *new* reason to drop a track would be counted here as /// embedded until this follows it -- the named line, which is the engine's @@ -7850,7 +7850,7 @@ const MB_FLOOR: u64 = 10_000; /// an 18-file sweep of a library was 0.13 Mb/s -- kilobits for the sub-32x32 /// encodes below that. /// -/// ponytail: one unit for the whole line, so a file mixing a multi-megabit +/// corner-cut: one unit for the whole line, so a file mixing a multi-megabit /// picture with a sub-10 kb/s sound track prints the picture as four or five /// digits of kilobits and loses the line's tail to `MENU_W`. No such file /// exists in a library, and both units at once ("0.01 Mb/s · 1.2 kb/s video · @@ -9760,7 +9760,7 @@ fn fft(re: &mut [f32], im: &mut [f32]) { /// Empty -- nothing to draw -- for a tap too short to transform, which is what /// a session has just after a seek. /// -/// ponytail: one transform length for the whole axis, so the bass end is a bin +/// corner-cut: one transform length for the whole axis, so the bass end is a bin /// (47 Hz at 48 kHz) wide however many columns are drawn across it -- a 60 Hz /// hum and an 80 Hz one are the same hump down there. Upgrade path is the /// analyser every mastering EQ uses: two or three transforms of different @@ -9841,7 +9841,7 @@ fn eq_spectrum_curve(levels: Vec) -> impl IntoElement { /// either -- and it is what makes a boost sitting inside a cut visible at all, /// where the sum alone would draw a flat line and say nothing. /// -/// ponytail: bands that overlap can sum past the ±`EQ_GAIN_LIMIT` axis and the +/// corner-cut: bands that overlap can sum past the ±`EQ_GAIN_LIMIT` axis and the /// curve then rides the edge of the box; upgrade = a wider dB axis with the /// handles and [`Player::drag_band`] rescaled to it. fn eq_curve(params: EqParams, sample_rate: u32) -> impl IntoElement { diff --git a/crates/app/src/ui/overlays.rs b/crates/app/src/ui/overlays.rs index 4a40c23..2389cdc 100644 --- a/crates/app/src/ui/overlays.rs +++ b/crates/app/src/ui/overlays.rs @@ -318,7 +318,7 @@ impl Player { }), ) .child( - // ponytail: the column is as wide as the stroke it + // corner-cut: the column is as wide as the stroke it // prints, so a one-character chord gives this half a // hit area under the 24px WCAG 2.5.8 floor -- tall // enough, narrow. Upgrade: a min_w of HIT_MIN here. diff --git a/crates/app/src/ui/preview.rs b/crates/app/src/ui/preview.rs index 82eaf80..fa74478 100644 --- a/crates/app/src/ui/preview.rs +++ b/crates/app/src/ui/preview.rs @@ -23,7 +23,7 @@ impl Player { /// canvas fitted over the picture region exactly as the picture itself is, /// which puts every cue where the disc put it relative to its own frame. /// - /// ponytail: exact only while the canvas and the encode are the same shape + /// corner-cut: exact only while the canvas and the encode are the same shape /// -- a 16:9 canvas over a 2.39:1 encode fits to the region's height and /// the film to its width, so a cue sits a little low on a scope film. The /// upgrade path is the picture's own rect, which wants `VideoMeta`'s aspect diff --git a/crates/app/src/ui/theme.rs b/crates/app/src/ui/theme.rs index 734133d..f4e4227 100644 --- a/crates/app/src/ui/theme.rs +++ b/crates/app/src/ui/theme.rs @@ -49,7 +49,7 @@ use std::sync::atomic::{AtomicUsize, Ordering::Relaxed}; /// every family is a compile error, and a role read at a paint cannot come from /// anywhere but the palette in force. /// -/// ponytail: the families are spelled out in [`PALETTES`] rather than derived +/// corner-cut: the families are spelled out in [`PALETTES`] rather than derived /// from a second list -- `macro_rules!` cannot nest a repetition over families /// inside one over roles, and the escape hatch for that is unstable. Ceiling: a /// thirteenth family is one line there, one variant in [`PaletteId`], one @@ -1104,7 +1104,7 @@ pub fn clip_kind(kind: LaneKind, image: bool) -> u32 { /// `tone` argument at seventy call sites is seventy chances to disagree with the /// sentence it labels. /// -/// ponytail: prefix matching, so a message worded outside these families reads +/// corner-cut: prefix matching, so a message worded outside these families reads /// as neutral rather than wrong. Ceiling: a `Notice { text, tone }` struct the /// day a message needs a colour its own words do not say. pub fn notice_tone(message: &str) -> u32 { diff --git a/crates/engine-audio/src/lib.rs b/crates/engine-audio/src/lib.rs index c6f24b2..7cf435f 100644 --- a/crates/engine-audio/src/lib.rs +++ b/crates/engine-audio/src/lib.rs @@ -3,7 +3,7 @@ //! catches unwinds and reports failure as a null pointer or a negative code: //! the caller's contract is "any failure means the app runs muted". //! -//! ponytail: that guarantee rests on `panic = "unwind"`. Building this crate with +//! corner-cut: that guarantee rests on `panic = "unwind"`. Building this crate with //! `panic = "abort"` would turn a PipeWire bug into a killed app; the upgrade //! path is running the output in a child process instead of in-process. @@ -35,7 +35,7 @@ const POLL: Duration = Duration::from_millis(10); /// that coarseness straight in the A/V sync. 1024 frames is ~23 ms, comfortably /// inside a video frame; measured granularity is then one graph quantum. /// -/// ponytail: a graph running a quantum longer than this would consume more per +/// corner-cut: a graph running a quantum longer than this would consume more per /// cycle than we deliver and starve. The fix is the crate's `v0_3_49` feature, /// whose `pw_buffer.requested` says exactly how many frames the graph wants -- /// a Cargo.toml change, so not this slice. diff --git a/crates/engine-hw/src/lib.rs b/crates/engine-hw/src/lib.rs index db85183..d71266b 100644 --- a/crates/engine-hw/src/lib.rs +++ b/crates/engine-hw/src/lib.rs @@ -6,7 +6,7 @@ //! negative code: the caller's contract is "any failure means use the software //! codec". //! -//! ponytail: that guarantee rests on `panic = "unwind"`. Building this crate with +//! corner-cut: that guarantee rests on `panic = "unwind"`. Building this crate with //! `panic = "abort"` would turn a driver bug into a killed app; the upgrade path //! is running the decoder in a child process instead of in-process. @@ -64,7 +64,7 @@ type Handle = as StatelessVideoDecoder>::Handle; /// A 10-bit stream decodes into a P010 pool and is read back down to the 8-bit /// I420 every frame here is ([`Session::emit`]). /// -/// ponytail: 10-bit is *carried* 8-bit, because [`VhFrame`] is a byte-per-sample +/// corner-cut: 10-bit is *carried* 8-bit, because [`VhFrame`] is a byte-per-sample /// interface all the way to the renderer. That costs the low two bits of a Main /// 10 source; the upgrade path is a 16-bit `VhFrame`, which is a change to every /// stage between here and the texture upload, not to this file. @@ -729,7 +729,7 @@ fn align16(v: u32) -> u32 { /// write the header (Intel's, which is what cros-codecs was built against) fall /// straight through this. /// -/// ponytail: the real fix is a `VAEncPackedHeaderH264_Slice` buffer in the +/// corner-cut: the real fix is a `VAEncPackedHeaderH264_Slice` buffer in the /// vendored cros-codecs backend, which means synthesizing the entire slice /// header there rather than correcting two fields here. fn fix_slice_nal_headers(au: &mut [u8]) { @@ -841,7 +841,7 @@ impl EncSession { // value. The caller's bitrate therefore does not reach this // seat -- it reaches `rav1e`, which is the other one. // - // ponytail: bitrate-driven AV1 on the GPU needs `VA_RC_CBR` + // corner-cut: bitrate-driven AV1 on the GPU needs `VA_RC_CBR` // wired through that backend, which is a change in the vendored // crate rather than here. let config = Av1Config { diff --git a/crates/engine/src/audio.rs b/crates/engine/src/audio.rs index e146751..6a4564e 100644 --- a/crates/engine/src/audio.rs +++ b/crates/engine/src/audio.rs @@ -157,7 +157,7 @@ pub struct StreamInfo { pub index: usize, /// Container codec. /// - /// ponytail: mp4 0.14 parses `mp4a` sample entries and silently drops every + /// corner-cut: mp4 0.14 parses `mp4a` sample entries and silently drops every /// other kind (`stsd.rs` `_ => {}`), keeping no fourcc, so an AC-3/DTS/PCM /// stream can only be `"unknown"` here — enough to grey a row out, not /// enough to name the codec. Upgrade path is reading the sample entry's @@ -965,7 +965,7 @@ impl AudioSession { /// /// `Ok(None)` for a file with no AAC track, and for an empty segment list. /// - /// ponytail: the first packet after an *interior* join decodes without its + /// corner-cut: the first packet after an *interior* join decodes without its /// MDCT overlap predecessor, so up to 23 ms there can alias. Upgrade path is /// re-encoding just the join packets, which needs an encoder we do not have. pub fn copy_segments( @@ -1104,7 +1104,7 @@ impl AudioSession { /// unit tests, which is the only claim worth making about hand-written /// bitstream. /// -/// ponytail: mono and stereo only, because `chan_conf` beyond 2 needs more +/// corner-cut: mono and stereo only, because `chan_conf` beyond 2 needs more /// elements per block; the timeline refuses such a source at import today, so /// this `Err` is a backstop. Upgrade path is emitting `chan_conf` elements. fn silent_packet(chan_conf: u8) -> crate::Result> { @@ -1159,7 +1159,7 @@ fn copy_track(path: &Path, stream: usize) -> crate::Result> { // rather than showing this, so a film's sound reaches an mp4 either way; // the words stay for a caller that copies and cannot re-encode. // - // ponytail: the ceiling is the copy path being written against the mp4 + // corner-cut: the ceiling is the copy path being written against the mp4 // reader, not anything about the bytes. Upgrade path is a // `copy_segments` that walks a Matroska track, which would make this a // copy again instead of a re-encode. @@ -1815,7 +1815,7 @@ fn vorbis_to_film_order(samples: &mut [f32], from: usize) { /// C, L, R, Ls, Rs, LFE element order into it: `decode.rs:779`) and what the AC-3 /// decoder's own passthrough uses. /// -/// ponytail: a width past 7.1 (22.2, ambisonics) keeps its front pair and drops +/// corner-cut: a width past 7.1 (22.2, ambisonics) keeps its front pair and drops /// the rest -- no table here places those, and inventing one silently would be /// worse than a fold that is merely narrow. Upgrade path is one more arm. fn fold_coeffs(from: usize) -> Vec<(f32, f32)> { @@ -1845,7 +1845,7 @@ fn fold_coeffs(from: usize) -> Vec<(f32, f32)> { /// Both outputs are divided by the sum of their own coefficients /// ([`fold_coeffs`]), so a source at full scale cannot come out clipped. /// -/// ponytail: that normalisation costs 7.7 dB at 5.1 (9.9 at 7.1) against what +/// corner-cut: that normalisation costs 7.7 dB at 5.1 (9.9 at 7.1) against what /// ffmpeg's `-ac 2` hands out, which does not normalise and can overload -- so a /// film plays quieter here than in a player beside it. It is the loudness the /// AC-3 5.1 path already has (measured within 1.3 dB), so the two agree; the @@ -2005,7 +2005,7 @@ struct MkvAc3Track { total_samples: Option, /// What the decoder is asked to hand out, from this track's own layout: /// `Some(2)` for anything with more than one front channel, `None` for a - /// mono track. The reason is [`ac3_decoder`]'s `ponytail`, not this file's. + /// mono track. The reason is [`ac3_decoder`]'s `corner-cut`, not this file's. requested: Option, } @@ -2097,7 +2097,7 @@ impl MkvAc3Track { /// 5.1 track at all. Fresh per segment for the same reason every other decoder /// here is: a seek leaves overlap-add state belonging to the frames we skipped. /// -/// ponytail: `Some(2)` on a **mono** (`acmod` 1/0) source decodes to digital +/// corner-cut: `Some(2)` on a **mono** (`acmod` 1/0) source decodes to digital /// silence in oxideav-ac3 0.0.10 — measured, 5.1 and stereo are correct — so a /// mono track asks for no downmix at all and stays the mono source it is. The /// upgrade path is `Some(2)` unconditionally once the library duplicates the @@ -2448,7 +2448,7 @@ pub(crate) fn stts_pairs(track: &Mp4Track) -> impl Iterator + /// Encoder delay in samples-per-channel: the edit list's first real entry says /// how far into the media the presentation starts. /// -/// ponytail: an explicit `media_time` of 0 is taken at face value (no trim). +/// corner-cut: an explicit `media_time` of 0 is taken at face value (no trim). /// Muxers that write a zero edit list despite a primed stream would leak the /// priming; upgrade path is preferring the codec delay when it disagrees. fn priming_samples(track: &Mp4Track, sample_rate: u32) -> u64 { @@ -2461,7 +2461,7 @@ fn priming_samples(track: &Mp4Track, sample_rate: u32) -> u64 { /// timescale: where the presentation starts inside the media. `None` when there /// is no edit list, or only empty entries -- those shift the timeline rather /// than trim the media, and neither track honours that shift (see -/// [`priming_samples`]'s ponytail). Shared with `demux`, which owes the video +/// [`priming_samples`]'s corner-cut). Shared with `demux`, which owes the video /// track the same trim. pub(crate) fn edit_media_time(track: &Mp4Track) -> Option { track @@ -2497,7 +2497,7 @@ fn unscale(samples: u64, sample_rate: u32, timescale: u32) -> u64 { /// private `sample_time` walk over stts (`track.rs:475`); its `SttsEntry` is /// unnameable outside the crate, hence the `(sample_count, sample_delta)` pairs. /// -/// ponytail: the walk-back is clamped to the start of the containing stts entry +/// corner-cut: the walk-back is clamped to the start of the containing stts entry /// rather than crossing into the previous one, so a target within `pre_roll` /// packets of an entry boundary gets less pre-roll. AAC packets are uniformly /// 1024 frames (one entry per track), so this cannot fire here; upgrade path is @@ -3373,7 +3373,7 @@ mod tests { let entries = [(10u32, 1024u32), (10, 512)]; assert_eq!(packet_at(entries, 12_500, 0), (15, 12_288)); assert_eq!(packet_at(entries, 12_500, PRE_ROLL), (13, 11_264)); - // The ponytail clamp: on the first packet of the second entry the + // The corner-cut clamp: on the first packet of the second entry the // walk-back stops there instead of stepping into the first entry. assert_eq!(packet_at(entries, 10_500, PRE_ROLL), (11, 10_240)); } diff --git a/crates/engine/src/colorspace.rs b/crates/engine/src/colorspace.rs index 92c67cc..3c2d4f4 100644 --- a/crates/engine/src/colorspace.rs +++ b/crates/engine/src/colorspace.rs @@ -734,7 +734,7 @@ fn scaling_list_data(b: &mut Bits) { /// holds: that count is what the *next* set spends a flag per picture on when /// it predicts from this one, so losing it loses the bit position. /// -/// ponytail: the predicted case counts flags rather than deriving the POCs +/// corner-cut: the predicted case counts flags rather than deriving the POCs /// (§7.4.8, (7-59)..(7-71)), so a set whose `deltaRps` cancels a reference's /// own delta exactly -- a picture at POC distance zero, which is the current /// picture and which no encoder emits -- would be counted one too high. The diff --git a/crates/engine/src/decode.rs b/crates/engine/src/decode.rs index 6766d24..31404e3 100644 --- a/crates/engine/src/decode.rs +++ b/crates/engine/src/decode.rs @@ -657,7 +657,7 @@ impl Render { color, desc, canvas, - // ponytail: the ceiling is that the map reads limited-range codes + // corner-cut: the ceiling is that the map reads limited-range codes // (`tonemap`'s input contract), so a full-range PQ file -- which // no encoder writes and no camera produces -- is mapped as if it // were limited and comes out slightly crushed. The upgrade is a @@ -768,7 +768,7 @@ impl Still { /// composes one picture per frame (topmost lane wins), so there is nothing /// for a blend to blend with. /// - /// ponytail: the ceiling is a logo with a transparent background, which + /// corner-cut: the ceiling is a logo with a transparent background, which /// lands as a rectangle. Upgrade path is keeping the alpha plane here and /// giving `scale::Composer` a blend over the lane below. pub(crate) fn open(path: &Path) -> crate::Result { @@ -1074,7 +1074,7 @@ fn run( // what the file's edit list trims, i.e. *before* frame 0. let mut index = demuxer.seek_to_sync_at_or_before(start_frame); - // ponytail: emits pictures in decode order. Fine for Baseline (no B-frames); + // corner-cut: emits pictures in decode order. Fine for Baseline (no B-frames); // reordering streams need POC-sorted output before display. loop { if cancel.load(Ordering::Relaxed) { diff --git a/crates/engine/src/demux.rs b/crates/engine/src/demux.rs index cfa6c36..4378977 100644 --- a/crates/engine/src/demux.rs +++ b/crates/engine/src/demux.rs @@ -209,7 +209,7 @@ pub fn probe_bitrate(path: &Path) -> MediaBitrate { // A standalone audio file's length is not a frame count; it is what the // audio header says, exactly as `PlaybackSession::import` reads it. // - // ponytail: `duration_secs` falls back to a decode for a stream whose + // corner-cut: `duration_secs` falls back to a decode for a stream whose // header states no length (a bare mp3 with no Xing header), which is the // one input here that is not header-only -- ~0.5 ms per source second, the // same cost import already pays for that file. Upgrade path is a @@ -990,7 +990,7 @@ impl MkvDemuxer { // `DefaultDuration` reaches it, and such a file was walked whole just // above -- the span is the window's, and the window is the file. // - // ponytail: a genuinely variable-rate file is averaged to one rate here, + // corner-cut: a genuinely variable-rate file is averaged to one rate here, // because a timeline frame is a fixed slice of a second everywhere else // in this engine. Per-frame durations are the upgrade path, and they are // a project-wide change, not a demuxer one. @@ -2413,7 +2413,7 @@ fn vp9_bit_depth(au: &[u8]) -> crate::Result> { /// needs: H.264 and HEVC cap `max_num_reorder_frames` at 16, and what a muxer /// actually writes is two or three. /// -/// ponytail: a stream that reorders further than this would have its blocks +/// corner-cut: a stream that reorders further than this would have its blocks /// numbered a frame or two off. The upgrade path is the bitstream's own /// `max_num_reorder_frames` out of the SPS, which this demuxer does not parse; /// [`MkvDemuxer::cues_agree`] is what stands between that file and a wrong seek @@ -2835,7 +2835,7 @@ impl IndexKey { /// entry instead of leaving the old one behind, which is what keeps the /// directory one file per track of every Matroska file ever opened. /// - /// ponytail: nothing evicts. That is bounded (a few MB for a feature film's + /// corner-cut: nothing evicts. That is bounded (a few MB for a feature film's /// picture track) and the directory is the user's own cache to delete, but a /// size-capped LRU sweep at open is the upgrade path if it ever matters. fn sidecar(&self) -> Option { @@ -3290,7 +3290,7 @@ fn fps_from_stts(entries: impl IntoIterator, timescale: u32) /// (`test_high.mp4` loses two, and so did the film this bug came from). What is /// left over after the delay is the genuine trim. /// -/// ponytail: empty edits are ignored and `media_time` is otherwise taken at face +/// corner-cut: empty edits are ignored and `media_time` is otherwise taken at face /// value, which is exactly what [`crate::audio::edit_media_time`] gives the audio /// track -- symmetry between the two is the point, not a full edit-list engine. /// Their *empty* edits can differ (83 ms of video against 62 ms of audio in that diff --git a/crates/engine/src/export.rs b/crates/engine/src/export.rs index f104fbf..8f9087d 100644 --- a/crates/engine/src/export.rs +++ b/crates/engine/src/export.rs @@ -932,7 +932,7 @@ pub(crate) struct ExportAudio { /// The copy is still the default and still bit-exact: a timeline nobody has /// touched leaves as the very packets its source holds. /// -/// ponytail: this holds the whole exported AAC track in memory (~3 kB per +/// corner-cut: this holds the whole exported AAC track in memory (~3 kB per /// 23 ms packet, so ~500 MB for an hour). Upgrade path is a streaming /// `copy_segments` that yields packets instead of collecting them. fn copy_audio( @@ -1058,7 +1058,7 @@ fn copy_audio( /// being written as pictures that cannot decode. The region still starts at the /// timeline frame it owns, so the sound never drifts. /// -/// ponytail: mp4 is not copied (its `hvc1` sample entry forbids in-band +/// corner-cut: mp4 is not copied (its `hvc1` sample entry forbids in-band /// parameter sets, and the mp4 muxer here writes its sample table from a frame /// counter), and neither is H.264, which this project only writes into mp4. The /// upgrade path for both is a sample-table writer that takes explicit @@ -1268,7 +1268,7 @@ impl CopyPlan { /// and [`crate::mux::Mp4Muxer`] writes none): the first packet is that delay, so /// the sound starts at timeline frame 0 as a copied track's does. /// -/// ponytail: the mix sits in memory as f32 before it is encoded (~46 MB a +/// corner-cut: the mix sits in memory as f32 before it is encoded (~46 MB a /// minute of 48 kHz stereo), for [`run_audio`]'s reason -- `rusty_aac` buffers /// the whole stream anyway, since it encodes its frames in parallel. Upgrade /// path is a chunked push once that encoder streams. @@ -1427,7 +1427,7 @@ const OPUS_FRAME: usize = 960; /// it is written ([`opus_fidelity`]), because a cliff whose edge moves with the /// material is not something a constant can be safe against on its own. /// -/// ponytail: the ceiling is this encoder's, not the format's. Upgrade path is a +/// corner-cut: the ceiling is this encoder's, not the format's. Upgrade path is a /// released `opus-rs` that survives its own high rates -- the unit test pins the /// failure, so it fails the day the bug is fixed and this can be raised. pub(crate) const OPUS_MAX_KBPS: u32 = 128; @@ -1503,7 +1503,7 @@ fn encode_opus(samples: &[f32], kbps: u32) -> crate::Result crate::Result<() /// (anything but 8-48 kHz) is refused there by name rather than written as /// something else. /// -/// ponytail: CBR only -- the card offers rates and not a quality index. Upgrade +/// corner-cut: CBR only -- the card offers rates and not a quality index. Upgrade /// path is `Mp3EncoderConfig::vbr_quality` behind a setting of its own. fn write_mp3(out: &Path, samples: &[i32], audio: &AudioMeta, kbps: u32) -> crate::Result<()> { let mut encoder = rusty_mp3::Mp3Encoder::new(rusty_mp3::Mp3EncoderConfig { @@ -2254,7 +2254,7 @@ const VORBIS_HOP: usize = 1024; /// source is opened -- but it is refused by name rather than left to the /// library's own message. /// -/// ponytail: one quality, [`VORBIS_QUALITY`], with no user control -- the Sound +/// corner-cut: one quality, [`VORBIS_QUALITY`], with no user control -- the Sound /// row is refused for this format because the rates it offers are not rates /// Vorbis reaches. Upgrade path is a quality picker of its own, worth building /// the day the card has a control that speaks in quality rather than kbps. @@ -2651,7 +2651,7 @@ enum Enc { /// 12 lanes against 0.55 fps on one, measured 2026-08-11), and an export whose /// frames came back shuffled would be no export at all. /// -/// ponytail: a batch of padded planes sits in memory (~3 MB a frame at 1080p, +/// corner-cut: a batch of padded planes sits in memory (~3 MB a frame at 1080p, /// so ~37 MB at 12 lanes) and the tail of a timeline is coded on fewer lanes /// than the middle. Upgrade path is a pipeline that keeps every lane fed from a /// decoder running ahead of the encoder rather than a batch barrier. @@ -2746,7 +2746,7 @@ impl Enc { /// the plugin's AV1 seat is wired, kept and only entered when `VE_HW_AV1=1` /// asks for it by name. /// - /// ponytail: the upgrade path is a driver this was reproduced against (or a + /// corner-cut: the upgrade path is a driver this was reproduced against (or a /// cros-codecs release that fixes it) plus a probe encode of one frame at /// open, after which this can prefer hardware the way H.264 does. fn open_av1(meta: &VideoMeta, settings: &ExportSettings) -> crate::Result { @@ -2862,7 +2862,7 @@ impl Enc { /// a decoder may be started from -- which only the Matroska muxer asks, the /// mp4 one reading its own sync flag off the IDR slice. /// - /// ponytail: `rusty_h264` buffers a whole GOP and returns it in one buffer + /// corner-cut: `rusty_h264` buffers a whole GOP and returns it in one buffer /// when its lookahead is active, which would make this "one access unit" /// a lie and every sample duration with it. It is inactive here because /// lookahead needs a zero bitrate and this path is always CBR; a future diff --git a/crates/engine/src/mux.rs b/crates/engine/src/mux.rs index 7f1f563..e84df68 100644 --- a/crates/engine/src/mux.rs +++ b/crates/engine/src/mux.rs @@ -148,7 +148,7 @@ impl Mp4Muxer { /// puts in `CodecPrivate`, which is what makes the two containers' AV1 one /// stream written twice rather than two. /// - /// ponytail: the ceiling is that one entry. A second video track, or an AV1 + /// corner-cut: the ceiling is that one entry. A second video track, or an AV1 /// track beside an H.264 one, would need the walk in [`patch_av01`] to be /// told *which* track it is patching; the upgrade path is passing the track /// id it already knows down that walk. @@ -389,7 +389,7 @@ impl Mp4Muxer { /// one may show two blocks at once, and joining them is what keeps the words /// a viewer saw over the picture. /// - /// ponytail: the `tx3g` sample entry is the one `mp4 0.14` writes and there + /// corner-cut: the `tx3g` sample entry is the one `mp4 0.14` writes and there /// is no field to reach into it -- `MediaConfig::TtxtConfig` carries nothing /// -- so its `data_reference_index` is the crate's 0 where §8.5.2 says an /// index into `dref` counts from 1, and it holds no `ftab` font table. @@ -475,7 +475,7 @@ impl Mp4Muxer { /// both lines -- the two things a track of samples has to say that a list of /// cues does not. /// -/// ponytail: the active set is looked for from the front of the list at every +/// corner-cut: the active set is looked for from the front of the list at every /// boundary, so this is quadratic in the cues of one track (a 5 000-cue film /// costs ~25 M compares once, at the end of an export that took minutes). The /// upgrade path is a sweep holding the open cues in a heap keyed on their end. @@ -820,7 +820,7 @@ pub struct CopyParams<'a> { /// The source's own `Colour`: a copied HDR film leaves as the HDR film it /// is, because not one of its samples was touched. /// - /// ponytail: the `MasteringMetadata` and MaxCLL beside it are not carried -- + /// corner-cut: the `MasteringMetadata` and MaxCLL beside it are not carried -- /// this engine parses them ([`crate::demux::ContentLight`]) but has nowhere /// to write them yet, so a copied HDR file states its curve and not its /// grading display. Upgrade path is a `Colour` element written from that @@ -922,7 +922,7 @@ impl MkvMuxer { /// single coded picture, and interleaving needs to look ahead of the frame /// being written. /// - /// ponytail: that is the copy path's own ceiling reappearing (the track sits + /// corner-cut: that is the copy path's own ceiling reappearing (the track sits /// in memory, ~500 MB an hour); the upgrade path is the same streaming /// `copy_segments` `export::copy_audio` names. pub fn create( diff --git a/crates/engine/src/playback.rs b/crates/engine/src/playback.rs index 9d9a763..6eb6745 100644 --- a/crates/engine/src/playback.rs +++ b/crates/engine/src/playback.rs @@ -48,7 +48,7 @@ const FLUSH_WAIT: Duration = Duration::from_millis(1); /// honest; both are what a video imported onto such a timeline is held to /// ([`matches_timeline`]). /// -/// ponytail: a 25 fps video imported onto an audio-only timeline it could have +/// corner-cut: a 25 fps video imported onto an audio-only timeline it could have /// defined plays at 25 fps, correctly, but on a 30 fps timeline -- it is read /// through [`Rate`] like any other file shot at another rate rather than /// defining one. Upgrade path is adopting the first *picture's* rate and codec @@ -67,7 +67,7 @@ const IMAGE_ONLY_RATE: f64 = 30.0; /// number -- a `u32::MAX` sentinel here would make [`Self::trim_room`] hand a /// drag a wall past what the timeline can hold. /// -/// ponytail: a still cannot be held longer than this. Upgrade path is a +/// corner-cut: a still cannot be held longer than this. Upgrade path is a /// per-source length the project file carries, which every `counts` reader /// would then have to take from the document rather than from the file. const IMAGE_MAX_SECS: f64 = 600.0; @@ -1482,7 +1482,7 @@ impl PlaybackSession { /// worker keeps decoding through it ([`Dirty`]). `false` for a bad index or /// a non-finite band, and nothing changes. /// - /// ponytail: the audio rebuild is what makes it live, so the cost of a + /// corner-cut: the audio rebuild is what makes it live, so the cost of a /// change is a decoder restart -- inaudible at a drag's end, but too much to /// call once per pointer sample (a caller commits one change per gesture). /// Upgrade path is the per-segment twin of [`crate::audio::MixControls`], @@ -1541,7 +1541,7 @@ impl PlaybackSession { /// ([`crate::limiter::LimiterState::retune`]), so its delay line keeps /// running and the sample count the master clock is made of does not move. /// - /// ponytail: not an undo step, and deliberately -- [`Project::undo`] + /// corner-cut: not an undo step, and deliberately -- [`Project::undo`] /// restores the lane list, and the limiter is not in it, so snapshotting /// here would push a step whose undo changes nothing a person can see or /// hear (the twin [`set_lane_gain_db`](Self::set_lane_gain_db) *is* @@ -1794,7 +1794,7 @@ impl PlaybackSession { /// that is not a picture -- zero either way, or past 8K, which is where the /// per-frame buffers stop being a sane thing to allocate from a keystroke. /// - /// ponytail: not an undo step. The project resolution is not in the lane + /// corner-cut: not an undo step. The project resolution is not in the lane /// snapshots [`Project::undo`] restores, so cycling it back is one more /// keypress rather than a `z`. Upgrade path is snapshotting it beside the /// lanes, which every existing snapshot site would then have to carry. @@ -1828,7 +1828,7 @@ impl PlaybackSession { /// tone map at all ([`crate::tonemap`]), so the reseek recomposes the very /// same bytes. /// - /// ponytail: not an undo step, for the reason the resolution is not + /// corner-cut: not an undo step, for the reason the resolution is not /// ([`Project::set_tone`]). pub fn set_tone(&mut self, preset: crate::tonemap::Preset) -> bool { if !self.project.set_tone(preset) { @@ -1859,7 +1859,7 @@ impl PlaybackSession { /// ([`crate::mux::frame_timing`], the same wall a file of an unnameable rate /// is refused at). /// - /// ponytail: not an undo step, exactly as the project resolution is not -- + /// corner-cut: not an undo step, exactly as the project resolution is not -- /// and this one *moves the frame numbers*, so the way back is picking the /// old rate (or the media's, [`native_frame_rate`](Self::native_frame_rate)) /// rather than a `z`, and it lands within a frame of where it started rather @@ -2468,7 +2468,7 @@ impl PlaybackSession { /// the clock held until the new stream is really audible (see /// [`Audio::content_at`]). /// - /// ponytail: the device is made active here, before the new stream has been + /// corner-cut: the device is made active here, before the new stream has been /// opened ([`start_audio`](Self::start_audio) opens on the feeder now), so a /// cold open leaves it playing its own silence with an empty ring -- audibly /// the same silence as before, and counted: a scripted cold play-seek-scrub @@ -2621,7 +2621,7 @@ impl PlaybackSession { /// Later edits do not reach a running export: it works from a snapshot of /// the edit list taken here. /// - /// ponytail: this defaults the settings; the app still calls it that way, + /// corner-cut: this defaults the settings; the app still calls it that way, /// and the export options card replaces the call with /// [`export_to_with`](PlaybackSession::export_to_with). pub fn export_to(&self, out: &Path) -> crate::ExportHandle { @@ -2682,7 +2682,7 @@ impl PlaybackSession { // clock's own anchor is its first report ([`PlaybackClock`]), and // anchoring it here is what makes a mid-play edit cost no offset. // - // ponytail: `started` is the position when the sample was queued, + // corner-cut: `started` is the position when the sample was queued, // and it is heard at the next callback -- up to one quantum (5-21 // ms) later, so that much of the restart is still counted. Upgrade // path is the position at the first *pop* of real audio, which only diff --git a/crates/engine/src/project.rs b/crates/engine/src/project.rs index 2d6a8d8..b18ee5f 100644 --- a/crates/engine/src/project.rs +++ b/crates/engine/src/project.rs @@ -998,7 +998,7 @@ impl Project { /// different file. [`PlaybackSession::remove_source`] hands back the index /// that went for exactly that. /// - /// ponytail: this retires the undo stack. `history` holds lanes alone, so a + /// corner-cut: this retires the undo stack. `history` holds lanes alone, so a /// snapshot older than the removal can name the very source being removed /// (delete a file's clips, then remove the file) and restoring it would /// point a clip at an entry that is gone. The upgrade path is snapshotting @@ -1185,7 +1185,7 @@ impl Project { /// Sets it. `false` for the one already in force, which is what keeps a /// re-pick of the current rendition from costing a reseek. /// - /// ponytail: not an undo step, for the reason the limiter and the project + /// corner-cut: not an undo step, for the reason the limiter and the project /// resolution are not -- it is not in the lane list the history snapshots. /// Upgrade path is the same one: a history entry holding the project's own /// settings beside the lanes. @@ -1237,7 +1237,7 @@ impl Project { /// [`crate::export::ExportSettings::subtitles`]) has to fix it up or drop /// it, or it names a different track afterwards. /// - /// ponytail: not an undo step, for the reason the limiter is not -- the + /// corner-cut: not an undo step, for the reason the limiter is not -- the /// history snapshots hold the lane list and subtitles are not on it /// ([`Project::subtitles`]). The inverse is putting the file's tracks back /// on -- [`crate::PlaybackSession::import_subtitles`], the panel's own @@ -1273,7 +1273,7 @@ impl Project { /// Sets it, with the ceiling clamped to what [`Limiter`] allows. `false` /// for a setting already in force. /// - /// ponytail: not an undo step, for the reason the project resolution is not + /// corner-cut: not an undo step, for the reason the project resolution is not /// one ([`crate::PlaybackSession::set_resolution`]) -- it is not in the /// lane list the history snapshots. Upgrade path is a history entry that /// holds the mix settings beside the lanes. @@ -1313,7 +1313,7 @@ impl Project { } Some(match self.eq.iter().position(|p| *p == params) { Some(at) => at as u16, - // ponytail: the table is append-only within a session (see + // corner-cut: the table is append-only within a session (see // the module docs) and `Clip::eq` is a u16, so the 65535th // *distinct* setting of one session is refused rather than // silently aliased. Upgrade path if a UI ever drags a slider @@ -1374,7 +1374,7 @@ impl Project { } Some(match self.color.iter().position(|p| *p == params) { Some(at) => at as u16, - // ponytail: the 65535th *distinct* grade of one session is + // corner-cut: the 65535th *distinct* grade of one session is // refused rather than silently aliased, exactly as `set_eq` // refuses the 65535th curve; same upgrade path. None if self.color.len() >= usize::from(u16::MAX) => return false, @@ -1526,7 +1526,7 @@ impl Project { /// below is the backstop for the one case that could: a slow clip so short /// that no source range fits its new room at all). /// - /// ponytail: not exact both ways. Each rate change re-rounds every boundary + /// corner-cut: not exact both ways. Each rate change re-rounds every boundary /// onto the new grid, so a rate picked, unpicked and picked again is within /// a frame of where it started rather than back at it. Upgrade path is /// keeping the edit list at one reference rate and conforming on the way @@ -1654,7 +1654,7 @@ impl Project { /// from that frame on a different lane wins; that is what makes walking /// [`composite_spans_from`](Project::composite_spans_from) correct. /// - /// ponytail: alpha, opacity or any blend mode makes this untrue -- two + /// corner-cut: alpha, opacity or any blend mode makes this untrue -- two /// lanes would then be visible in one frame and the caller needs a decoder /// per lane plus a compositor. Upgrade path is a `Vec` per frame /// (this same walk, per lane) feeding N decoders. @@ -4557,7 +4557,7 @@ mod tests { Project::from_parts(sources, lanes, eq, color).expect("from_parts"); } - /// The two edges of a removal: it retires the undo stack (the ponytail on + /// The two edges of a removal: it retires the undo stack (the corner-cut on /// [`Project::remove_source`]), and the last entry goes like any other /// once nothing plays it -- a project may name no file at all. #[test] diff --git a/crates/engine/src/subtitle.rs b/crates/engine/src/subtitle.rs index e75c1b2..80d9b89 100644 --- a/crates/engine/src/subtitle.rs +++ b/crates/engine/src/subtitle.rs @@ -41,7 +41,7 @@ pub struct Cue { /// Plain text, `\n` between the lines of a multi-line cue. The markup is /// resolved and dropped: `` from an SRT, `{\an8}` and `\N` from an ASS. /// - /// ponytail: bold/italic/colour and ASS positioning are parsed by the crate + /// corner-cut: bold/italic/colour and ASS positioning are parsed by the crate /// and thrown away here, because nothing draws a cue yet. The upgrade path /// is to keep `oxideav_core::Segment` beside this string -- the parsers /// already hand it over -- and it belongs to whoever writes the renderer. @@ -242,7 +242,7 @@ pub fn open_all(rows: &[(PathBuf, Option)]) -> Vec { // than doing it again. The whole walk is kept until the last row is served: // it is the tracks nobody asked for that are dropped at the end. // - // ponytail: a track is *moved* out of its walk, so two rows naming the same + // corner-cut: a track is *moved* out of its walk, so two rows naming the same // file and the same track leave the second refused by name rather than // holding the cues twice. No project edith saves has one -- a row is added // by (file, track) and only once ([`crate::Project::add_subtitles`]) -- and diff --git a/crates/engine/src/waveform.rs b/crates/engine/src/waveform.rs index 3a7367b..db2156c 100644 --- a/crates/engine/src/waveform.rs +++ b/crates/engine/src/waveform.rs @@ -107,7 +107,7 @@ fn peaks_over( /// more than the decode they would save, and never more than the machine has — /// nor more than a handful, since an import asks this of every source at once. /// -/// ponytail: that last clause is a ceiling and not a bound — a library import of +/// corner-cut: that last clause is a ceiling and not a bound — a library import of /// twenty films runs as many of these as the background executor has threads, /// each with eight of its own. The upgrade path is one pool the waveforms share, /// which is also where a "visible range first" order would live. diff --git a/crates/engine/tests/ao_output.rs b/crates/engine/tests/ao_output.rs index 5c002e9..42cb4f7 100644 --- a/crates/engine/tests/ao_output.rs +++ b/crates/engine/tests/ao_output.rs @@ -34,7 +34,7 @@ fn tone() -> Vec { /// own position, which the gain does not touch: the frames are still consumed, /// only the last multiply before the speaker is zero. /// -/// ponytail: it does mean the suite is deaf, so a plugin that shipped with the +/// corner-cut: it does mean the suite is deaf, so a plugin that shipped with the /// gain stuck at zero would pass it. Nothing here could ever hear that -- the /// checks that can are `scale`'s unit test in engine-audio (unity leaves the /// bytes alone) and a person with the app open. The upgrade path is recording