Struct obs_sys::encoder_packet
source · #[repr(C)]pub struct encoder_packet {Show 14 fields
pub data: *mut u8,
pub size: size_t,
pub pts: i64,
pub dts: i64,
pub timebase_num: i32,
pub timebase_den: i32,
pub type_: obs_encoder_type,
pub keyframe: bool,
pub dts_usec: i64,
pub sys_dts_usec: i64,
pub priority: c_int,
pub drop_priority: c_int,
pub track_idx: size_t,
pub encoder: *mut obs_encoder_t,
}
Expand description
Encoder output packet
Fields
data: *mut u8
< Packet data
size: size_t
< Packet size
pts: i64
< Presentation timestamp
dts: i64
< Decode timestamp
timebase_num: i32
< Timebase numerator
timebase_den: i32
< Timebase denominator
type_: obs_encoder_type
< Encoder type
keyframe: bool
< Is a keyframe
dts_usec: i64
sys_dts_usec: i64
priority: c_int
Packet priority
This is generally use by video encoders to specify the priority of the packet.
drop_priority: c_int
Dropped packet priority
If this packet needs to be dropped, the next packet must be of this priority or higher to continue transmission.
track_idx: size_t
Audio track index (used with outputs)
encoder: *mut obs_encoder_t
Encoder from which the track originated from
Trait Implementations
sourceimpl Clone for encoder_packet
impl Clone for encoder_packet
sourcefn clone(&self) -> encoder_packet
fn clone(&self) -> encoder_packet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for encoder_packet
impl Debug for encoder_packet
sourceimpl Default for encoder_packet
impl Default for encoder_packet
impl Copy for encoder_packet
Auto Trait Implementations
impl RefUnwindSafe for encoder_packet
impl !Send for encoder_packet
impl !Sync for encoder_packet
impl Unpin for encoder_packet
impl UnwindSafe for encoder_packet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more