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: i64sys_dts_usec: i64priority: 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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.