#[repr(C)]
pub struct aom_partition_decision {
Show 16 fields pub is_final_decision: c_int, pub num_nodes: c_int, pub partition_decision: [c_int; 2048], pub current_decision: c_int, pub terminate_partition_search: c_int, pub partition_none_allowed: c_int, pub partition_rect_allowed: [c_int; 2], pub do_rectangular_split: c_int, pub do_square_split: c_int, pub prune_rect_part: [c_int; 2], pub horza_partition_allowed: c_int, pub horzb_partition_allowed: c_int, pub verta_partition_allowed: c_int, pub vertb_partition_allowed: c_int, pub partition_horz4_allowed: c_int, pub partition_vert4_allowed: c_int,
}
Expand description

Partition decisions received from the external model.

The encoder receives partition decisions and encodes the superblock with the given partition type. The encoder receives it from “func()” define in ….

NOTE: new member variables may be added to this structure in the future. Once new features are finalized, bump the major version of libaom.

Fields§

§is_final_decision: c_int

The flag whether it’s the final decision

§num_nodes: c_int

The number of leaf nodes

§partition_decision: [c_int; 2048]

Partition decisions

§current_decision: c_int

Partition decision for the current block

§terminate_partition_search: c_int

Terminate further partition search

§partition_none_allowed: c_int

Allow partition none type

§partition_rect_allowed: [c_int; 2]

Allow rectangular partitions

§do_rectangular_split: c_int

Try rectangular split partition

§do_square_split: c_int

Try square split partition

§prune_rect_part: [c_int; 2]

Prune rectangular partition

§horza_partition_allowed: c_int

Allow HORZ_A partition

§horzb_partition_allowed: c_int

Allow HORZ_B partition

§verta_partition_allowed: c_int

Allow VERT_A partition

§vertb_partition_allowed: c_int

Allow VERT_B partition

§partition_horz4_allowed: c_int

Allow HORZ4 partition

§partition_vert4_allowed: c_int

Allow VERT4 partition

Trait Implementations§

source§

impl Clone for aom_partition_decision

source§

fn clone(&self) -> aom_partition_decision

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for aom_partition_decision

source§

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

Formats the value using the given formatter. Read more
source§

impl Copy for aom_partition_decision

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.