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
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§
Source§impl Default for SpsBuilder
impl Default for SpsBuilder
Source§fn default() -> SpsBuilder
fn default() -> SpsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpsBuilder
impl RefUnwindSafe for SpsBuilder
impl Send for SpsBuilder
impl Sync for SpsBuilder
impl Unpin 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