Skip to content

Commit cac5318

Browse files
committed
feat: labeled Materialize transforms for pipeline tracing
Update all Materialize constructors to use the new labeled struct: - watermark: "red_dot", "watermark_overlay" - converter: "region_viewport", "white_balance", "color_matrix_srgb" - zenpipe bridge: "round_corners" Pipeline traces now show e.g. "[MAT] watermark_overlay" instead of "[MAT] custom transform". Also updates Cargo.lock for archmage 0.9.12 -> 0.9.13.
1 parent 636a949 commit cac5318

File tree

3 files changed

+55
-55
lines changed

3 files changed

+55
-55
lines changed

Cargo.lock

Lines changed: 45 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

imageflow_core/src/zen/converter.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl NodeConverter for RegionConverter {
155155
// Use Materialize to apply the region viewport via ExpandCanvasSource.
156156
// ExpandCanvasSource handles negative placement (crop) and positive
157157
// placement (padding) transparently.
158-
Ok(NodeOp::Materialize(Box::new(
158+
Ok(NodeOp::Materialize { label: "region_viewport", transform: Box::new(
159159
move |data: &mut Vec<u8>, w: &mut u32, h: &mut u32, fmt: &mut zenpipe::PixelFormat| {
160160
let src_w = *w;
161161
let src_h = *h;
@@ -189,7 +189,7 @@ impl NodeConverter for RegionConverter {
189189
*w = canvas_w;
190190
*h = canvas_h;
191191
},
192-
)))
192+
)})
193193
}
194194

195195
fn convert_group(&self, nodes: &[&dyn NodeInstance]) -> Result<NodeOp, PipeError> {
@@ -223,7 +223,7 @@ impl NodeConverter for WhiteBalanceConverter {
223223
_ => 0.006,
224224
};
225225

226-
Ok(NodeOp::Materialize(Box::new(
226+
Ok(NodeOp::Materialize { label: "white_balance", transform: Box::new(
227227
move |data: &mut Vec<u8>, w: &mut u32, h: &mut u32, fmt: &mut zenpipe::PixelFormat| {
228228
let width = *w as usize;
229229
let height = *h as usize;
@@ -271,7 +271,7 @@ impl NodeConverter for WhiteBalanceConverter {
271271
}
272272
}
273273
},
274-
)))
274+
)})
275275
}
276276

277277
fn convert_group(&self, nodes: &[&dyn NodeInstance]) -> Result<NodeOp, PipeError> {
@@ -348,7 +348,7 @@ impl NodeConverter for ColorMatrixSrgbConverter {
348348
}
349349
};
350350

351-
Ok(NodeOp::Materialize(Box::new(
351+
Ok(NodeOp::Materialize { label: "color_matrix_srgb", transform: Box::new(
352352
move |data: &mut Vec<u8>, w: &mut u32, h: &mut u32, fmt: &mut zenpipe::PixelFormat| {
353353
let width = *w as usize;
354354
let height = *h as usize;
@@ -396,7 +396,7 @@ impl NodeConverter for ColorMatrixSrgbConverter {
396396
}
397397
}
398398
},
399-
)))
399+
)})
400400
}
401401

402402
fn convert_group(&self, nodes: &[&dyn NodeInstance]) -> Result<NodeOp, PipeError> {

0 commit comments

Comments
 (0)