#[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