|
MXL : Media eXchange Layer
MXL
|
Discrete layout variant of DataLayout. More...
#include <DataLayout.hpp>
Public Member Functions | |
| std::size_t | activePlaneCount () const noexcept |
| Return the number of active planes (consecutive non-zero sliceSizes entries). | |
| std::uint32_t | planePayloadOffset (std::size_t planeIndex, std::uint32_t grainPayloadOffset) const |
| Return the byte offset from the grain start to where a given plane's payload begins. | |
| std::size_t | totalLength () const noexcept |
| Return the total length of all active planes together. | |
Public Attributes | |
| std::array< std::uint32_t, MXL_MAX_PLANES_PER_GRAIN > | sliceSizes |
| std::uint16_t | totalSlices |
Discrete layout variant of DataLayout.
Definition at line 23 of file DataLayout.hpp.
|
nodiscardnoexcept |
Return the number of active planes (consecutive non-zero sliceSizes entries).
Definition at line 27 of file DataLayout.cpp.
|
nodiscard |
Return the byte offset from the grain start to where a given plane's payload begins.
| planeIndex | The zero-based plane index. |
| grainPayloadOffset | The byte offset of the first plane's payload from the grain start (i.e. the grain header size). |
Definition at line 32 of file DataLayout.cpp.
|
nodiscardnoexcept |
Return the total length of all active planes together.
Definition at line 22 of file DataLayout.cpp.
| std::array<std::uint32_t, MXL_MAX_PLANES_PER_GRAIN> mxl::lib::fabrics::ofi::DataLayout::Discrete::sliceSizes |
Size in bytes of a single slice for each plane.
Definition at line 26 of file DataLayout.hpp.
| std::uint16_t mxl::lib::fabrics::ofi::DataLayout::Discrete::totalSlices |
Total number of slices (e.g. video lines) per grain.
Definition at line 27 of file DataLayout.hpp.