Struct switch_frame

Source
#[repr(C)]
pub struct switch_frame {
Show 21 fields pub codec: *mut switch_codec_t, pub source: *const c_char, pub packet: *mut c_void, pub packetlen: u32, pub extra_data: *mut c_void, pub data: *mut c_void, pub datalen: u32, pub buflen: u32, pub samples: u32, pub rate: u32, pub channels: u32, pub payload: switch_payload_t, pub timestamp: u32, pub seq: u16, pub ssrc: u32, pub m: switch_bool_t, pub flags: switch_frame_flag_t, pub user_data: *mut c_void, pub pmap: *mut payload_map_t, pub img: *mut switch_image_t, pub geometry: switch_frame_geometry,
}
Expand description

\brief An abstraction of a data frame

Fields§

§codec: *mut switch_codec_t

a pointer to the codec information

§source: *const c_char

the originating source of the frame

§packet: *mut c_void

the raw packet

§packetlen: u32

the size of the raw packet when applicable

§extra_data: *mut c_void

the extra frame data

§data: *mut c_void

the frame data

§datalen: u32

the size of the buffer that is in use

§buflen: u32

the entire size of the buffer

§samples: u32

the number of audio samples present (audio only)

§rate: u32

the rate of the frame

§channels: u32

the number of channels in the frame

§payload: switch_payload_t

the payload of the frame

§timestamp: u32

the timestamp of the frame

§seq: u16§ssrc: u32§m: switch_bool_t§flags: switch_frame_flag_t

frame flags

§user_data: *mut c_void§pmap: *mut payload_map_t§img: *mut switch_image_t§geometry: switch_frame_geometry

Trait Implementations§

Source§

impl Clone for switch_frame

Source§

fn clone(&self) -> switch_frame

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for switch_frame

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for switch_frame

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.