pub struct RefPic {
pub id: u32,
pub planes: Arc<[Plane; 3]>,
pub field_planes: [Option<Arc<[Plane; 3]>>; 2],
pub mbs: Arc<Vec<MbInfo>>,
pub field_mbs: [Option<Arc<Vec<MbInfo>>>; 2],
pub field_poc: [i32; 2],
pub poc: i32,
pub frame_num: u32,
pub frame_num_wrap: i32,
pub short: u8,
pub long: u8,
pub lt_idx: u32,
/* private fields */
}Available on crate feature
decode only.Expand description
A frame store: a decoded frame, a complementary field pair, or a single field, with per-field reference marking.
Fields§
§id: u32§planes: Arc<[Plane; 3]>The whole frame (both fields interleaved).
field_planes: [Option<Arc<[Plane; 3]>>; 2]Field views of planes ([top, bottom]), built on demand.
mbs: Arc<Vec<MbInfo>>Motion of every macroblock of a frame picture — for colocated (direct) prediction.
field_mbs: [Option<Arc<Vec<MbInfo>>>; 2]Motion of each field picture, when the frame was coded as fields.
field_poc: [i32; 2]TopFieldOrderCnt, BottomFieldOrderCnt (i32::MAX when absent).
poc: i32PicOrderCnt of the frame: the smaller field POC.
frame_num: u32§frame_num_wrap: i32§short: u8Fields marked “used for short-term reference” (bit 0 top, 1 bottom).
long: u8Fields marked “used for long-term reference”.
lt_idx: u32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for RefPic
impl Freeze for RefPic
impl Move for RefPic
impl RefUnwindSafe for RefPic
impl Send for RefPic
impl Sync for RefPic
impl Unpin for RefPic
impl UnsafeUnpin for RefPic
impl UnwindSafe for RefPic
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