feat(engine): clip move, clip effect_input, mandatory static FFmpeg

- oakengine_sequence_move_clip implemented for real (oaktimeline
  TrackMoveBlockCommand; fixes the graph-ownership/gap-anchor/ripple
  trim bugs the stub was hiding); same-track via the frozen C ABI,
  cross-track supported by the module command
- oaknode clip blocks now declare a tex_in texture input and set
  effect_input to it, so timeline clips can host effect chains; facade
  test covers effect insert/remove on a real clip
- oakffmpeg-link: FFMPEG_DIR is now mandatory with a clear panic (a
  Homebrew upgrade left the system ffmpeg .pc pointing at a deleted
  dav1d Cellar path, breaking links); reads a git-ignored workspace
  .env for IDEs that cannot inject env vars (RustRover); links the C++
  stdlib for C++ codec libs (svt-av1)
- oakengine re-exports oaknode so tests share one crate instance;
  it_node uses the direct instance's value type where it calls the
  module FFI (the --workspace dev-dependency feature split builds
  oaknode twice)
This commit is contained in:
2026-08-11 23:04:48 +08:00
parent a209f63d52
commit 18ff60f147
351 changed files with 32880 additions and 15939 deletions
+14 -13
View File
@@ -142,10 +142,7 @@ pub type TextRenderBackend =
/// facade installs a text engine. Setting a hook to `None` uninstalls
/// it (the C++ global is a plain function pointer, assignable any
/// number of times; a `Mutex` keeps the tests able to reset it).
pub fn set_text_backends(
measure: Option<TextMeasureBackend>,
render: Option<TextRenderBackend>,
) {
pub fn set_text_backends(measure: Option<TextMeasureBackend>, render: Option<TextRenderBackend>) {
*MEASURE.lock().unwrap() = measure;
*RENDER.lock().unwrap() = render;
}
@@ -198,15 +195,19 @@ mod tests {
}
}
set_text_backends(Some(measure), Some(render));
assert_eq!(text_measure_backend().unwrap()(&TextLayoutRequest {
text: String::new(),
mode: TextLayoutMode::PlainText,
font_family: String::new(),
font_size_pt: 0.0,
dots_per_meter: 0,
wrap_width: 0.0,
center_horizontally: false,
}).width, 12.0);
assert_eq!(
text_measure_backend().unwrap()(&TextLayoutRequest {
text: String::new(),
mode: TextLayoutMode::PlainText,
font_family: String::new(),
font_size_pt: 0.0,
dots_per_meter: 0,
wrap_width: 0.0,
center_horizontally: false,
})
.width,
12.0
);
assert_eq!(
text_measure_backend().unwrap()(&TextLayoutRequest {
text: String::new(),