pub struct VideoStreamOptions {
pub paced: bool,
pub channel_depth: usize,
pub ahead_frames: usize,
pub reorder_depth_frames: usize,
pub reorder_max_frames: usize,
}Fields§
§paced: boolIf true, the stream will pace frames according to PTS.
channel_depth: usizeChannel depth between decode thread and consumer.
ahead_frames: usizeHow many decoded frames to keep buffered ahead.
reorder_depth_frames: usizeReorder window (frames). If output PTS is already monotonic, this is harmless.
reorder_max_frames: usizeHard cap to prevent unbounded memory growth due to timestamp/pathological cases.
Trait Implementations§
Source§impl Clone for VideoStreamOptions
impl Clone for VideoStreamOptions
Source§fn clone(&self) -> VideoStreamOptions
fn clone(&self) -> VideoStreamOptions
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 VideoStreamOptions
impl Debug for VideoStreamOptions
Source§impl Default for VideoStreamOptions
impl Default for VideoStreamOptions
impl Copy for VideoStreamOptions
Auto Trait Implementations§
impl Freeze for VideoStreamOptions
impl RefUnwindSafe for VideoStreamOptions
impl Send for VideoStreamOptions
impl Sync for VideoStreamOptions
impl Unpin for VideoStreamOptions
impl UnwindSafe for VideoStreamOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more