Skip to main content

TxTypeCtx

Struct TxTypeCtx 

Source
pub struct TxTypeCtx<'a> {
    pub set: IntraTxSet,
    pub intra_cdfs: &'a mut IntraTxTypeCdfs,
    pub intra_dir: usize,
    pub uv_mode: usize,
    pub qindex_positive: bool,
    pub lossless: bool,
}
Expand description

How a coded block’s PlaneTxType is resolved once all_zero shows the block carries coefficients (compute_tx_type / transform_type, §5.11.40–47).

Luma reads the intra_tx_type symbol at this point — its spec position, after all_zero and before eob_pt; chroma derives its type from the prediction mode without consuming a symbol. A zero quantiser (the lossless path) or a DCT_DCT-only set forces DCT_DCT.

Fields§

§set: IntraTxSet

The intra transform set for this size (get_tx_set).

§intra_cdfs: &'a mut IntraTxTypeCdfs

The adapting intra_tx_type CDFs; only luma reads them.

§intra_dir: usize

intraDir for the luma symbol’s context.

§uv_mode: usize

UVMode for the chroma (plane > 0) derivation.

§qindex_positive: bool

Whether the segment’s quantiser index (get_qindex(1, segment_id)) is non-zero; only then is a luma intra_tx_type symbol coded.

§lossless: bool

The block’s Lossless: every plane is then DCT_DCT (the WHT path).

Auto Trait Implementations§

§

impl<'a> !UnwindSafe for TxTypeCtx<'a>

§

impl<'a> Freeze for TxTypeCtx<'a>

§

impl<'a> RefUnwindSafe for TxTypeCtx<'a>

§

impl<'a> Send for TxTypeCtx<'a>

§

impl<'a> Sync for TxTypeCtx<'a>

§

impl<'a> Unpin for TxTypeCtx<'a>

§

impl<'a> UnsafeUnpin for TxTypeCtx<'a>

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> 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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.