[−][src]Struct ilda_idtf::layout::Format
The type and data format of the section is defined by the format code.
There are five different formats currently defined.
Format 3 was proposed within the ILDA Technical Committee but was never approved. Therefore, format 3 is omitted in this ILDA standard.
Formats 0, 1, 4 and 5 define point data. Each point includes X and Y coordinates, andcolor information. The 3D formats 0 and 4 also include Z (depth) information.
The indexed color formats 0 and 1 use a data format where each point has a Color Indexbetween 0 and 255 used as an index into a color palette. Format 2 specifies the colorpalette for use with indexed color frames. The true color formats 4 and 5 use a red,green and blue color component of 8 bits for each point. ILDA files may contain a mix offrames with several different format codes.
Methods
impl Format
[src]
pub const COORDS_3D_INDEXED_COLOR: Self
[src]
pub const COORDS_2D_INDEXED_COLOR: Self
[src]
pub const COLOR_PALETTE: Self
[src]
pub const COORDS_3D_TRUE_COLOR: Self
[src]
pub const COORDS_2D_TRUE_COLOR: Self
[src]
Trait Implementations
impl AsBytes for Format
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
fn as_bytes(&self) -> &[u8]
[src]
fn as_bytes_mut(&mut self) -> &mut [u8] where
Self: FromBytes,
[src]
Self: FromBytes,
impl Clone for Format
[src]
impl Copy for Format
[src]
impl Debug for Format
[src]
impl Eq for Format
[src]
impl FromBytes for Format
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
impl Hash for Format
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Format> for Format
[src]
impl StructuralEq for Format
[src]
impl StructuralPartialEq for Format
[src]
impl Unaligned for Format
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,