pub struct BlobStrings<'a> {
pub format: &'a str,
pub color_space: &'a str,
pub color_transfer: &'a str,
pub color_encoding: &'a str,
pub color_range: &'a str,
}Expand description
The blob’s five strings, borrowed from the buffer.
Strings rather than enum codes, matching Tensor.msg exactly. This
permanently avoids the mirrored-enum bug class already seen in this repo,
where TensorMemory.MEM == 3 in Python collided with
HAL_TENSOR_MEMORY_PBO == 3 in C: a string cannot be silently reinterpreted
by a consumer that disagrees about numbering.
edgefirst-tensor carries these; it never parses "NV12".
edgefirst-image interprets them.
Fields§
§format: &'a strFormat descriptor ("NV12", "rgb8", "h264"); "" = not an image.
color_space: &'a strColour primaries.
color_transfer: &'a strTransfer function.
color_encoding: &'a strYCbCr matrix; "" for RGB.
color_range: &'a str"full" / "limited" / "".
Trait Implementations§
Source§impl<'a> Clone for BlobStrings<'a>
impl<'a> Clone for BlobStrings<'a>
impl<'a> Copy for BlobStrings<'a>
Source§impl<'a> Debug for BlobStrings<'a>
impl<'a> Debug for BlobStrings<'a>
Source§impl<'a> Default for BlobStrings<'a>
impl<'a> Default for BlobStrings<'a>
impl<'a> Eq for BlobStrings<'a>
Source§impl<'a> PartialEq for BlobStrings<'a>
impl<'a> PartialEq for BlobStrings<'a>
impl<'a> StructuralPartialEq for BlobStrings<'a>
Auto Trait Implementations§
impl<'a> Freeze for BlobStrings<'a>
impl<'a> RefUnwindSafe for BlobStrings<'a>
impl<'a> Send for BlobStrings<'a>
impl<'a> Sync for BlobStrings<'a>
impl<'a> Unpin for BlobStrings<'a>
impl<'a> UnsafeUnpin for BlobStrings<'a>
impl<'a> UnwindSafe for BlobStrings<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more