Skip to main content

StdVideoAV1FilmGrain

Struct StdVideoAV1FilmGrain 

Source
#[repr(C)]
pub struct StdVideoAV1FilmGrain {
Show 25 fields pub flags: StdVideoAV1FilmGrainFlags, pub grain_scaling_minus_8: u8, pub ar_coeff_lag: u8, pub ar_coeff_shift_minus_6: u8, pub grain_scale_shift: u8, pub grain_seed: u16, pub film_grain_params_ref_idx: u8, pub num_y_points: u8, pub point_y_value: [u8; 14], pub point_y_scaling: [u8; 14], pub num_cb_points: u8, pub point_cb_value: [u8; 10], pub point_cb_scaling: [u8; 10], pub num_cr_points: u8, pub point_cr_value: [u8; 10], pub point_cr_scaling: [u8; 10], pub ar_coeffs_y_plus_128: [i8; 24], pub ar_coeffs_cb_plus_128: [i8; 25], pub ar_coeffs_cr_plus_128: [i8; 25], pub cb_mult: u8, pub cb_luma_mult: u8, pub cb_offset: u16, pub cr_mult: u8, pub cr_luma_mult: u8, pub cr_offset: u16,
}
Expand description

Native structure StdVideoAV1FilmGrain.

Khronos registry source: StdVideoAV1FilmGrain

Fields§

§flags: StdVideoAV1FilmGrainFlags

Native field flags.

§grain_scaling_minus_8: u8

Native field grain_scaling_minus_8.

§ar_coeff_lag: u8

Native field ar_coeff_lag.

§ar_coeff_shift_minus_6: u8

Native field ar_coeff_shift_minus_6.

§grain_scale_shift: u8

Native field grain_scale_shift.

§grain_seed: u16

Native field grain_seed.

§film_grain_params_ref_idx: u8

Native field film_grain_params_ref_idx.

§num_y_points: u8

Native field num_y_points.

§point_y_value: [u8; 14]

Native field point_y_value.

§point_y_scaling: [u8; 14]

Native field point_y_scaling.

§num_cb_points: u8

Native field num_cb_points.

§point_cb_value: [u8; 10]

Native field point_cb_value.

§point_cb_scaling: [u8; 10]

Native field point_cb_scaling.

§num_cr_points: u8

Native field num_cr_points.

§point_cr_value: [u8; 10]

Native field point_cr_value.

§point_cr_scaling: [u8; 10]

Native field point_cr_scaling.

§ar_coeffs_y_plus_128: [i8; 24]

Native field ar_coeffs_y_plus_128.

§ar_coeffs_cb_plus_128: [i8; 25]

Native field ar_coeffs_cb_plus_128.

§ar_coeffs_cr_plus_128: [i8; 25]

Native field ar_coeffs_cr_plus_128.

§cb_mult: u8

Native field cb_mult.

§cb_luma_mult: u8

Native field cb_luma_mult.

§cb_offset: u16

Native field cb_offset.

§cr_mult: u8

Native field cr_mult.

§cr_luma_mult: u8

Native field cr_luma_mult.

§cr_offset: u16

Native field cr_offset.

Implementations§

Source§

impl StdVideoAV1FilmGrain

Source

pub fn new() -> Self

Construct the record with its default native state.

Source

pub fn set_flags(self, value: StdVideoAV1FilmGrainFlags) -> Self

Set native field flags without native effects.

Source

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

Set native field grain_scaling_minus_8 without native effects.

Source

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

Set native field ar_coeff_lag without native effects.

Source

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

Set native field ar_coeff_shift_minus_6 without native effects.

Source

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

Set native field grain_scale_shift without native effects.

Source

pub fn set_grain_seed(self, value: u16) -> Self

Set native field grain_seed without native effects.

Source

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

Set native field film_grain_params_ref_idx without native effects.

Source

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

Set native field num_y_points without native effects.

Source

pub fn set_point_y_value(self, value: [u8; 14]) -> Self

Set native field point_y_value without native effects.

Source

pub fn set_point_y_scaling(self, value: [u8; 14]) -> Self

Set native field point_y_scaling without native effects.

Source

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

Set native field num_cb_points without native effects.

Source

pub fn set_point_cb_value(self, value: [u8; 10]) -> Self

Set native field point_cb_value without native effects.

Source

pub fn set_point_cb_scaling(self, value: [u8; 10]) -> Self

Set native field point_cb_scaling without native effects.

Source

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

Set native field num_cr_points without native effects.

Source

pub fn set_point_cr_value(self, value: [u8; 10]) -> Self

Set native field point_cr_value without native effects.

Source

pub fn set_point_cr_scaling(self, value: [u8; 10]) -> Self

Set native field point_cr_scaling without native effects.

Source

pub fn set_ar_coeffs_y_plus_128(self, value: [i8; 24]) -> Self

Set native field ar_coeffs_y_plus_128 without native effects.

Source

pub fn set_ar_coeffs_cb_plus_128(self, value: [i8; 25]) -> Self

Set native field ar_coeffs_cb_plus_128 without native effects.

Source

pub fn set_ar_coeffs_cr_plus_128(self, value: [i8; 25]) -> Self

Set native field ar_coeffs_cr_plus_128 without native effects.

Source

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

Set native field cb_mult without native effects.

Source

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

Set native field cb_luma_mult without native effects.

Source

pub fn set_cb_offset(self, value: u16) -> Self

Set native field cb_offset without native effects.

Source

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

Set native field cr_mult without native effects.

Source

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

Set native field cr_luma_mult without native effects.

Source

pub fn set_cr_offset(self, value: u16) -> Self

Set native field cr_offset without native effects.

Trait Implementations§

Source§

impl Clone for StdVideoAV1FilmGrain

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for StdVideoAV1FilmGrain

Source§

impl Default for StdVideoAV1FilmGrain

Source§

fn default() -> Self

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

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.