[−][src]Struct mmal_sys::MMAL_BUFFER_HEADER_T
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]
fn clone(&self) -> MMAL_BUFFER_HEADER_T
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,