#[repr(C)]pub struct EfViewOrigin {
pub parent_width: u64,
pub parent_height: u64,
pub parent_row_stride: u64,
pub x: u64,
pub y: u64,
pub has_origin: u32,
}Expand description
Parent-region snapshot for a tensor that is a view/batch sub-region.
The scalar block ef_tensor_view_origin fills, the same shape as
ef_tensor_plane and ef_tensor_image_desc_view – one library reading a
tensor it did not mint. has_origin is a presence flag rather than a
sentinel value because every field is a legitimate 0 for a view pinned at
the parent’s top-left corner; the other fields are meaningful only when
it is non-zero. Mirrors edgefirst_tensor::ViewOrigin.
Fields§
§parent_width: u64Logical width of the root parent image, in pixels.
parent_height: u64Logical height of the root parent image, in pixels.
parent_row_stride: u64The parent’s row stride in bytes.
x: u64This view’s top-left x origin within the root parent, in pixels.
y: u64This view’s top-left y origin within the root parent, in pixels.
has_origin: u32Non-zero when this tensor is a view/batch sub-region; 0 for a whole tensor, in which case the other fields are all zero and unused.