[][src]Struct ilda_idtf::layout::Format

#[repr(C)]pub struct Format(pub u8);

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]

Trait Implementations

impl AsBytes for Format[src]

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]

impl Hash for Format[src]

impl PartialEq<Format> for Format[src]

impl StructuralEq for Format[src]

impl StructuralPartialEq for Format[src]

impl Unaligned for Format[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.