Skip to main content

InterDecodeInputs

Struct InterDecodeInputs 

Source
pub struct InterDecodeInputs<'a, 'b> {
    pub walk: SliceWalkInputs,
    pub decode: SliceDecodeInputs,
    pub slice_is_b: bool,
    pub num_ref_idx_active_minus1_l0: u32,
    pub num_ref_idx_active_minus1_l1: u32,
    pub ref_list_l0: &'b [RefPictureView<'a>],
    pub ref_list_l1: &'b [RefPictureView<'a>],
}
Expand description

Inputs for the Baseline P/B decode entry point.

Round-9 lifts the single-reference round-4 constraint by promoting ref_l0 / ref_l1 to slices indexed by RefIdxLX. Round-8 and earlier callers that only need one reference per list pass a single-element slice; the inter pipeline now resolves each CU’s per-list reference via the decoded ref_idx_l* syntax element instead of always reading slot 0.

Fields§

§walk: SliceWalkInputs§decode: SliceDecodeInputs§slice_is_b: bool

Slice type — false for P (single ref list), true for B (RefPicList1 also active).

§num_ref_idx_active_minus1_l0: u32

num_ref_idx_active_minus1[0] — round-9 honours arbitrary values up to ref_list_l0.len() - 1. Decoded ref_idx_l0 syntax element is range-checked against this bound.

§num_ref_idx_active_minus1_l1: u32

num_ref_idx_active_minus1[1] — for B slices.

§ref_list_l0: &'b [RefPictureView<'a>]

L0 reference picture list, indexed by RefIdxL0. Must contain at least num_ref_idx_active_minus1_l0 + 1 entries; round-9 validates the bound at slice entry. Synthetic fixtures pass a single-element slice and num_ref_idx_active_minus1_l0 == 0.

§ref_list_l1: &'b [RefPictureView<'a>]

L1 reference picture list, indexed by RefIdxL1. Empty for P slices; for B slices must contain at least num_ref_idx_active_minus1_l1 + 1 entries.

Implementations§

Source§

impl<'a, 'b> InterDecodeInputs<'a, 'b>

Source

pub fn ref_l0(&self, ref_idx: u32) -> Option<RefPictureView<'a>>

L0 reference at ref_idx. Returns None when out of range.

Source

pub fn ref_l1(&self, ref_idx: u32) -> Option<RefPictureView<'a>>

L1 reference at ref_idx. Returns None when out of range or when the slice is unipred (P).

Trait Implementations§

Source§

impl<'a, 'b> Clone for InterDecodeInputs<'a, 'b>

Source§

fn clone(&self) -> InterDecodeInputs<'a, 'b>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, 'b> Copy for InterDecodeInputs<'a, 'b>

Source§

impl<'a, 'b> Debug for InterDecodeInputs<'a, 'b>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, 'b> Freeze for InterDecodeInputs<'a, 'b>

§

impl<'a, 'b> RefUnwindSafe for InterDecodeInputs<'a, 'b>

§

impl<'a, 'b> Send for InterDecodeInputs<'a, 'b>

§

impl<'a, 'b> Sync for InterDecodeInputs<'a, 'b>

§

impl<'a, 'b> Unpin for InterDecodeInputs<'a, 'b>

§

impl<'a, 'b> UnsafeUnpin for InterDecodeInputs<'a, 'b>

§

impl<'a, 'b> UnwindSafe for InterDecodeInputs<'a, 'b>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.