Struct symphonia_core::meta::Visual
source · pub struct Visual {
pub media_type: String,
pub dimensions: Option<Size>,
pub bits_per_pixel: Option<NonZeroU32>,
pub color_mode: Option<ColorMode>,
pub usage: Option<StandardVisualKey>,
pub tags: Vec<Tag>,
pub data: Box<[u8]>,
}
Expand description
A Visual
is any 2 dimensional graphic.
Fields§
§media_type: String
The Media Type (MIME Type) used to encode the Visual
.
dimensions: Option<Size>
The dimensions of the Visual
.
Note: This value may not be accurate as it comes from metadata, not the embedded graphic itself. Consider it only a hint.
bits_per_pixel: Option<NonZeroU32>
The number of bits-per-pixel (aka bit-depth) of the unencoded image.
Note: This value may not be accurate as it comes from metadata, not the embedded graphic itself. Consider it only a hint.
color_mode: Option<ColorMode>
The color mode of the Visual
.
Note: This value may not be accurate as it comes from metadata, not the embedded graphic itself. Consider it only a hint.
usage: Option<StandardVisualKey>
The usage and/or content of the Visual
.
Any tags associated with the Visual
.
data: Box<[u8]>
The data of the Visual
, encoded as per media_type
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Visual
impl Send for Visual
impl Sync for Visual
impl Unpin for Visual
impl UnwindSafe for Visual
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