SpsBuilder

Struct SpsBuilder 

Source
pub struct SpsBuilder(/* private fields */);

Implementations§

Source§

impl SpsBuilder

Source

pub fn new() -> Self

Source

pub fn seq_parameter_set_id(self, value: u8) -> Self

Source

pub fn profile_idc(self, value: Profile) -> Self

Source

pub fn level_idc(self, value: Level) -> Self

Source

pub fn frame_crop_offsets( self, top: u32, bottom: u32, left: u32, right: u32, ) -> Self

Source

pub fn frame_crop(self, top: u32, bottom: u32, left: u32, right: u32) -> Self

Source

pub fn resolution(self, width: u32, height: u32) -> Self

Source

pub fn chroma_format_idc(self, value: u8) -> Self

Source

pub fn max_num_ref_frames(self, value: u8) -> Self

Source

pub fn frame_mbs_only_flag(self, value: bool) -> Self

Source

pub fn mb_adaptive_frame_field_flag(self, value: bool) -> Self

Source

pub fn seq_scaling_matrix_present_flag(self, value: bool) -> Self

Source

pub fn direct_8x8_inference_flag(self, value: bool) -> Self

Source

pub fn vui_parameters_present(self) -> Self

Source

pub fn aspect_ratio_idc(self, value: u8) -> Self

Source

pub fn sar_resolution(self, width: u16, height: u16) -> Self

Source

pub fn aspect_ratio(self, width_ratio: u16, height_ratio: u16) -> Self

Source

pub fn timing_info( self, num_units_in_tick: u32, time_scale: u32, fixed_frame_rate_flag: bool, ) -> Self

Source

pub fn log2_max_frame_num_minus4(self, value: u8) -> Self

Source

pub fn max_frame_num(self, value: u32) -> Self

Source

pub fn pic_order_cnt_type(self, value: u8) -> Self

Source

pub fn log2_max_pic_order_cnt_lsb_minus4(self, value: u8) -> Self

Source

pub fn max_pic_order_cnt_lsb(self, value: u32) -> Self

Source

pub fn delta_pic_order_always_zero_flag(self, value: bool) -> Self

Source

pub fn bit_depth_chroma_minus8(self, value: u8) -> Self

Source

pub fn bit_depth_chroma(self, value: u8) -> Self

Source

pub fn bit_depth_luma_minus8(self, value: u8) -> Self

Source

pub fn bit_depth_luma(self, value: u8) -> Self

Source

pub fn build(self) -> Rc<Sps>

Trait Implementations§

Source§

impl Default for SpsBuilder

Source§

fn default() -> SpsBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.