Skip to main content

Plane Struct

One plane of a composite (multi-plane) tensor. More...

Declaration

struct simaai::neat::Plane { ... }

Included Headers

#include <TensorCore.h>

Public Member Attributes Index

PlaneRolerole = PlaneRole::Unknown

Role of this plane (Y / U / V / UV / Unknown). More...

std::vector< int64_t >shape

Per-dimension sizes of this plane's pixel grid. More...

std::vector< int64_t >strides_bytes

Per-dimension byte strides within this plane. More...

int64_tbyte_offset = 0

Offset of this plane's first byte from the parent storage start. More...

Description

One plane of a composite (multi-plane) tensor.

Composite tensors (NV12, I420) carry a planes vector instead of a single contiguous buffer. Each Plane describes a sub-region: shape, strides, byte offset within the parent storage, and the role it plays (Y, U, V, or interleaved UV).

Definition at line 484 of file TensorCore.h.

Public Member Attributes

byte_offset

int64_t simaai::neat::Plane::byte_offset = 0

Offset of this plane's first byte from the parent storage start.

Definition at line 488 of file TensorCore.h.

488 int64_t byte_offset = 0;

role

PlaneRole simaai::neat::Plane::role = PlaneRole::Unknown

Role of this plane (Y / U / V / UV / Unknown).

Definition at line 485 of file TensorCore.h.

shape

std::vector<int64_t> simaai::neat::Plane::shape

Per-dimension sizes of this plane's pixel grid.

Definition at line 486 of file TensorCore.h.

486 std::vector<int64_t> shape;

strides_bytes

std::vector<int64_t> simaai::neat::Plane::strides_bytes

Per-dimension byte strides within this plane.

Definition at line 487 of file TensorCore.h.

487 std::vector<int64_t> strides_bytes;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.