transforms
ptwm_core::transforms::reshape
Reshape op — re-tags a plane's layout without modifying its bytes.
ptwm_core::transforms::reshape
Reshape op — re-tags a plane's layout without modifying its bytes.
ptwm_core::transforms::reshape
crates/ptwm-core/src/transforms/reshape.rs:1mod reshape`Reshape` op — re-tags a plane's layout without modifying its bytes.
ptwm_core::transforms::reshape::read_reshape_params
crates/ptwm-core/src/transforms/reshape.rs:89pub fn read_reshape_params(buf: &[u8]) -> Result<(Reshape, usize), PtwmCoreError>Parse `Reshape` params from a raw byte buffer.
ptwm_core::transforms::reshape::Reshape
crates/ptwm-core/src/transforms/reshape.rs:13pub struct Reshape`Reshape` re-tags a plane's `Layout` without altering its byte content. Used to convert `Flat` → `Rows{row_len}` before row-aware codecs, or `Rows` → `Flat` to collapse structure.
When the target layout is `Layout::Rows{row_len}`, the plane's
`length_bytes` must be divisible by `row_len`.