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: u32sps_max_num_reorder_pics of the highest sub-layer.
max_latency_increase_plus1: u32sps_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: boolRange extension: no reference smoothing in intra prediction.
transform_skip_rotation: boolRange extension: 4×4 intra residuals without a transform are rotated by 180°.
transform_skip_context: boolRange extension: one significance context for untransformed blocks.
implicit_rdpcm: boolRange extension: residual DPCM, implied for intra blocks predicted straight across and signalled for inter ones.
explicit_rdpcm: bool§high_precision_offsets: boolRange extension: weighted-prediction offsets at full bit depth.
persistent_rice_adaptation: boolRange 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: boolImplementations§
Source§impl Sps
impl Sps
Sourcepub fn chroma_shift(&self) -> (usize, usize)
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.
pub fn parse(rbsp: &[u8]) -> Result<Sps>
pub fn ctb_size(&self) -> u32
pub fn width_ctbs(&self) -> u32
pub fn height_ctbs(&self) -> u32
Trait Implementations§
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> 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