Skip to main content

AV1FilmGrain

Struct AV1FilmGrain 

Source
pub struct AV1FilmGrain(/* private fields */);
Expand description

Wrapper over the film_grain_info bindgen field in VADecPictureParameterBufferAV1.

Implementations§

Source§

impl AV1FilmGrain

Source

pub fn new( film_grain_info_fields: &AV1FilmGrainFields, grain_seed: u16, num_y_points: u8, point_y_value: [u8; 14], point_y_scaling: [u8; 14], num_cb_points: u8, point_cb_value: [u8; 10], point_cb_scaling: [u8; 10], num_cr_points: u8, point_cr_value: [u8; 10], point_cr_scaling: [u8; 10], ar_coeffs_y: [i8; 24], ar_coeffs_cb: [i8; 25], ar_coeffs_cr: [i8; 25], cb_mult: u8, cb_luma_mult: u8, cb_offset: u16, cr_mult: u8, cr_luma_mult: u8, cr_offset: u16, ) -> Self

Creates the wrapper

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.