pub struct FrameDescriptor {
pub display_index: u64,
pub frame_type: CodingFrameType,
pub decode_index: u64,
pub qp_override: Option<u8>,
}Expand description
A display-order frame descriptor with its assigned coding type.
Fields§
§display_index: u64Zero-based display-order index.
frame_type: CodingFrameTypeAssigned coding type for this frame.
decode_index: u64Decode-order index (may differ from display_index for B-frames).
qp_override: Option<u8>Quantizer parameter override, if any (0 = use default).
Implementations§
Source§impl FrameDescriptor
impl FrameDescriptor
Sourcepub fn new(index: u64, frame_type: CodingFrameType) -> Self
pub fn new(index: u64, frame_type: CodingFrameType) -> Self
Creates a new frame descriptor with matching display and decode indices.
Sourcepub fn with_decode_index(self, decode_index: u64) -> Self
pub fn with_decode_index(self, decode_index: u64) -> Self
Sets an explicit decode-order index.
Trait Implementations§
Source§impl Clone for FrameDescriptor
impl Clone for FrameDescriptor
Source§fn clone(&self) -> FrameDescriptor
fn clone(&self) -> FrameDescriptor
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 FrameDescriptor
impl Debug for FrameDescriptor
Source§impl PartialEq for FrameDescriptor
impl PartialEq for FrameDescriptor
impl Eq for FrameDescriptor
impl StructuralPartialEq for FrameDescriptor
Auto Trait Implementations§
impl Freeze for FrameDescriptor
impl RefUnwindSafe for FrameDescriptor
impl Send for FrameDescriptor
impl Sync for FrameDescriptor
impl Unpin for FrameDescriptor
impl UnsafeUnpin for FrameDescriptor
impl UnwindSafe for FrameDescriptor
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