forge
Explore
Log in

Don't you dare go Hollow

Rename ponytail: comment marker to corner-cut:

Browse files at this commit

9ba8e0a3d0a341f7045e41b3730cec7fc463194cAhmet Kaan GümüşParent: dadd2f4
  • chore
    • rename ponytail: comment marker to corner-cut:
Show full message
chore: rename ponytail: comment marker to corner-cut:

Marker convention renamed after uninstalling the ponytail plugin;
semantics unchanged (deliberate corner-cut, known ceiling + upgrade path).
Token-only rename, 81 comment lines, no code change.
crates/app/src/main.rsmodified+10 -10
@@ -67,7 +67,7 @@ const LABEL_MIN_W: f32 = 36.;
67 /// influence is an allocation bomb -- and 40 is already finer than the pixels a67 /// influence is an allocation bomb -- and 40 is already finer than the pixels a
68 /// clip is ever given.68 /// clip is ever given.
69 ///69 ///
70-/// ponytail: "finer than the pixels" stops being true once the timeline is70+/// corner-cut: "finer than the pixels" stops being true once the timeline is
71 /// zoomed -- past ~25 ms per bucket the envelope reads as steps rather than as71 /// zoomed -- past ~25 ms per bucket the envelope reads as steps rather than as
72 /// a shape. Ceiling: [`View::max_zoom`]'s 8 frames across the bed. The upgrade72 /// a shape. Ceiling: [`View::max_zoom`]'s 8 frames across the bed. The upgrade
73 /// is a second, finer pass over the visible span only, cached like `waves` is.73 /// is a second, finer pass over the visible span only, cached like `waves` is.
@@ -385,7 +385,7 @@ struct Import {
385 /// the landing: what the worker read is dropped instead of joining the385 /// the landing: what the worker read is dropped instead of joining the
386 /// timeline.386 /// timeline.
387 ///387 ///
388- /// ponytail: the *read* is not stopped -- a demuxer walk polls nothing, so388+ /// corner-cut: the *read* is not stopped -- a demuxer walk polls nothing, so
389 /// the worker finishes into a result nobody takes, and the window is given389 /// the worker finishes into a result nobody takes, and the window is given
390 /// back at the click either way. Ceiling: a cancelled cold 24 GB import390 /// back at the click either way. Ceiling: a cancelled cold 24 GB import
391 /// still costs the disk its twenty seconds. Upgrade: a flag391 /// still costs the disk its twenty seconds. Upgrade: a flag
@@ -1653,7 +1653,7 @@ impl Player {
1653 // moves. Never on a frame a seek owed: that one is late by however long1653 // moves. Never on a frame a seek owed: that one is late by however long
1654 // its own reopen took, and answering it with another reopen is a loop.1654 // its own reopen took, and answering it with another reopen is a loop.
1655 //1655 //
1656- // ponytail: on a machine that cannot decode the file in real time at1656+ // corner-cut: on a machine that cannot decode the file in real time at
1657 // all this settles into one restart per `RESYNC_GAP` -- in sync, and1657 // all this settles into one restart per `RESYNC_GAP` -- in sync, and
1658 // stuttering, which is the honest picture of what that machine can do.1658 // stuttering, which is the honest picture of what that machine can do.
1659 // The upgrade path is dropping late frames *inside* the worker (skip1659 // The upgrade path is dropping late frames *inside* the worker (skip
@@ -3845,7 +3845,7 @@ impl Player {
3845 /// there is no such clip to move. The engine has the last word on where it3845 /// there is no such clip to move. The engine has the last word on where it
3846 /// may actually go -- this is the ask, not the answer.3846 /// may actually go -- this is the ask, not the answer.
3847 ///3847 ///
3848- /// ponytail: the bed now runs past the last frame whenever the timeline is3848+ /// corner-cut: the bed now runs past the last frame whenever the timeline is
3849 /// shorter than the view ([`Scale::time_at`] clamps at the head only), so a3849 /// shorter than the view ([`Scale::time_at`] clamps at the head only), so a
3850 /// clip *can* be dragged out there. Zoomed in against the far end it cannot:3850 /// clip *can* be dragged out there. Zoomed in against the far end it cannot:
3851 /// the scroll clamp pins the bed's right edge to the duration, and the3851 /// the scroll clamp pins the bed's right edge to the duration, and the
@@ -4435,7 +4435,7 @@ impl Player {
4435 // The picture goes with it, or the empty window would keep showing the4435 // The picture goes with it, or the empty window would keep showing the
4436 // last frame of a timeline that no longer exists.4436 // last frame of a timeline that no longer exists.
4437 //4437 //
4438- // ponytail: its atlas tile is not released -- `window.drop_image` wants4438+ // corner-cut: its atlas tile is not released -- `window.drop_image` wants
4439 // a `&mut Window` this door has no other reason to take. One tile per4439 // a `&mut Window` this door has no other reason to take. One tile per
4440 // emptied library, against one per displayed frame in `pump`; the4440 // emptied library, against one per displayed frame in `pump`; the
4441 // upgrade path is threading the window through `act_on_row`.4441 // upgrade path is threading the window through `act_on_row`.
@@ -5027,7 +5027,7 @@ impl Player {
5027 // The drawn cue is keyed by that index ([`Player::sub_picture`])5027 // The drawn cue is keyed by that index ([`Player::sub_picture`])
5028 // and the index now stands for another track.5028 // and the index now stands for another track.
5029 //5029 //
5030- // ponytail: its atlas tile is not released -- `close_session`'s5030+ // corner-cut: its atlas tile is not released -- `close_session`'s
5031 // note, for its reason and with its upgrade path.5031 // note, for its reason and with its upgrade path.
5032 self.sub_image = None;5032 self.sub_image = None;
5033 format!(5033 format!(
@@ -6980,7 +6980,7 @@ fn subtitle_detail(track: &engine::subtitle::SubtitleTrack) -> String {
6980 /// pictures, then no cues), with the last asked of the timeline instead of the6980 /// pictures, then no cues), with the last asked of the timeline instead of the
6981 /// track.6981 /// track.
6982 ///6982 ///
6983-/// ponytail: that split reads the same public fields the list rows read6983+/// corner-cut: that split reads the same public fields the list rows read
6984 /// (`refused`, [`engine::subtitle::SubtitleTrack::is_bitmap`]) rather than the6984 /// (`refused`, [`engine::subtitle::SubtitleTrack::is_bitmap`]) rather than the
6985 /// engine's decision, so a *new* reason to drop a track would be counted here as6985 /// engine's decision, so a *new* reason to drop a track would be counted here as
6986 /// embedded until this follows it -- the named line, which is the engine's6986 /// embedded until this follows it -- the named line, which is the engine's
@@ -7850,7 +7850,7 @@ const MB_FLOOR: u64 = 10_000;
7850 /// an 18-file sweep of a library was 0.13 Mb/s -- kilobits for the sub-32x327850 /// an 18-file sweep of a library was 0.13 Mb/s -- kilobits for the sub-32x32
7851 /// encodes below that.7851 /// encodes below that.
7852 ///7852 ///
7853-/// ponytail: one unit for the whole line, so a file mixing a multi-megabit7853+/// corner-cut: one unit for the whole line, so a file mixing a multi-megabit
7854 /// picture with a sub-10 kb/s sound track prints the picture as four or five7854 /// picture with a sub-10 kb/s sound track prints the picture as four or five
7855 /// digits of kilobits and loses the line's tail to `MENU_W`. No such file7855 /// digits of kilobits and loses the line's tail to `MENU_W`. No such file
7856 /// exists in a library, and both units at once ("0.01 Mb/s · 1.2 kb/s video ·7856 /// 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]) {
9760 /// Empty -- nothing to draw -- for a tap too short to transform, which is what9760 /// Empty -- nothing to draw -- for a tap too short to transform, which is what
9761 /// a session has just after a seek.9761 /// a session has just after a seek.
9762 ///9762 ///
9763-/// ponytail: one transform length for the whole axis, so the bass end is a bin9763+/// corner-cut: one transform length for the whole axis, so the bass end is a bin
9764 /// (47 Hz at 48 kHz) wide however many columns are drawn across it -- a 60 Hz9764 /// (47 Hz at 48 kHz) wide however many columns are drawn across it -- a 60 Hz
9765 /// hum and an 80 Hz one are the same hump down there. Upgrade path is the9765 /// hum and an 80 Hz one are the same hump down there. Upgrade path is the
9766 /// analyser every mastering EQ uses: two or three transforms of different9766 /// analyser every mastering EQ uses: two or three transforms of different
@@ -9841,7 +9841,7 @@ fn eq_spectrum_curve(levels: Vec<f32>) -> impl IntoElement {
9841 /// either -- and it is what makes a boost sitting inside a cut visible at all,9841 /// either -- and it is what makes a boost sitting inside a cut visible at all,
9842 /// where the sum alone would draw a flat line and say nothing.9842 /// where the sum alone would draw a flat line and say nothing.
9843 ///9843 ///
9844-/// ponytail: bands that overlap can sum past the ±`EQ_GAIN_LIMIT` axis and the9844+/// corner-cut: bands that overlap can sum past the ±`EQ_GAIN_LIMIT` axis and the
9845 /// curve then rides the edge of the box; upgrade = a wider dB axis with the9845 /// curve then rides the edge of the box; upgrade = a wider dB axis with the
9846 /// handles and [`Player::drag_band`] rescaled to it.9846 /// handles and [`Player::drag_band`] rescaled to it.
9847 fn eq_curve(params: EqParams, sample_rate: u32) -> impl IntoElement {9847 fn eq_curve(params: EqParams, sample_rate: u32) -> impl IntoElement {
crates/app/src/ui/overlays.rsmodified+1 -1
@@ -318,7 +318,7 @@ impl Player {
318 }),318 }),
319 )319 )
320 .child(320 .child(
321- // ponytail: the column is as wide as the stroke it321+ // corner-cut: the column is as wide as the stroke it
322 // prints, so a one-character chord gives this half a322 // prints, so a one-character chord gives this half a
323 // hit area under the 24px WCAG 2.5.8 floor -- tall323 // hit area under the 24px WCAG 2.5.8 floor -- tall
324 // enough, narrow. Upgrade: a min_w of HIT_MIN here.324 // enough, narrow. Upgrade: a min_w of HIT_MIN here.
crates/app/src/ui/preview.rsmodified+1 -1
@@ -23,7 +23,7 @@ impl Player {
23 /// canvas fitted over the picture region exactly as the picture itself is,23 /// canvas fitted over the picture region exactly as the picture itself is,
24 /// which puts every cue where the disc put it relative to its own frame.24 /// which puts every cue where the disc put it relative to its own frame.
25 ///25 ///
26- /// ponytail: exact only while the canvas and the encode are the same shape26+ /// corner-cut: exact only while the canvas and the encode are the same shape
27 /// -- a 16:9 canvas over a 2.39:1 encode fits to the region's height and27 /// -- a 16:9 canvas over a 2.39:1 encode fits to the region's height and
28 /// the film to its width, so a cue sits a little low on a scope film. The28 /// the film to its width, so a cue sits a little low on a scope film. The
29 /// upgrade path is the picture's own rect, which wants `VideoMeta`'s aspect29 /// upgrade path is the picture's own rect, which wants `VideoMeta`'s aspect
crates/app/src/ui/theme.rsmodified+2 -2
@@ -49,7 +49,7 @@ use std::sync::atomic::{AtomicUsize, Ordering::Relaxed};
49 /// every family is a compile error, and a role read at a paint cannot come from49 /// every family is a compile error, and a role read at a paint cannot come from
50 /// anywhere but the palette in force.50 /// anywhere but the palette in force.
51 ///51 ///
52-/// ponytail: the families are spelled out in [`PALETTES`] rather than derived52+/// corner-cut: the families are spelled out in [`PALETTES`] rather than derived
53 /// from a second list -- `macro_rules!` cannot nest a repetition over families53 /// from a second list -- `macro_rules!` cannot nest a repetition over families
54 /// inside one over roles, and the escape hatch for that is unstable. Ceiling: a54 /// inside one over roles, and the escape hatch for that is unstable. Ceiling: a
55 /// thirteenth family is one line there, one variant in [`PaletteId`], one55 /// thirteenth family is one line there, one variant in [`PaletteId`], one
@@ -1104,7 +1104,7 @@ pub fn clip_kind(kind: LaneKind, image: bool) -> u32 {
1104 /// `tone` argument at seventy call sites is seventy chances to disagree with the1104 /// `tone` argument at seventy call sites is seventy chances to disagree with the
1105 /// sentence it labels.1105 /// sentence it labels.
1106 ///1106 ///
1107-/// ponytail: prefix matching, so a message worded outside these families reads1107+/// corner-cut: prefix matching, so a message worded outside these families reads
1108 /// as neutral rather than wrong. Ceiling: a `Notice { text, tone }` struct the1108 /// as neutral rather than wrong. Ceiling: a `Notice { text, tone }` struct the
1109 /// day a message needs a colour its own words do not say.1109 /// day a message needs a colour its own words do not say.
1110 pub fn notice_tone(message: &str) -> u32 {1110 pub fn notice_tone(message: &str) -> u32 {
crates/engine-audio/src/lib.rsmodified+2 -2
@@ -3,7 +3,7 @@
3 //! catches unwinds and reports failure as a null pointer or a negative code:3 //! catches unwinds and reports failure as a null pointer or a negative code:
4 //! the caller's contract is "any failure means the app runs muted".4 //! the caller's contract is "any failure means the app runs muted".
5 //!5 //!
6-//! ponytail: that guarantee rests on `panic = "unwind"`. Building this crate with6+//! corner-cut: that guarantee rests on `panic = "unwind"`. Building this crate with
7 //! `panic = "abort"` would turn a PipeWire bug into a killed app; the upgrade7 //! `panic = "abort"` would turn a PipeWire bug into a killed app; the upgrade
8 //! path is running the output in a child process instead of in-process.8 //! path is running the output in a child process instead of in-process.
9 9
@@ -35,7 +35,7 @@ const POLL: Duration = Duration::from_millis(10);
35 /// that coarseness straight in the A/V sync. 1024 frames is ~23 ms, comfortably35 /// that coarseness straight in the A/V sync. 1024 frames is ~23 ms, comfortably
36 /// inside a video frame; measured granularity is then one graph quantum.36 /// inside a video frame; measured granularity is then one graph quantum.
37 ///37 ///
38-/// ponytail: a graph running a quantum longer than this would consume more per38+/// corner-cut: a graph running a quantum longer than this would consume more per
39 /// cycle than we deliver and starve. The fix is the crate's `v0_3_49` feature,39 /// cycle than we deliver and starve. The fix is the crate's `v0_3_49` feature,
40 /// whose `pw_buffer.requested` says exactly how many frames the graph wants --40 /// whose `pw_buffer.requested` says exactly how many frames the graph wants --
41 /// a Cargo.toml change, so not this slice.41 /// a Cargo.toml change, so not this slice.
crates/engine-hw/src/lib.rsmodified+4 -4
@@ -6,7 +6,7 @@
6 //! negative code: the caller's contract is "any failure means use the software6 //! negative code: the caller's contract is "any failure means use the software
7 //! codec".7 //! codec".
8 //!8 //!
9-//! ponytail: that guarantee rests on `panic = "unwind"`. Building this crate with9+//! corner-cut: that guarantee rests on `panic = "unwind"`. Building this crate with
10 //! `panic = "abort"` would turn a driver bug into a killed app; the upgrade path10 //! `panic = "abort"` would turn a driver bug into a killed app; the upgrade path
11 //! is running the decoder in a child process instead of in-process.11 //! is running the decoder in a child process instead of in-process.
12 12
@@ -64,7 +64,7 @@ type Handle = <Dec<H264> as StatelessVideoDecoder>::Handle;
64 /// A 10-bit stream decodes into a P010 pool and is read back down to the 8-bit64 /// A 10-bit stream decodes into a P010 pool and is read back down to the 8-bit
65 /// I420 every frame here is ([`Session::emit`]).65 /// I420 every frame here is ([`Session::emit`]).
66 ///66 ///
67-/// ponytail: 10-bit is *carried* 8-bit, because [`VhFrame`] is a byte-per-sample67+/// corner-cut: 10-bit is *carried* 8-bit, because [`VhFrame`] is a byte-per-sample
68 /// interface all the way to the renderer. That costs the low two bits of a Main68 /// interface all the way to the renderer. That costs the low two bits of a Main
69 /// 10 source; the upgrade path is a 16-bit `VhFrame`, which is a change to every69 /// 10 source; the upgrade path is a 16-bit `VhFrame`, which is a change to every
70 /// stage between here and the texture upload, not to this file.70 /// stage between here and the texture upload, not to this file.
@@ -729,7 +729,7 @@ fn align16(v: u32) -> u32 {
729 /// write the header (Intel's, which is what cros-codecs was built against) fall729 /// write the header (Intel's, which is what cros-codecs was built against) fall
730 /// straight through this.730 /// straight through this.
731 ///731 ///
732-/// ponytail: the real fix is a `VAEncPackedHeaderH264_Slice` buffer in the732+/// corner-cut: the real fix is a `VAEncPackedHeaderH264_Slice` buffer in the
733 /// vendored cros-codecs backend, which means synthesizing the entire slice733 /// vendored cros-codecs backend, which means synthesizing the entire slice
734 /// header there rather than correcting two fields here.734 /// header there rather than correcting two fields here.
735 fn fix_slice_nal_headers(au: &mut [u8]) {735 fn fix_slice_nal_headers(au: &mut [u8]) {
@@ -841,7 +841,7 @@ impl EncSession {
841 // value. The caller's bitrate therefore does not reach this841 // value. The caller's bitrate therefore does not reach this
842 // seat -- it reaches `rav1e`, which is the other one.842 // seat -- it reaches `rav1e`, which is the other one.
843 //843 //
844- // ponytail: bitrate-driven AV1 on the GPU needs `VA_RC_CBR`844+ // corner-cut: bitrate-driven AV1 on the GPU needs `VA_RC_CBR`
845 // wired through that backend, which is a change in the vendored845 // wired through that backend, which is a change in the vendored
846 // crate rather than here.846 // crate rather than here.
847 let config = Av1Config {847 let config = Av1Config {
crates/engine/src/audio.rsmodified+12 -12
@@ -157,7 +157,7 @@ pub struct StreamInfo {
157 pub index: usize,157 pub index: usize,
158 /// Container codec.158 /// Container codec.
159 ///159 ///
160- /// ponytail: mp4 0.14 parses `mp4a` sample entries and silently drops every160+ /// corner-cut: mp4 0.14 parses `mp4a` sample entries and silently drops every
161 /// other kind (`stsd.rs` `_ => {}`), keeping no fourcc, so an AC-3/DTS/PCM161 /// other kind (`stsd.rs` `_ => {}`), keeping no fourcc, so an AC-3/DTS/PCM
162 /// stream can only be `"unknown"` here — enough to grey a row out, not162 /// stream can only be `"unknown"` here — enough to grey a row out, not
163 /// enough to name the codec. Upgrade path is reading the sample entry's163 /// enough to name the codec. Upgrade path is reading the sample entry's
@@ -965,7 +965,7 @@ impl AudioSession {
965 ///965 ///
966 /// `Ok(None)` for a file with no AAC track, and for an empty segment list.966 /// `Ok(None)` for a file with no AAC track, and for an empty segment list.
967 ///967 ///
968- /// ponytail: the first packet after an *interior* join decodes without its968+ /// corner-cut: the first packet after an *interior* join decodes without its
969 /// MDCT overlap predecessor, so up to 23 ms there can alias. Upgrade path is969 /// MDCT overlap predecessor, so up to 23 ms there can alias. Upgrade path is
970 /// re-encoding just the join packets, which needs an encoder we do not have.970 /// re-encoding just the join packets, which needs an encoder we do not have.
971 pub fn copy_segments(971 pub fn copy_segments(
@@ -1104,7 +1104,7 @@ impl AudioSession {
1104 /// unit tests, which is the only claim worth making about hand-written1104 /// unit tests, which is the only claim worth making about hand-written
1105 /// bitstream.1105 /// bitstream.
1106 ///1106 ///
1107-/// ponytail: mono and stereo only, because `chan_conf` beyond 2 needs more1107+/// corner-cut: mono and stereo only, because `chan_conf` beyond 2 needs more
1108 /// elements per block; the timeline refuses such a source at import today, so1108 /// elements per block; the timeline refuses such a source at import today, so
1109 /// this `Err` is a backstop. Upgrade path is emitting `chan_conf` elements.1109 /// this `Err` is a backstop. Upgrade path is emitting `chan_conf` elements.
1110 fn silent_packet(chan_conf: u8) -> crate::Result<Vec<u8>> {1110 fn silent_packet(chan_conf: u8) -> crate::Result<Vec<u8>> {
@@ -1159,7 +1159,7 @@ fn copy_track(path: &Path, stream: usize) -> crate::Result<Option<AacTrack>> {
1159 // rather than showing this, so a film's sound reaches an mp4 either way;1159 // rather than showing this, so a film's sound reaches an mp4 either way;
1160 // the words stay for a caller that copies and cannot re-encode.1160 // the words stay for a caller that copies and cannot re-encode.
1161 //1161 //
1162- // ponytail: the ceiling is the copy path being written against the mp41162+ // corner-cut: the ceiling is the copy path being written against the mp4
1163 // reader, not anything about the bytes. Upgrade path is a1163 // reader, not anything about the bytes. Upgrade path is a
1164 // `copy_segments` that walks a Matroska track, which would make this a1164 // `copy_segments` that walks a Matroska track, which would make this a
1165 // copy again instead of a re-encode.1165 // copy again instead of a re-encode.
@@ -1815,7 +1815,7 @@ fn vorbis_to_film_order(samples: &mut [f32], from: usize) {
1815 /// C, L, R, Ls, Rs, LFE element order into it: `decode.rs:779`) and what the AC-31815 /// C, L, R, Ls, Rs, LFE element order into it: `decode.rs:779`) and what the AC-3
1816 /// decoder's own passthrough uses.1816 /// decoder's own passthrough uses.
1817 ///1817 ///
1818-/// ponytail: a width past 7.1 (22.2, ambisonics) keeps its front pair and drops1818+/// corner-cut: a width past 7.1 (22.2, ambisonics) keeps its front pair and drops
1819 /// the rest -- no table here places those, and inventing one silently would be1819 /// the rest -- no table here places those, and inventing one silently would be
1820 /// worse than a fold that is merely narrow. Upgrade path is one more arm.1820 /// worse than a fold that is merely narrow. Upgrade path is one more arm.
1821 fn fold_coeffs(from: usize) -> Vec<(f32, f32)> {1821 fn fold_coeffs(from: usize) -> Vec<(f32, f32)> {
@@ -1845,7 +1845,7 @@ fn fold_coeffs(from: usize) -> Vec<(f32, f32)> {
1845 /// Both outputs are divided by the sum of their own coefficients1845 /// Both outputs are divided by the sum of their own coefficients
1846 /// ([`fold_coeffs`]), so a source at full scale cannot come out clipped.1846 /// ([`fold_coeffs`]), so a source at full scale cannot come out clipped.
1847 ///1847 ///
1848-/// ponytail: that normalisation costs 7.7 dB at 5.1 (9.9 at 7.1) against what1848+/// corner-cut: that normalisation costs 7.7 dB at 5.1 (9.9 at 7.1) against what
1849 /// ffmpeg's `-ac 2` hands out, which does not normalise and can overload -- so a1849 /// ffmpeg's `-ac 2` hands out, which does not normalise and can overload -- so a
1850 /// film plays quieter here than in a player beside it. It is the loudness the1850 /// film plays quieter here than in a player beside it. It is the loudness the
1851 /// AC-3 5.1 path already has (measured within 1.3 dB), so the two agree; the1851 /// AC-3 5.1 path already has (measured within 1.3 dB), so the two agree; the
@@ -2005,7 +2005,7 @@ struct MkvAc3Track {
2005 total_samples: Option<u64>,2005 total_samples: Option<u64>,
2006 /// What the decoder is asked to hand out, from this track's own layout:2006 /// What the decoder is asked to hand out, from this track's own layout:
2007 /// `Some(2)` for anything with more than one front channel, `None` for a2007 /// `Some(2)` for anything with more than one front channel, `None` for a
2008- /// mono track. The reason is [`ac3_decoder`]'s `ponytail`, not this file's.2008+ /// mono track. The reason is [`ac3_decoder`]'s `corner-cut`, not this file's.
2009 requested: Option<u16>,2009 requested: Option<u16>,
2010 }2010 }
2011 2011
@@ -2097,7 +2097,7 @@ impl MkvAc3Track {
2097 /// 5.1 track at all. Fresh per segment for the same reason every other decoder2097 /// 5.1 track at all. Fresh per segment for the same reason every other decoder
2098 /// here is: a seek leaves overlap-add state belonging to the frames we skipped.2098 /// here is: a seek leaves overlap-add state belonging to the frames we skipped.
2099 ///2099 ///
2100-/// ponytail: `Some(2)` on a **mono** (`acmod` 1/0) source decodes to digital2100+/// corner-cut: `Some(2)` on a **mono** (`acmod` 1/0) source decodes to digital
2101 /// silence in oxideav-ac3 0.0.10 — measured, 5.1 and stereo are correct — so a2101 /// silence in oxideav-ac3 0.0.10 — measured, 5.1 and stereo are correct — so a
2102 /// mono track asks for no downmix at all and stays the mono source it is. The2102 /// mono track asks for no downmix at all and stays the mono source it is. The
2103 /// upgrade path is `Some(2)` unconditionally once the library duplicates the2103 /// upgrade path is `Some(2)` unconditionally once the library duplicates the
@@ -2448,7 +2448,7 @@ pub(crate) fn stts_pairs(track: &Mp4Track) -> impl Iterator<Item = (u32, u32)> +
2448 /// Encoder delay in samples-per-channel: the edit list's first real entry says2448 /// Encoder delay in samples-per-channel: the edit list's first real entry says
2449 /// how far into the media the presentation starts.2449 /// how far into the media the presentation starts.
2450 ///2450 ///
2451-/// ponytail: an explicit `media_time` of 0 is taken at face value (no trim).2451+/// corner-cut: an explicit `media_time` of 0 is taken at face value (no trim).
2452 /// Muxers that write a zero edit list despite a primed stream would leak the2452 /// Muxers that write a zero edit list despite a primed stream would leak the
2453 /// priming; upgrade path is preferring the codec delay when it disagrees.2453 /// priming; upgrade path is preferring the codec delay when it disagrees.
2454 fn priming_samples(track: &Mp4Track, sample_rate: u32) -> u64 {2454 fn priming_samples(track: &Mp4Track, sample_rate: u32) -> u64 {
@@ -2461,7 +2461,7 @@ fn priming_samples(track: &Mp4Track, sample_rate: u32) -> u64 {
2461 /// timescale: where the presentation starts inside the media. `None` when there2461 /// timescale: where the presentation starts inside the media. `None` when there
2462 /// is no edit list, or only empty entries -- those shift the timeline rather2462 /// is no edit list, or only empty entries -- those shift the timeline rather
2463 /// than trim the media, and neither track honours that shift (see2463 /// than trim the media, and neither track honours that shift (see
2464-/// [`priming_samples`]'s ponytail). Shared with `demux`, which owes the video2464+/// [`priming_samples`]'s corner-cut). Shared with `demux`, which owes the video
2465 /// track the same trim.2465 /// track the same trim.
2466 pub(crate) fn edit_media_time(track: &Mp4Track) -> Option<u64> {2466 pub(crate) fn edit_media_time(track: &Mp4Track) -> Option<u64> {
2467 track2467 track
@@ -2497,7 +2497,7 @@ fn unscale(samples: u64, sample_rate: u32, timescale: u32) -> u64 {
2497 /// private `sample_time` walk over stts (`track.rs:475`); its `SttsEntry` is2497 /// private `sample_time` walk over stts (`track.rs:475`); its `SttsEntry` is
2498 /// unnameable outside the crate, hence the `(sample_count, sample_delta)` pairs.2498 /// unnameable outside the crate, hence the `(sample_count, sample_delta)` pairs.
2499 ///2499 ///
2500-/// ponytail: the walk-back is clamped to the start of the containing stts entry2500+/// corner-cut: the walk-back is clamped to the start of the containing stts entry
2501 /// rather than crossing into the previous one, so a target within `pre_roll`2501 /// rather than crossing into the previous one, so a target within `pre_roll`
2502 /// packets of an entry boundary gets less pre-roll. AAC packets are uniformly2502 /// packets of an entry boundary gets less pre-roll. AAC packets are uniformly
2503 /// 1024 frames (one entry per track), so this cannot fire here; upgrade path is2503 /// 1024 frames (one entry per track), so this cannot fire here; upgrade path is
@@ -3373,7 +3373,7 @@ mod tests {
3373 let entries = [(10u32, 1024u32), (10, 512)];3373 let entries = [(10u32, 1024u32), (10, 512)];
3374 assert_eq!(packet_at(entries, 12_500, 0), (15, 12_288));3374 assert_eq!(packet_at(entries, 12_500, 0), (15, 12_288));
3375 assert_eq!(packet_at(entries, 12_500, PRE_ROLL), (13, 11_264));3375 assert_eq!(packet_at(entries, 12_500, PRE_ROLL), (13, 11_264));
3376- // The ponytail clamp: on the first packet of the second entry the3376+ // The corner-cut clamp: on the first packet of the second entry the
3377 // walk-back stops there instead of stepping into the first entry.3377 // walk-back stops there instead of stepping into the first entry.
3378 assert_eq!(packet_at(entries, 10_500, PRE_ROLL), (11, 10_240));3378 assert_eq!(packet_at(entries, 10_500, PRE_ROLL), (11, 10_240));
3379 }3379 }
crates/engine/src/colorspace.rsmodified+1 -1
@@ -734,7 +734,7 @@ fn scaling_list_data(b: &mut Bits) {
734 /// holds: that count is what the *next* set spends a flag per picture on when734 /// holds: that count is what the *next* set spends a flag per picture on when
735 /// it predicts from this one, so losing it loses the bit position.735 /// it predicts from this one, so losing it loses the bit position.
736 ///736 ///
737-/// ponytail: the predicted case counts flags rather than deriving the POCs737+/// corner-cut: the predicted case counts flags rather than deriving the POCs
738 /// (§7.4.8, (7-59)..(7-71)), so a set whose `deltaRps` cancels a reference's738 /// (§7.4.8, (7-59)..(7-71)), so a set whose `deltaRps` cancels a reference's
739 /// own delta exactly -- a picture at POC distance zero, which is the current739 /// own delta exactly -- a picture at POC distance zero, which is the current
740 /// picture and which no encoder emits -- would be counted one too high. The740 /// picture and which no encoder emits -- would be counted one too high. The
crates/engine/src/decode.rsmodified+3 -3
@@ -657,7 +657,7 @@ impl Render {
657 color,657 color,
658 desc,658 desc,
659 canvas,659 canvas,
660- // ponytail: the ceiling is that the map reads limited-range codes660+ // corner-cut: the ceiling is that the map reads limited-range codes
661 // (`tonemap`'s input contract), so a full-range PQ file -- which661 // (`tonemap`'s input contract), so a full-range PQ file -- which
662 // no encoder writes and no camera produces -- is mapped as if it662 // no encoder writes and no camera produces -- is mapped as if it
663 // were limited and comes out slightly crushed. The upgrade is a663 // were limited and comes out slightly crushed. The upgrade is a
@@ -768,7 +768,7 @@ impl Still {
768 /// composes one picture per frame (topmost lane wins), so there is nothing768 /// composes one picture per frame (topmost lane wins), so there is nothing
769 /// for a blend to blend with.769 /// for a blend to blend with.
770 ///770 ///
771- /// ponytail: the ceiling is a logo with a transparent background, which771+ /// corner-cut: the ceiling is a logo with a transparent background, which
772 /// lands as a rectangle. Upgrade path is keeping the alpha plane here and772 /// lands as a rectangle. Upgrade path is keeping the alpha plane here and
773 /// giving `scale::Composer` a blend over the lane below.773 /// giving `scale::Composer` a blend over the lane below.
774 pub(crate) fn open(path: &Path) -> crate::Result<Self> {774 pub(crate) fn open(path: &Path) -> crate::Result<Self> {
@@ -1074,7 +1074,7 @@ fn run(
1074 // what the file's edit list trims, i.e. *before* frame 0.1074 // what the file's edit list trims, i.e. *before* frame 0.
1075 let mut index = demuxer.seek_to_sync_at_or_before(start_frame);1075 let mut index = demuxer.seek_to_sync_at_or_before(start_frame);
1076 1076
1077- // ponytail: emits pictures in decode order. Fine for Baseline (no B-frames);1077+ // corner-cut: emits pictures in decode order. Fine for Baseline (no B-frames);
1078 // reordering streams need POC-sorted output before display.1078 // reordering streams need POC-sorted output before display.
1079 loop {1079 loop {
1080 if cancel.load(Ordering::Relaxed) {1080 if cancel.load(Ordering::Relaxed) {
crates/engine/src/demux.rsmodified+5 -5
@@ -209,7 +209,7 @@ pub fn probe_bitrate(path: &Path) -> MediaBitrate {
209 // A standalone audio file's length is not a frame count; it is what the209 // A standalone audio file's length is not a frame count; it is what the
210 // audio header says, exactly as `PlaybackSession::import` reads it.210 // audio header says, exactly as `PlaybackSession::import` reads it.
211 //211 //
212- // ponytail: `duration_secs` falls back to a decode for a stream whose212+ // corner-cut: `duration_secs` falls back to a decode for a stream whose
213 // header states no length (a bare mp3 with no Xing header), which is the213 // header states no length (a bare mp3 with no Xing header), which is the
214 // one input here that is not header-only -- ~0.5 ms per source second, the214 // one input here that is not header-only -- ~0.5 ms per source second, the
215 // same cost import already pays for that file. Upgrade path is a215 // same cost import already pays for that file. Upgrade path is a
@@ -990,7 +990,7 @@ impl MkvDemuxer {
990 // `DefaultDuration` reaches it, and such a file was walked whole just990 // `DefaultDuration` reaches it, and such a file was walked whole just
991 // above -- the span is the window's, and the window is the file.991 // above -- the span is the window's, and the window is the file.
992 //992 //
993- // ponytail: a genuinely variable-rate file is averaged to one rate here,993+ // corner-cut: a genuinely variable-rate file is averaged to one rate here,
994 // because a timeline frame is a fixed slice of a second everywhere else994 // because a timeline frame is a fixed slice of a second everywhere else
995 // in this engine. Per-frame durations are the upgrade path, and they are995 // in this engine. Per-frame durations are the upgrade path, and they are
996 // a project-wide change, not a demuxer one.996 // a project-wide change, not a demuxer one.
@@ -2413,7 +2413,7 @@ fn vp9_bit_depth(au: &[u8]) -> crate::Result<Option<u8>> {
2413 /// needs: H.264 and HEVC cap `max_num_reorder_frames` at 16, and what a muxer2413 /// needs: H.264 and HEVC cap `max_num_reorder_frames` at 16, and what a muxer
2414 /// actually writes is two or three.2414 /// actually writes is two or three.
2415 ///2415 ///
2416-/// ponytail: a stream that reorders further than this would have its blocks2416+/// corner-cut: a stream that reorders further than this would have its blocks
2417 /// numbered a frame or two off. The upgrade path is the bitstream's own2417 /// numbered a frame or two off. The upgrade path is the bitstream's own
2418 /// `max_num_reorder_frames` out of the SPS, which this demuxer does not parse;2418 /// `max_num_reorder_frames` out of the SPS, which this demuxer does not parse;
2419 /// [`MkvDemuxer::cues_agree`] is what stands between that file and a wrong seek2419 /// [`MkvDemuxer::cues_agree`] is what stands between that file and a wrong seek
@@ -2835,7 +2835,7 @@ impl IndexKey {
2835 /// entry instead of leaving the old one behind, which is what keeps the2835 /// entry instead of leaving the old one behind, which is what keeps the
2836 /// directory one file per track of every Matroska file ever opened.2836 /// directory one file per track of every Matroska file ever opened.
2837 ///2837 ///
2838- /// ponytail: nothing evicts. That is bounded (a few MB for a feature film's2838+ /// corner-cut: nothing evicts. That is bounded (a few MB for a feature film's
2839 /// picture track) and the directory is the user's own cache to delete, but a2839 /// picture track) and the directory is the user's own cache to delete, but a
2840 /// size-capped LRU sweep at open is the upgrade path if it ever matters.2840 /// size-capped LRU sweep at open is the upgrade path if it ever matters.
2841 fn sidecar(&self) -> Option<PathBuf> {2841 fn sidecar(&self) -> Option<PathBuf> {
@@ -3290,7 +3290,7 @@ fn fps_from_stts(entries: impl IntoIterator<Item = (u32, u32)>, timescale: u32)
3290 /// (`test_high.mp4` loses two, and so did the film this bug came from). What is3290 /// (`test_high.mp4` loses two, and so did the film this bug came from). What is
3291 /// left over after the delay is the genuine trim.3291 /// left over after the delay is the genuine trim.
3292 ///3292 ///
3293-/// ponytail: empty edits are ignored and `media_time` is otherwise taken at face3293+/// corner-cut: empty edits are ignored and `media_time` is otherwise taken at face
3294 /// value, which is exactly what [`crate::audio::edit_media_time`] gives the audio3294 /// value, which is exactly what [`crate::audio::edit_media_time`] gives the audio
3295 /// track -- symmetry between the two is the point, not a full edit-list engine.3295 /// track -- symmetry between the two is the point, not a full edit-list engine.
3296 /// Their *empty* edits can differ (83 ms of video against 62 ms of audio in that3296 /// Their *empty* edits can differ (83 ms of video against 62 ms of audio in that
crates/engine/src/export.rsmodified+12 -12
@@ -932,7 +932,7 @@ pub(crate) struct ExportAudio {
932 /// The copy is still the default and still bit-exact: a timeline nobody has932 /// The copy is still the default and still bit-exact: a timeline nobody has
933 /// touched leaves as the very packets its source holds.933 /// touched leaves as the very packets its source holds.
934 ///934 ///
935-/// ponytail: this holds the whole exported AAC track in memory (~3 kB per935+/// corner-cut: this holds the whole exported AAC track in memory (~3 kB per
936 /// 23 ms packet, so ~500 MB for an hour). Upgrade path is a streaming936 /// 23 ms packet, so ~500 MB for an hour). Upgrade path is a streaming
937 /// `copy_segments` that yields packets instead of collecting them.937 /// `copy_segments` that yields packets instead of collecting them.
938 fn copy_audio(938 fn copy_audio(
@@ -1058,7 +1058,7 @@ fn copy_audio(
1058 /// being written as pictures that cannot decode. The region still starts at the1058 /// being written as pictures that cannot decode. The region still starts at the
1059 /// timeline frame it owns, so the sound never drifts.1059 /// timeline frame it owns, so the sound never drifts.
1060 ///1060 ///
1061-/// ponytail: mp4 is not copied (its `hvc1` sample entry forbids in-band1061+/// corner-cut: mp4 is not copied (its `hvc1` sample entry forbids in-band
1062 /// parameter sets, and the mp4 muxer here writes its sample table from a frame1062 /// parameter sets, and the mp4 muxer here writes its sample table from a frame
1063 /// counter), and neither is H.264, which this project only writes into mp4. The1063 /// counter), and neither is H.264, which this project only writes into mp4. The
1064 /// upgrade path for both is a sample-table writer that takes explicit1064 /// upgrade path for both is a sample-table writer that takes explicit
@@ -1268,7 +1268,7 @@ impl CopyPlan {
1268 /// and [`crate::mux::Mp4Muxer`] writes none): the first packet is that delay, so1268 /// and [`crate::mux::Mp4Muxer`] writes none): the first packet is that delay, so
1269 /// the sound starts at timeline frame 0 as a copied track's does.1269 /// the sound starts at timeline frame 0 as a copied track's does.
1270 ///1270 ///
1271-/// ponytail: the mix sits in memory as f32 before it is encoded (~46 MB a1271+/// corner-cut: the mix sits in memory as f32 before it is encoded (~46 MB a
1272 /// minute of 48 kHz stereo), for [`run_audio`]'s reason -- `rusty_aac` buffers1272 /// minute of 48 kHz stereo), for [`run_audio`]'s reason -- `rusty_aac` buffers
1273 /// the whole stream anyway, since it encodes its frames in parallel. Upgrade1273 /// the whole stream anyway, since it encodes its frames in parallel. Upgrade
1274 /// path is a chunked push once that encoder streams.1274 /// path is a chunked push once that encoder streams.
@@ -1427,7 +1427,7 @@ const OPUS_FRAME: usize = 960;
1427 /// it is written ([`opus_fidelity`]), because a cliff whose edge moves with the1427 /// it is written ([`opus_fidelity`]), because a cliff whose edge moves with the
1428 /// material is not something a constant can be safe against on its own.1428 /// material is not something a constant can be safe against on its own.
1429 ///1429 ///
1430-/// ponytail: the ceiling is this encoder's, not the format's. Upgrade path is a1430+/// corner-cut: the ceiling is this encoder's, not the format's. Upgrade path is a
1431 /// released `opus-rs` that survives its own high rates -- the unit test pins the1431 /// released `opus-rs` that survives its own high rates -- the unit test pins the
1432 /// failure, so it fails the day the bug is fixed and this can be raised.1432 /// failure, so it fails the day the bug is fixed and this can be raised.
1433 pub(crate) const OPUS_MAX_KBPS: u32 = 128;1433 pub(crate) const OPUS_MAX_KBPS: u32 = 128;
@@ -1503,7 +1503,7 @@ fn encode_opus(samples: &[f32], kbps: u32) -> crate::Result<Option<(Vec<crate::A
1503 // falls through to AAC, which is exactly where it stood before this seat1503 // falls through to AAC, which is exactly where it stood before this seat
1504 // existed -- a worse codec is a fair trade for a track that is the sound.1504 // existed -- a worse codec is a fair trade for a track that is the sound.
1505 //1505 //
1506- // ponytail: this costs one Opus decode of the whole track (a minute of1506+ // corner-cut: this costs one Opus decode of the whole track (a minute of
1507 // sound in a few hundred milliseconds, against a video encode that is1507 // sound in a few hundred milliseconds, against a video encode that is
1508 // minutes). Upgrade path is deleting it, the day this encoder can be1508 // minutes). Upgrade path is deleting it, the day this encoder can be
1509 // trusted at the rate it is asked for.1509 // trusted at the rate it is asked for.
@@ -1542,7 +1542,7 @@ const FIDELITY_FLOOR: f64 = 1e-9;
1542 /// `pre_skip` frames dropped: 1.0 is the same waveform, and this codec's failure1542 /// `pre_skip` frames dropped: 1.0 is the same waveform, and this codec's failure
1543 /// mode lands near 0.1. Streamed packet by packet -- the decode is never held,1543 /// mode lands near 0.1. Streamed packet by packet -- the decode is never held,
1544 /// only three running sums -- because the mix behind it is already the biggest1544 /// only three running sums -- because the mix behind it is already the biggest
1545-/// thing in an export ([`encode_audio`]'s ponytail).1545+/// thing in an export ([`encode_audio`]'s corner-cut).
1546 ///1546 ///
1547 /// A packet the decoder refuses is 0.0 and no argument: a track this project1547 /// A packet the decoder refuses is 0.0 and no argument: a track this project
1548 /// cannot read is exactly what this is here to catch.1548 /// cannot read is exactly what this is here to catch.
@@ -2101,7 +2101,7 @@ fn run_audio(
2101 * f64::from(audio.sample_rate))2101 * f64::from(audio.sample_rate))
2102 .round() as u64;2102 .round() as u64;
2103 let total = frames as usize * channels;2103 let total = frames as usize * channels;
2104- // ponytail: the whole export sits in memory (4 bytes a sample, so ~23 MB2104+ // corner-cut: the whole export sits in memory (4 bytes a sample, so ~23 MB
2105 // per minute of 48 kHz stereo). `flacenc::MemSource` wants it that way and2105 // per minute of 48 kHz stereo). `flacenc::MemSource` wants it that way and
2106 // the mp4 path already collects its copied AAC track the same. Upgrade path2106 // the mp4 path already collects its copied AAC track the same. Upgrade path
2107 // is hound's incremental writer plus flacenc's `Source` trait.2107 // is hound's incremental writer plus flacenc's `Source` trait.
@@ -2166,7 +2166,7 @@ fn write_wav(out: &Path, samples: &[i32], audio: &AudioMeta) -> crate::Result<()
2166 /// (anything but 8-48 kHz) is refused there by name rather than written as2166 /// (anything but 8-48 kHz) is refused there by name rather than written as
2167 /// something else.2167 /// something else.
2168 ///2168 ///
2169-/// ponytail: CBR only -- the card offers rates and not a quality index. Upgrade2169+/// corner-cut: CBR only -- the card offers rates and not a quality index. Upgrade
2170 /// path is `Mp3EncoderConfig::vbr_quality` behind a setting of its own.2170 /// path is `Mp3EncoderConfig::vbr_quality` behind a setting of its own.
2171 fn write_mp3(out: &Path, samples: &[i32], audio: &AudioMeta, kbps: u32) -> crate::Result<()> {2171 fn write_mp3(out: &Path, samples: &[i32], audio: &AudioMeta, kbps: u32) -> crate::Result<()> {
2172 let mut encoder = rusty_mp3::Mp3Encoder::new(rusty_mp3::Mp3EncoderConfig {2172 let mut encoder = rusty_mp3::Mp3Encoder::new(rusty_mp3::Mp3EncoderConfig {
@@ -2254,7 +2254,7 @@ const VORBIS_HOP: usize = 1024;
2254 /// source is opened -- but it is refused by name rather than left to the2254 /// source is opened -- but it is refused by name rather than left to the
2255 /// library's own message.2255 /// library's own message.
2256 ///2256 ///
2257-/// ponytail: one quality, [`VORBIS_QUALITY`], with no user control -- the Sound2257+/// corner-cut: one quality, [`VORBIS_QUALITY`], with no user control -- the Sound
2258 /// row is refused for this format because the rates it offers are not rates2258 /// row is refused for this format because the rates it offers are not rates
2259 /// Vorbis reaches. Upgrade path is a quality picker of its own, worth building2259 /// Vorbis reaches. Upgrade path is a quality picker of its own, worth building
2260 /// the day the card has a control that speaks in quality rather than kbps.2260 /// the day the card has a control that speaks in quality rather than kbps.
@@ -2651,7 +2651,7 @@ enum Enc {
2651 /// 12 lanes against 0.55 fps on one, measured 2026-08-11), and an export whose2651 /// 12 lanes against 0.55 fps on one, measured 2026-08-11), and an export whose
2652 /// frames came back shuffled would be no export at all.2652 /// frames came back shuffled would be no export at all.
2653 ///2653 ///
2654-/// ponytail: a batch of padded planes sits in memory (~3 MB a frame at 1080p,2654+/// corner-cut: a batch of padded planes sits in memory (~3 MB a frame at 1080p,
2655 /// so ~37 MB at 12 lanes) and the tail of a timeline is coded on fewer lanes2655 /// so ~37 MB at 12 lanes) and the tail of a timeline is coded on fewer lanes
2656 /// than the middle. Upgrade path is a pipeline that keeps every lane fed from a2656 /// than the middle. Upgrade path is a pipeline that keeps every lane fed from a
2657 /// decoder running ahead of the encoder rather than a batch barrier.2657 /// decoder running ahead of the encoder rather than a batch barrier.
@@ -2746,7 +2746,7 @@ impl Enc {
2746 /// the plugin's AV1 seat is wired, kept and only entered when `VE_HW_AV1=1`2746 /// the plugin's AV1 seat is wired, kept and only entered when `VE_HW_AV1=1`
2747 /// asks for it by name.2747 /// asks for it by name.
2748 ///2748 ///
2749- /// ponytail: the upgrade path is a driver this was reproduced against (or a2749+ /// corner-cut: the upgrade path is a driver this was reproduced against (or a
2750 /// cros-codecs release that fixes it) plus a probe encode of one frame at2750 /// cros-codecs release that fixes it) plus a probe encode of one frame at
2751 /// open, after which this can prefer hardware the way H.264 does.2751 /// open, after which this can prefer hardware the way H.264 does.
2752 fn open_av1(meta: &VideoMeta, settings: &ExportSettings) -> crate::Result<Self> {2752 fn open_av1(meta: &VideoMeta, settings: &ExportSettings) -> crate::Result<Self> {
@@ -2862,7 +2862,7 @@ impl Enc {
2862 /// a decoder may be started from -- which only the Matroska muxer asks, the2862 /// a decoder may be started from -- which only the Matroska muxer asks, the
2863 /// mp4 one reading its own sync flag off the IDR slice.2863 /// mp4 one reading its own sync flag off the IDR slice.
2864 ///2864 ///
2865- /// ponytail: `rusty_h264` buffers a whole GOP and returns it in one buffer2865+ /// corner-cut: `rusty_h264` buffers a whole GOP and returns it in one buffer
2866 /// when its lookahead is active, which would make this "one access unit"2866 /// when its lookahead is active, which would make this "one access unit"
2867 /// a lie and every sample duration with it. It is inactive here because2867 /// a lie and every sample duration with it. It is inactive here because
2868 /// lookahead needs a zero bitrate and this path is always CBR; a future2868 /// lookahead needs a zero bitrate and this path is always CBR; a future
crates/engine/src/mux.rsmodified+5 -5
@@ -148,7 +148,7 @@ impl Mp4Muxer {
148 /// puts in `CodecPrivate`, which is what makes the two containers' AV1 one148 /// puts in `CodecPrivate`, which is what makes the two containers' AV1 one
149 /// stream written twice rather than two.149 /// stream written twice rather than two.
150 ///150 ///
151- /// ponytail: the ceiling is that one entry. A second video track, or an AV1151+ /// corner-cut: the ceiling is that one entry. A second video track, or an AV1
152 /// track beside an H.264 one, would need the walk in [`patch_av01`] to be152 /// track beside an H.264 one, would need the walk in [`patch_av01`] to be
153 /// told *which* track it is patching; the upgrade path is passing the track153 /// told *which* track it is patching; the upgrade path is passing the track
154 /// id it already knows down that walk.154 /// id it already knows down that walk.
@@ -389,7 +389,7 @@ impl Mp4Muxer {
389 /// one may show two blocks at once, and joining them is what keeps the words389 /// one may show two blocks at once, and joining them is what keeps the words
390 /// a viewer saw over the picture.390 /// a viewer saw over the picture.
391 ///391 ///
392- /// ponytail: the `tx3g` sample entry is the one `mp4 0.14` writes and there392+ /// corner-cut: the `tx3g` sample entry is the one `mp4 0.14` writes and there
393 /// is no field to reach into it -- `MediaConfig::TtxtConfig` carries nothing393 /// is no field to reach into it -- `MediaConfig::TtxtConfig` carries nothing
394 /// -- so its `data_reference_index` is the crate's 0 where §8.5.2 says an394 /// -- so its `data_reference_index` is the crate's 0 where §8.5.2 says an
395 /// index into `dref` counts from 1, and it holds no `ftab` font table.395 /// index into `dref` counts from 1, and it holds no `ftab` font table.
@@ -475,7 +475,7 @@ impl Mp4Muxer {
475 /// both lines -- the two things a track of samples has to say that a list of475 /// both lines -- the two things a track of samples has to say that a list of
476 /// cues does not.476 /// cues does not.
477 ///477 ///
478-/// ponytail: the active set is looked for from the front of the list at every478+/// corner-cut: the active set is looked for from the front of the list at every
479 /// boundary, so this is quadratic in the cues of one track (a 5 000-cue film479 /// boundary, so this is quadratic in the cues of one track (a 5 000-cue film
480 /// costs ~25 M compares once, at the end of an export that took minutes). The480 /// costs ~25 M compares once, at the end of an export that took minutes). The
481 /// upgrade path is a sweep holding the open cues in a heap keyed on their end.481 /// upgrade path is a sweep holding the open cues in a heap keyed on their end.
@@ -820,7 +820,7 @@ pub struct CopyParams<'a> {
820 /// The source's own `Colour`: a copied HDR film leaves as the HDR film it820 /// The source's own `Colour`: a copied HDR film leaves as the HDR film it
821 /// is, because not one of its samples was touched.821 /// is, because not one of its samples was touched.
822 ///822 ///
823- /// ponytail: the `MasteringMetadata` and MaxCLL beside it are not carried --823+ /// corner-cut: the `MasteringMetadata` and MaxCLL beside it are not carried --
824 /// this engine parses them ([`crate::demux::ContentLight`]) but has nowhere824 /// this engine parses them ([`crate::demux::ContentLight`]) but has nowhere
825 /// to write them yet, so a copied HDR file states its curve and not its825 /// to write them yet, so a copied HDR file states its curve and not its
826 /// grading display. Upgrade path is a `Colour` element written from that826 /// grading display. Upgrade path is a `Colour` element written from that
@@ -922,7 +922,7 @@ impl MkvMuxer {
922 /// single coded picture, and interleaving needs to look ahead of the frame922 /// single coded picture, and interleaving needs to look ahead of the frame
923 /// being written.923 /// being written.
924 ///924 ///
925- /// ponytail: that is the copy path's own ceiling reappearing (the track sits925+ /// corner-cut: that is the copy path's own ceiling reappearing (the track sits
926 /// in memory, ~500 MB an hour); the upgrade path is the same streaming926 /// in memory, ~500 MB an hour); the upgrade path is the same streaming
927 /// `copy_segments` `export::copy_audio` names.927 /// `copy_segments` `export::copy_audio` names.
928 pub fn create(928 pub fn create(
crates/engine/src/playback.rsmodified+10 -10
@@ -48,7 +48,7 @@ const FLUSH_WAIT: Duration = Duration::from_millis(1);
48 /// honest; both are what a video imported onto such a timeline is held to48 /// honest; both are what a video imported onto such a timeline is held to
49 /// ([`matches_timeline`]).49 /// ([`matches_timeline`]).
50 ///50 ///
51-/// ponytail: a 25 fps video imported onto an audio-only timeline it could have51+/// corner-cut: a 25 fps video imported onto an audio-only timeline it could have
52 /// defined plays at 25 fps, correctly, but on a 30 fps timeline -- it is read52 /// defined plays at 25 fps, correctly, but on a 30 fps timeline -- it is read
53 /// through [`Rate`] like any other file shot at another rate rather than53 /// through [`Rate`] like any other file shot at another rate rather than
54 /// defining one. Upgrade path is adopting the first *picture's* rate and codec54 /// defining one. Upgrade path is adopting the first *picture's* rate and codec
@@ -67,7 +67,7 @@ const IMAGE_ONLY_RATE: f64 = 30.0;
67 /// number -- a `u32::MAX` sentinel here would make [`Self::trim_room`] hand a67 /// number -- a `u32::MAX` sentinel here would make [`Self::trim_room`] hand a
68 /// drag a wall past what the timeline can hold.68 /// drag a wall past what the timeline can hold.
69 ///69 ///
70-/// ponytail: a still cannot be held longer than this. Upgrade path is a70+/// corner-cut: a still cannot be held longer than this. Upgrade path is a
71 /// per-source length the project file carries, which every `counts` reader71 /// per-source length the project file carries, which every `counts` reader
72 /// would then have to take from the document rather than from the file.72 /// would then have to take from the document rather than from the file.
73 const IMAGE_MAX_SECS: f64 = 600.0;73 const IMAGE_MAX_SECS: f64 = 600.0;
@@ -1482,7 +1482,7 @@ impl PlaybackSession {
1482 /// worker keeps decoding through it ([`Dirty`]). `false` for a bad index or1482 /// worker keeps decoding through it ([`Dirty`]). `false` for a bad index or
1483 /// a non-finite band, and nothing changes.1483 /// a non-finite band, and nothing changes.
1484 ///1484 ///
1485- /// ponytail: the audio rebuild is what makes it live, so the cost of a1485+ /// corner-cut: the audio rebuild is what makes it live, so the cost of a
1486 /// change is a decoder restart -- inaudible at a drag's end, but too much to1486 /// change is a decoder restart -- inaudible at a drag's end, but too much to
1487 /// call once per pointer sample (a caller commits one change per gesture).1487 /// call once per pointer sample (a caller commits one change per gesture).
1488 /// Upgrade path is the per-segment twin of [`crate::audio::MixControls`],1488 /// Upgrade path is the per-segment twin of [`crate::audio::MixControls`],
@@ -1541,7 +1541,7 @@ impl PlaybackSession {
1541 /// ([`crate::limiter::LimiterState::retune`]), so its delay line keeps1541 /// ([`crate::limiter::LimiterState::retune`]), so its delay line keeps
1542 /// running and the sample count the master clock is made of does not move.1542 /// running and the sample count the master clock is made of does not move.
1543 ///1543 ///
1544- /// ponytail: not an undo step, and deliberately -- [`Project::undo`]1544+ /// corner-cut: not an undo step, and deliberately -- [`Project::undo`]
1545 /// restores the lane list, and the limiter is not in it, so snapshotting1545 /// restores the lane list, and the limiter is not in it, so snapshotting
1546 /// here would push a step whose undo changes nothing a person can see or1546 /// here would push a step whose undo changes nothing a person can see or
1547 /// hear (the twin [`set_lane_gain_db`](Self::set_lane_gain_db) *is*1547 /// hear (the twin [`set_lane_gain_db`](Self::set_lane_gain_db) *is*
@@ -1794,7 +1794,7 @@ impl PlaybackSession {
1794 /// that is not a picture -- zero either way, or past 8K, which is where the1794 /// that is not a picture -- zero either way, or past 8K, which is where the
1795 /// per-frame buffers stop being a sane thing to allocate from a keystroke.1795 /// per-frame buffers stop being a sane thing to allocate from a keystroke.
1796 ///1796 ///
1797- /// ponytail: not an undo step. The project resolution is not in the lane1797+ /// corner-cut: not an undo step. The project resolution is not in the lane
1798 /// snapshots [`Project::undo`] restores, so cycling it back is one more1798 /// snapshots [`Project::undo`] restores, so cycling it back is one more
1799 /// keypress rather than a `z`. Upgrade path is snapshotting it beside the1799 /// keypress rather than a `z`. Upgrade path is snapshotting it beside the
1800 /// lanes, which every existing snapshot site would then have to carry.1800 /// lanes, which every existing snapshot site would then have to carry.
@@ -1828,7 +1828,7 @@ impl PlaybackSession {
1828 /// tone map at all ([`crate::tonemap`]), so the reseek recomposes the very1828 /// tone map at all ([`crate::tonemap`]), so the reseek recomposes the very
1829 /// same bytes.1829 /// same bytes.
1830 ///1830 ///
1831- /// ponytail: not an undo step, for the reason the resolution is not1831+ /// corner-cut: not an undo step, for the reason the resolution is not
1832 /// ([`Project::set_tone`]).1832 /// ([`Project::set_tone`]).
1833 pub fn set_tone(&mut self, preset: crate::tonemap::Preset) -> bool {1833 pub fn set_tone(&mut self, preset: crate::tonemap::Preset) -> bool {
1834 if !self.project.set_tone(preset) {1834 if !self.project.set_tone(preset) {
@@ -1859,7 +1859,7 @@ impl PlaybackSession {
1859 /// ([`crate::mux::frame_timing`], the same wall a file of an unnameable rate1859 /// ([`crate::mux::frame_timing`], the same wall a file of an unnameable rate
1860 /// is refused at).1860 /// is refused at).
1861 ///1861 ///
1862- /// ponytail: not an undo step, exactly as the project resolution is not --1862+ /// corner-cut: not an undo step, exactly as the project resolution is not --
1863 /// and this one *moves the frame numbers*, so the way back is picking the1863 /// and this one *moves the frame numbers*, so the way back is picking the
1864 /// old rate (or the media's, [`native_frame_rate`](Self::native_frame_rate))1864 /// old rate (or the media's, [`native_frame_rate`](Self::native_frame_rate))
1865 /// rather than a `z`, and it lands within a frame of where it started rather1865 /// rather than a `z`, and it lands within a frame of where it started rather
@@ -2468,7 +2468,7 @@ impl PlaybackSession {
2468 /// the clock held until the new stream is really audible (see2468 /// the clock held until the new stream is really audible (see
2469 /// [`Audio::content_at`]).2469 /// [`Audio::content_at`]).
2470 ///2470 ///
2471- /// ponytail: the device is made active here, before the new stream has been2471+ /// corner-cut: the device is made active here, before the new stream has been
2472 /// opened ([`start_audio`](Self::start_audio) opens on the feeder now), so a2472 /// opened ([`start_audio`](Self::start_audio) opens on the feeder now), so a
2473 /// cold open leaves it playing its own silence with an empty ring -- audibly2473 /// cold open leaves it playing its own silence with an empty ring -- audibly
2474 /// the same silence as before, and counted: a scripted cold play-seek-scrub2474 /// the same silence as before, and counted: a scripted cold play-seek-scrub
@@ -2621,7 +2621,7 @@ impl PlaybackSession {
2621 /// Later edits do not reach a running export: it works from a snapshot of2621 /// Later edits do not reach a running export: it works from a snapshot of
2622 /// the edit list taken here.2622 /// the edit list taken here.
2623 ///2623 ///
2624- /// ponytail: this defaults the settings; the app still calls it that way,2624+ /// corner-cut: this defaults the settings; the app still calls it that way,
2625 /// and the export options card replaces the call with2625 /// and the export options card replaces the call with
2626 /// [`export_to_with`](PlaybackSession::export_to_with).2626 /// [`export_to_with`](PlaybackSession::export_to_with).
2627 pub fn export_to(&self, out: &Path) -> crate::ExportHandle {2627 pub fn export_to(&self, out: &Path) -> crate::ExportHandle {
@@ -2682,7 +2682,7 @@ impl PlaybackSession {
2682 // clock's own anchor is its first report ([`PlaybackClock`]), and2682 // clock's own anchor is its first report ([`PlaybackClock`]), and
2683 // anchoring it here is what makes a mid-play edit cost no offset.2683 // anchoring it here is what makes a mid-play edit cost no offset.
2684 //2684 //
2685- // ponytail: `started` is the position when the sample was queued,2685+ // corner-cut: `started` is the position when the sample was queued,
2686 // and it is heard at the next callback -- up to one quantum (5-212686 // and it is heard at the next callback -- up to one quantum (5-21
2687 // ms) later, so that much of the restart is still counted. Upgrade2687 // ms) later, so that much of the restart is still counted. Upgrade
2688 // path is the position at the first *pop* of real audio, which only2688 // path is the position at the first *pop* of real audio, which only
crates/engine/src/project.rsmodified+9 -9
@@ -998,7 +998,7 @@ impl Project {
998 /// different file. [`PlaybackSession::remove_source`] hands back the index998 /// different file. [`PlaybackSession::remove_source`] hands back the index
999 /// that went for exactly that.999 /// that went for exactly that.
1000 ///1000 ///
1001- /// ponytail: this retires the undo stack. `history` holds lanes alone, so a1001+ /// corner-cut: this retires the undo stack. `history` holds lanes alone, so a
1002 /// snapshot older than the removal can name the very source being removed1002 /// snapshot older than the removal can name the very source being removed
1003 /// (delete a file's clips, then remove the file) and restoring it would1003 /// (delete a file's clips, then remove the file) and restoring it would
1004 /// point a clip at an entry that is gone. The upgrade path is snapshotting1004 /// point a clip at an entry that is gone. The upgrade path is snapshotting
@@ -1185,7 +1185,7 @@ impl Project {
1185 /// Sets it. `false` for the one already in force, which is what keeps a1185 /// Sets it. `false` for the one already in force, which is what keeps a
1186 /// re-pick of the current rendition from costing a reseek.1186 /// re-pick of the current rendition from costing a reseek.
1187 ///1187 ///
1188- /// ponytail: not an undo step, for the reason the limiter and the project1188+ /// corner-cut: not an undo step, for the reason the limiter and the project
1189 /// resolution are not -- it is not in the lane list the history snapshots.1189 /// resolution are not -- it is not in the lane list the history snapshots.
1190 /// Upgrade path is the same one: a history entry holding the project's own1190 /// Upgrade path is the same one: a history entry holding the project's own
1191 /// settings beside the lanes.1191 /// settings beside the lanes.
@@ -1237,7 +1237,7 @@ impl Project {
1237 /// [`crate::export::ExportSettings::subtitles`]) has to fix it up or drop1237 /// [`crate::export::ExportSettings::subtitles`]) has to fix it up or drop
1238 /// it, or it names a different track afterwards.1238 /// it, or it names a different track afterwards.
1239 ///1239 ///
1240- /// ponytail: not an undo step, for the reason the limiter is not -- the1240+ /// corner-cut: not an undo step, for the reason the limiter is not -- the
1241 /// history snapshots hold the lane list and subtitles are not on it1241 /// history snapshots hold the lane list and subtitles are not on it
1242 /// ([`Project::subtitles`]). The inverse is putting the file's tracks back1242 /// ([`Project::subtitles`]). The inverse is putting the file's tracks back
1243 /// on -- [`crate::PlaybackSession::import_subtitles`], the panel's own1243 /// on -- [`crate::PlaybackSession::import_subtitles`], the panel's own
@@ -1273,7 +1273,7 @@ impl Project {
1273 /// Sets it, with the ceiling clamped to what [`Limiter`] allows. `false`1273 /// Sets it, with the ceiling clamped to what [`Limiter`] allows. `false`
1274 /// for a setting already in force.1274 /// for a setting already in force.
1275 ///1275 ///
1276- /// ponytail: not an undo step, for the reason the project resolution is not1276+ /// corner-cut: not an undo step, for the reason the project resolution is not
1277 /// one ([`crate::PlaybackSession::set_resolution`]) -- it is not in the1277 /// one ([`crate::PlaybackSession::set_resolution`]) -- it is not in the
1278 /// lane list the history snapshots. Upgrade path is a history entry that1278 /// lane list the history snapshots. Upgrade path is a history entry that
1279 /// holds the mix settings beside the lanes.1279 /// holds the mix settings beside the lanes.
@@ -1313,7 +1313,7 @@ impl Project {
1313 }1313 }
1314 Some(match self.eq.iter().position(|p| *p == params) {1314 Some(match self.eq.iter().position(|p| *p == params) {
1315 Some(at) => at as u16,1315 Some(at) => at as u16,
1316- // ponytail: the table is append-only within a session (see1316+ // corner-cut: the table is append-only within a session (see
1317 // the module docs) and `Clip::eq` is a u16, so the 65535th1317 // the module docs) and `Clip::eq` is a u16, so the 65535th
1318 // *distinct* setting of one session is refused rather than1318 // *distinct* setting of one session is refused rather than
1319 // silently aliased. Upgrade path if a UI ever drags a slider1319 // silently aliased. Upgrade path if a UI ever drags a slider
@@ -1374,7 +1374,7 @@ impl Project {
1374 }1374 }
1375 Some(match self.color.iter().position(|p| *p == params) {1375 Some(match self.color.iter().position(|p| *p == params) {
1376 Some(at) => at as u16,1376 Some(at) => at as u16,
1377- // ponytail: the 65535th *distinct* grade of one session is1377+ // corner-cut: the 65535th *distinct* grade of one session is
1378 // refused rather than silently aliased, exactly as `set_eq`1378 // refused rather than silently aliased, exactly as `set_eq`
1379 // refuses the 65535th curve; same upgrade path.1379 // refuses the 65535th curve; same upgrade path.
1380 None if self.color.len() >= usize::from(u16::MAX) => return false,1380 None if self.color.len() >= usize::from(u16::MAX) => return false,
@@ -1526,7 +1526,7 @@ impl Project {
1526 /// below is the backstop for the one case that could: a slow clip so short1526 /// below is the backstop for the one case that could: a slow clip so short
1527 /// that no source range fits its new room at all).1527 /// that no source range fits its new room at all).
1528 ///1528 ///
1529- /// ponytail: not exact both ways. Each rate change re-rounds every boundary1529+ /// corner-cut: not exact both ways. Each rate change re-rounds every boundary
1530 /// onto the new grid, so a rate picked, unpicked and picked again is within1530 /// onto the new grid, so a rate picked, unpicked and picked again is within
1531 /// a frame of where it started rather than back at it. Upgrade path is1531 /// a frame of where it started rather than back at it. Upgrade path is
1532 /// keeping the edit list at one reference rate and conforming on the way1532 /// keeping the edit list at one reference rate and conforming on the way
@@ -1654,7 +1654,7 @@ impl Project {
1654 /// from that frame on a different lane wins; that is what makes walking1654 /// from that frame on a different lane wins; that is what makes walking
1655 /// [`composite_spans_from`](Project::composite_spans_from) correct.1655 /// [`composite_spans_from`](Project::composite_spans_from) correct.
1656 ///1656 ///
1657- /// ponytail: alpha, opacity or any blend mode makes this untrue -- two1657+ /// corner-cut: alpha, opacity or any blend mode makes this untrue -- two
1658 /// lanes would then be visible in one frame and the caller needs a decoder1658 /// lanes would then be visible in one frame and the caller needs a decoder
1659 /// per lane plus a compositor. Upgrade path is a `Vec<Span>` per frame1659 /// per lane plus a compositor. Upgrade path is a `Vec<Span>` per frame
1660 /// (this same walk, per lane) feeding N decoders.1660 /// (this same walk, per lane) feeding N decoders.
@@ -4557,7 +4557,7 @@ mod tests {
4557 Project::from_parts(sources, lanes, eq, color).expect("from_parts");4557 Project::from_parts(sources, lanes, eq, color).expect("from_parts");
4558 }4558 }
4559 4559
4560- /// The two edges of a removal: it retires the undo stack (the ponytail on4560+ /// The two edges of a removal: it retires the undo stack (the corner-cut on
4561 /// [`Project::remove_source`]), and the last entry goes like any other4561 /// [`Project::remove_source`]), and the last entry goes like any other
4562 /// once nothing plays it -- a project may name no file at all.4562 /// once nothing plays it -- a project may name no file at all.
4563 #[test]4563 #[test]
crates/engine/src/subtitle.rsmodified+2 -2
@@ -41,7 +41,7 @@ pub struct Cue {
41 /// Plain text, `\n` between the lines of a multi-line cue. The markup is41 /// Plain text, `\n` between the lines of a multi-line cue. The markup is
42 /// resolved and dropped: `<i>` from an SRT, `{\an8}` and `\N` from an ASS.42 /// resolved and dropped: `<i>` from an SRT, `{\an8}` and `\N` from an ASS.
43 ///43 ///
44- /// ponytail: bold/italic/colour and ASS positioning are parsed by the crate44+ /// corner-cut: bold/italic/colour and ASS positioning are parsed by the crate
45 /// and thrown away here, because nothing draws a cue yet. The upgrade path45 /// and thrown away here, because nothing draws a cue yet. The upgrade path
46 /// is to keep `oxideav_core::Segment` beside this string -- the parsers46 /// is to keep `oxideav_core::Segment` beside this string -- the parsers
47 /// already hand it over -- and it belongs to whoever writes the renderer.47 /// already hand it over -- and it belongs to whoever writes the renderer.
@@ -242,7 +242,7 @@ pub fn open_all(rows: &[(PathBuf, Option<u64>)]) -> Vec<SubtitleTrack> {
242 // than doing it again. The whole walk is kept until the last row is served:242 // than doing it again. The whole walk is kept until the last row is served:
243 // it is the tracks nobody asked for that are dropped at the end.243 // it is the tracks nobody asked for that are dropped at the end.
244 //244 //
245- // ponytail: a track is *moved* out of its walk, so two rows naming the same245+ // corner-cut: a track is *moved* out of its walk, so two rows naming the same
246 // file and the same track leave the second refused by name rather than246 // file and the same track leave the second refused by name rather than
247 // holding the cues twice. No project edith saves has one -- a row is added247 // holding the cues twice. No project edith saves has one -- a row is added
248 // by (file, track) and only once ([`crate::Project::add_subtitles`]) -- and248 // by (file, track) and only once ([`crate::Project::add_subtitles`]) -- and
crates/engine/src/waveform.rsmodified+1 -1
@@ -107,7 +107,7 @@ fn peaks_over(
107 /// more than the decode they would save, and never more than the machine has —107 /// more than the decode they would save, and never more than the machine has —
108 /// nor more than a handful, since an import asks this of every source at once.108 /// nor more than a handful, since an import asks this of every source at once.
109 ///109 ///
110-/// ponytail: that last clause is a ceiling and not a bound — a library import of110+/// corner-cut: that last clause is a ceiling and not a bound — a library import of
111 /// twenty films runs as many of these as the background executor has threads,111 /// twenty films runs as many of these as the background executor has threads,
112 /// each with eight of its own. The upgrade path is one pool the waveforms share,112 /// each with eight of its own. The upgrade path is one pool the waveforms share,
113 /// which is also where a "visible range first" order would live.113 /// which is also where a "visible range first" order would live.
crates/engine/tests/ao_output.rsmodified+1 -1
@@ -34,7 +34,7 @@ fn tone() -> Vec<f32> {
34 /// own position, which the gain does not touch: the frames are still consumed,34 /// own position, which the gain does not touch: the frames are still consumed,
35 /// only the last multiply before the speaker is zero.35 /// only the last multiply before the speaker is zero.
36 ///36 ///
37-/// ponytail: it does mean the suite is deaf, so a plugin that shipped with the37+/// corner-cut: it does mean the suite is deaf, so a plugin that shipped with the
38 /// gain stuck at zero would pass it. Nothing here could ever hear that -- the38 /// gain stuck at zero would pass it. Nothing here could ever hear that -- the
39 /// checks that can are `scale`'s unit test in engine-audio (unity leaves the39 /// checks that can are `scale`'s unit test in engine-audio (unity leaves the
40 /// bytes alone) and a person with the app open. The upgrade path is recording40 /// bytes alone) and a person with the app open. The upgrade path is recording