pub struct SpsBuilder(/* private fields */);Implementations§
Source§impl SpsBuilder
impl SpsBuilder
pub fn new() -> Self
pub fn seq_parameter_set_id(self, value: u8) -> Self
pub fn profile_idc(self, value: Profile) -> Self
pub fn level_idc(self, value: Level) -> Self
pub fn frame_crop_offsets( self, top: u32, bottom: u32, left: u32, right: u32, ) -> Self
pub fn frame_crop(self, top: u32, bottom: u32, left: u32, right: u32) -> Self
pub fn resolution(self, width: u32, height: u32) -> Self
pub fn chroma_format_idc(self, value: u8) -> Self
pub fn max_num_ref_frames(self, value: u8) -> Self
pub fn frame_mbs_only_flag(self, value: bool) -> Self
pub fn mb_adaptive_frame_field_flag(self, value: bool) -> Self
pub fn seq_scaling_matrix_present_flag(self, value: bool) -> Self
pub fn direct_8x8_inference_flag(self, value: bool) -> Self
pub fn vui_parameters_present(self) -> Self
pub fn aspect_ratio_idc(self, value: u8) -> Self
pub fn sar_resolution(self, width: u16, height: u16) -> Self
pub fn aspect_ratio(self, width_ratio: u16, height_ratio: u16) -> Self
pub fn timing_info( self, num_units_in_tick: u32, time_scale: u32, fixed_frame_rate_flag: bool, ) -> Self
Sourcepub fn video_signal_type(
self,
full_range: bool,
colour_primaries: u8,
transfer_characteristics: u8,
matrix_coefficients: u8,
) -> Self
pub fn video_signal_type( self, full_range: bool, colour_primaries: u8, transfer_characteristics: u8, matrix_coefficients: u8, ) -> Self
Labels the stream’s color space in the VUI.
video_format goes out as 5 (unspecified), the value a decoder infers
when the field is absent, so this only adds the range and the color
description.
pub fn bitstream_restrictions_present(self) -> Self
pub fn max_num_reorder_frames(self, value: u32) -> Self
pub fn max_dec_frame_buffering(self, value: u32) -> Self
pub fn log2_max_frame_num_minus4(self, value: u8) -> Self
pub fn max_frame_num(self, value: u32) -> Self
pub fn pic_order_cnt_type(self, value: u8) -> Self
pub fn log2_max_pic_order_cnt_lsb_minus4(self, value: u8) -> Self
pub fn max_pic_order_cnt_lsb(self, value: u32) -> Self
pub fn delta_pic_order_always_zero_flag(self, value: bool) -> Self
pub fn bit_depth_chroma_minus8(self, value: u8) -> Self
pub fn bit_depth_chroma(self, value: u8) -> Self
pub fn bit_depth_luma_minus8(self, value: u8) -> Self
pub fn bit_depth_luma(self, value: u8) -> Self
pub fn build(self) -> Rc<Sps>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpsBuilder
impl RefUnwindSafe for SpsBuilder
impl Send for SpsBuilder
impl Sync for SpsBuilder
impl Unpin for SpsBuilder
impl UnsafeUnpin for SpsBuilder
impl UnwindSafe for SpsBuilder
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