[][src]Struct mmal_sys::MMAL_BUFFER_HEADER_T

#[repr(C)]
pub struct MMAL_BUFFER_HEADER_T {
    pub next: *mut MMAL_BUFFER_HEADER_T,
    pub priv_: *mut MMAL_BUFFER_HEADER_PRIVATE_T,
    pub cmd: u32,
    pub data: *mut u8,
    pub alloc_size: u32,
    pub length: u32,
    pub offset: u32,
    pub flags: u32,
    pub pts: i64,
    pub dts: i64,
    pub type_: *mut MMAL_BUFFER_HEADER_TYPE_SPECIFIC_T,
    pub user_data: *mut c_void,
}

Definition of the buffer header structure. A buffer header does not directly carry the data to be passed to a component but instead it references the actual data using a pointer (and an associated length). It also contains an internal area which can be used to store command to be associated with the external data.

Fields

next: *mut MMAL_BUFFER_HEADER_T

< Used to link several buffer headers together

priv_: *mut MMAL_BUFFER_HEADER_PRIVATE_T

< Data private to the framework

cmd: u32

< Defines what the buffer header contains. This is a FourCC with 0 as a special value meaning stream data

data: *mut u8

< Pointer to the start of the payload buffer (should not be changed by component)

alloc_size: u32

< Allocated size in bytes of payload buffer

length: u32

< Number of bytes currently used in the payload buffer (starting from offset)

offset: u32

< Offset in bytes to the start of valid data in the payload buffer

flags: u32

< Flags describing properties of a buffer header (see \ref bufferheaderflags "Buffer header flags")

pts: i64

< Presentation timestamp in microseconds. \ref MMAL_TIME_UNKNOWN is used when the pts is unknown.

dts: i64

< Decode timestamp in microseconds (dts = pts, except in the case of video streams with B frames). \ref MMAL_TIME_UNKNOWN is used when the dts is unknown.

type_: *mut MMAL_BUFFER_HEADER_TYPE_SPECIFIC_T

Type specific data that's associated with a payload buffer

user_data: *mut c_void

< Field reserved for use by the client

Trait Implementations

impl Clone for MMAL_BUFFER_HEADER_T[src]

impl Copy for MMAL_BUFFER_HEADER_T[src]

impl Debug for MMAL_BUFFER_HEADER_T[src]

Auto Trait Implementations

impl !Send for MMAL_BUFFER_HEADER_T

impl Unpin for MMAL_BUFFER_HEADER_T

impl !Sync for MMAL_BUFFER_HEADER_T

impl UnwindSafe for MMAL_BUFFER_HEADER_T

impl RefUnwindSafe for MMAL_BUFFER_HEADER_T

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]