[][src]Struct ilda_idtf::layout::Header

#[repr(C)]pub struct Header {
    pub ilda: [u8; 4],
    pub reserved: [u8; 3],
    pub format: Format,
    pub data_name: Name,
    pub company_name: Name,
    pub num_records: U16<Endianness>,
    pub data_number: U16<Endianness>,
    pub color_or_total_frames: U16<Endianness>,
    pub projector_number: u8,
    pub reserved2: u8,
}

Describes the layout of a section of IDTF.

Fields

ilda: [u8; 4]

The ASCII letters ILDA, identifying an ILDA format header.

reserved: [u8; 3]

Reserved for future use. Must be zeroed.

format: Format

One of the format codes defined in the Format Codes section.

data_name: Name

Eight ASCII characters with the name of this frame or color palette. If abinary zero is encountered, than any characters following the zero SHALL be ignored.

company_name: Name

Eight ASCII characters with the name of the company who created theframe. If a binary zero is encountered, than any characters following the zero SHALL beignored.

num_records: U16<Endianness>

Total number of data records (points or colors) that will follow this headerexpressed as an unsigned integer (0 – 65535). If the number of records is 0, then this is to be taken as the end of file header and nomore data will follow this header. For color palettes, the number of records SHALL be between 2 and 256.

data_number: U16<Endianness>

Frame or color palette number. If the frame is part of a group such as an animation sequence, thisrepresents the frame number. Counting begins with frame 0. Range is 0 – 65534.

color_or_total_frames: U16<Endianness>

Total frames in this group or sequence. Range is 1 – 65535.

For colorpalettes this SHALL be 0.

projector_number: u8

The projector number that this frame is to be displayed on. Range is 0 – 255. For single projector files this SHOULD be set 0.

reserved2: u8

Reserved for future use. Must be zeroed.

Methods

impl Header[src]

pub const ILDA: [u8; 4][src]

Trait Implementations

impl AsBytes for Header[src]

impl Clone for Header[src]

impl Copy for Header[src]

impl Debug for Header[src]

impl Eq for Header[src]

impl FromBytes for Header[src]

impl Hash for Header[src]

impl PartialEq<Header> for Header[src]

impl StructuralEq for Header[src]

impl StructuralPartialEq for Header[src]

impl Unaligned for Header[src]

Auto Trait Implementations

impl RefUnwindSafe for Header

impl Send for Header

impl Sync for Header

impl Unpin for Header

impl UnwindSafe for Header

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.