Struct ktx2::BasicDataFormatDescriptor
source · pub struct BasicDataFormatDescriptor<'data> {
pub color_model: Option<ColorModel>,
pub color_primaries: Option<ColorPrimaries>,
pub transfer_function: Option<TransferFunction>,
pub flags: DataFormatFlags,
pub texel_block_dimensions: [u32; 4],
pub bytes_planes: [u32; 8],
/* private fields */
}
Fields§
§color_model: Option<ColorModel>
None means Unspecified or is an otherwise unknown value
color_primaries: Option<ColorPrimaries>
None means Unspecified or is an otherwise unknown value
transfer_function: Option<TransferFunction>
None means Unspecified or is an otherwise unknown value
flags: DataFormatFlags
§texel_block_dimensions: [u32; 4]
§bytes_planes: [u32; 8]
Implementations§
source§impl<'data> BasicDataFormatDescriptor<'data>
impl<'data> BasicDataFormatDescriptor<'data>
pub fn parse(bytes: &'data [u8]) -> Result<Self, ParseError>
pub fn sample_information( &self ) -> impl Iterator<Item = SampleInformation> + 'data
Auto Trait Implementations§
impl<'data> RefUnwindSafe for BasicDataFormatDescriptor<'data>
impl<'data> Send for BasicDataFormatDescriptor<'data>
impl<'data> Sync for BasicDataFormatDescriptor<'data>
impl<'data> Unpin for BasicDataFormatDescriptor<'data>
impl<'data> UnwindSafe for BasicDataFormatDescriptor<'data>
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