Skip to main content

Sps

Struct Sps 

Source
pub struct Sps {
Show 43 fields pub id: u32, pub profile_idc: u32, pub chroma_format_idc: u32, pub width: u32, pub height: u32, pub crop: [u32; 4], pub bit_depth_y: u32, pub bit_depth_c: u32, pub log2_max_poc_lsb: u32, pub max_dec_pic_buffering: u32, pub max_num_reorder: u32, pub max_latency_increase_plus1: u32, pub log2_min_cb: u32, pub log2_ctb: u32, pub log2_min_tb: u32, pub log2_max_tb: u32, pub max_th_depth_inter: u32, pub max_th_depth_intra: u32, pub scaling: Option<ScalingFactors>, pub amp: bool, pub sao: bool, pub pcm: bool, pub pcm_bit_depth_y: u32, pub pcm_bit_depth_c: u32, pub log2_min_pcm: u32, pub log2_max_pcm: u32, pub pcm_loop_filter_disabled: bool, pub st_rps: Vec<StRps>, pub long_term_present: bool, pub lt_ref_pics: Vec<(u32, bool)>, pub temporal_mvp: bool, pub strong_intra_smoothing: bool, pub intra_smoothing_disabled: bool, pub transform_skip_rotation: bool, pub transform_skip_context: bool, pub implicit_rdpcm: bool, pub explicit_rdpcm: bool, pub high_precision_offsets: bool, pub persistent_rice_adaptation: bool, pub colour_primaries: Option<u32>, pub transfer_characteristics: Option<u32>, pub matrix_coefficients: Option<u32>, pub full_range: bool,
}

Fields§

§id: u32§profile_idc: u32§chroma_format_idc: u32§width: u32§height: u32§crop: [u32; 4]

Luma samples cropped: left, right, top, bottom.

§bit_depth_y: u32§bit_depth_c: u32§log2_max_poc_lsb: u32§max_dec_pic_buffering: u32§max_num_reorder: u32

sps_max_num_reorder_pics of the highest sub-layer.

§max_latency_increase_plus1: u32

sps_max_latency_increase_plus1 of the highest sub-layer.

§log2_min_cb: u32§log2_ctb: u32§log2_min_tb: u32§log2_max_tb: u32§max_th_depth_inter: u32§max_th_depth_intra: u32§scaling: Option<ScalingFactors>§amp: bool§sao: bool§pcm: bool§pcm_bit_depth_y: u32§pcm_bit_depth_c: u32§log2_min_pcm: u32§log2_max_pcm: u32§pcm_loop_filter_disabled: bool§st_rps: Vec<StRps>§long_term_present: bool§lt_ref_pics: Vec<(u32, bool)>§temporal_mvp: bool§strong_intra_smoothing: bool§intra_smoothing_disabled: bool

Range extension: no reference smoothing in intra prediction.

§transform_skip_rotation: bool

Range extension: 4×4 intra residuals without a transform are rotated by 180°.

§transform_skip_context: bool

Range extension: one significance context for untransformed blocks.

§implicit_rdpcm: bool

Range extension: residual DPCM, implied for intra blocks predicted straight across and signalled for inter ones.

§explicit_rdpcm: bool§high_precision_offsets: bool

Range extension: weighted-prediction offsets at full bit depth.

§persistent_rice_adaptation: bool

Range extension: Rice parameters carried between sub-blocks.

§colour_primaries: Option<u32>

The VUI’s colour description, when it has one.

§transfer_characteristics: Option<u32>§matrix_coefficients: Option<u32>§full_range: bool

Implementations§

Source§

impl Sps

Source

pub fn chroma_shift(&self) -> (usize, usize)

Chroma subsampling as shifts, (horizontal, vertical): (1, 1) for 4:2:0, (1, 0) for 4:2:2, (0, 0) for 4:4:4.

Source

pub fn parse(rbsp: &[u8]) -> Result<Sps>

Source

pub fn ctb_size(&self) -> u32

Source

pub fn width_ctbs(&self) -> u32

Source

pub fn height_ctbs(&self) -> u32

Trait Implementations§

Source§

impl Clone for Sps

Source§

fn clone(&self) -> Self

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 Debug for Sps

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Sps

§

impl Freeze for Sps

§

impl Move for Sps

§

impl RefUnwindSafe for Sps

§

impl Send for Sps

§

impl Sync for Sps

§

impl Unpin for Sps

§

impl UnsafeUnpin for Sps

§

impl UnwindSafe for Sps

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

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
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> 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 = !

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.