#[repr(C)]pub struct encoder_packet {Show 14 fields
pub data: *mut u8,
pub size: usize,
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: usize,
pub encoder: *mut obs_encoder_t,
}Expand description
Encoder output packet
Fields§
§data: *mut u8< Packet data
size: usize< 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_intPacket priority
This is generally use by video encoders to specify the priority of the packet.
drop_priority: c_intDropped packet priority
If this packet needs to be dropped, the next packet must be of this priority or higher to continue transmission.
track_idx: usizeAudio track index (used with outputs)
encoder: *mut obs_encoder_tEncoder from which the track originated from
Trait Implementations§
Source§impl Clone for encoder_packet
impl Clone for encoder_packet
Source§fn clone(&self) -> encoder_packet
fn clone(&self) -> encoder_packet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for encoder_packet
impl Debug for encoder_packet
Source§impl Ord for encoder_packet
impl Ord for encoder_packet
Source§fn cmp(&self, other: &encoder_packet) -> Ordering
fn cmp(&self, other: &encoder_packet) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for encoder_packet
impl PartialEq for encoder_packet
Source§impl PartialOrd for encoder_packet
impl PartialOrd for encoder_packet
impl Copy for encoder_packet
impl Eq for encoder_packet
impl StructuralPartialEq for encoder_packet
Auto Trait Implementations§
impl Freeze for encoder_packet
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more