Struct Sequence

struct Sequence { ... }

Fields

profile: u8

OBU Sequence header of AV1

num_bits_width: u32
num_bits_height: u32
bit_depth: usize
chroma_sampling: ChromaSampling
chroma_sample_position: ChromaSamplePosition
pixel_range: PixelRange
color_description: Option<ColorDescription>
mastering_display: Option<MasteringDisplay>
content_light: Option<ContentLight>
max_frame_width: u32
max_frame_height: u32
frame_id_numbers_present_flag: bool
frame_id_length: u32
delta_frame_id_length: u32
use_128x128_superblock: bool
order_hint_bits_minus_1: u32
force_screen_content_tools: u32

0 - force off 1 - force on 2 - adaptive

force_integer_mv: u32

0 - Not to force. MV can be in 1/4 or 1/8 1 - force to integer 2 - adaptive

still_picture: bool

Video is a single frame still picture

reduced_still_picture_hdr: bool

Use reduced header for still picture

enable_filter_intra: bool

enables/disables filter_intra

enable_intra_edge_filter: bool

enables/disables corner/edge filtering and upsampling

enable_interintra_compound: bool

enables/disables interintra_compound

enable_masked_compound: bool

enables/disables masked compound

enable_dual_filter: bool

0 - disable dual interpolation filter 1 - enable vert/horiz filter selection

enable_order_hint: bool

0 - disable order hint, and related tools jnt_comp, ref_frame_mvs, frame_sign_bias if 0, enable_jnt_comp and enable_ref_frame_mvs must be set zs 0.

enable_jnt_comp: bool

0 - disable joint compound modes 1 - enable it

enable_ref_frame_mvs: bool

0 - disable ref frame mvs 1 - enable it

enable_warped_motion: bool

0 - disable warped motion for sequence 1 - enable it for the sequence

enable_superres: bool

0 - Disable superres for the sequence, and disable transmitting per-frame superres enabled flag. 1 - Enable superres for the sequence, and also enable per-frame flag to denote if superres is enabled for that frame.

enable_cdef: bool

To turn on/off CDEF

enable_restoration: bool

To turn on/off loop restoration

enable_large_lru: bool

To turn on/off larger-than-superblock loop restoration units

enable_delayed_loopfilter_rdo: bool

allow encoder to delay loop filter RDO/coding until after frame reconstruciton is complete

operating_points_cnt_minus_1: usize
operating_point_idc: [u16; 32]
display_model_info_present_flag: bool
decoder_model_info_present_flag: bool
level_idx: [u8; 32]
tier: [usize; 32]

seq_tier in the spec. One bit: 0 or 1.

film_grain_params_present: bool
timing_info_present: bool
tiling: TilingInfo
time_base: Rational

Implementations

impl Sequence

fn new(config: &EncoderConfig) -> Sequence

Panics

Panics if the resulting tile sizes would be too large.

const fn get_relative_dist(self: &Self, a: u32, b: u32) -> i32
fn get_skip_mode_allowed<T: Pixel>(self: &Self, fi: &FrameInvariants<T>, inter_cfg: &InterConfig, reference_select: bool) -> bool

impl Clone for Sequence

fn clone(self: &Self) -> Sequence

impl Copy for Sequence

impl Debug for Sequence

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

impl Freeze for Sequence

impl RefUnwindSafe for Sequence

impl Send for Sequence

impl Sync for Sequence

impl Unpin for Sequence

impl UnwindSafe for Sequence

impl<T> Any for Sequence

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Sequence

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Sequence

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Sequence

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Sequence

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Sequence

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Sequence

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Sequence

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

impl<T, U> TryInto for Sequence

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>