#[repr(C)]#[repr(align(4))]pub struct _NV_ENC_FILM_GRAIN_PARAMS_AV1 {Show 18 fields
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
pub pointYValue: [u8; 14],
pub pointYScaling: [u8; 14],
pub pointCbValue: [u8; 10],
pub pointCbScaling: [u8; 10],
pub pointCrValue: [u8; 10],
pub pointCrScaling: [u8; 10],
pub arCoeffsYPlus128: [u8; 24],
pub arCoeffsCbPlus128: [u8; 25],
pub arCoeffsCrPlus128: [u8; 25],
pub reserved2: [u8; 2],
pub cbMult: u8,
pub cbLumaMult: u8,
pub cbOffset: u16,
pub crMult: u8,
pub crLumaMult: u8,
pub crOffset: u16,
}
Fields§
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>
§pointYValue: [u8; 14]
§pointYScaling: [u8; 14]
§pointCbValue: [u8; 10]
§pointCbScaling: [u8; 10]
§pointCrValue: [u8; 10]
§pointCrScaling: [u8; 10]
§arCoeffsYPlus128: [u8; 24]
§arCoeffsCbPlus128: [u8; 25]
§arCoeffsCrPlus128: [u8; 25]
§reserved2: [u8; 2]
§cbMult: u8
§cbLumaMult: u8
§cbOffset: u16
§crMult: u8
§crLumaMult: u8
§crOffset: u16
Implementations§
source§impl _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl _NV_ENC_FILM_GRAIN_PARAMS_AV1
pub fn applyGrain(&self) -> u32
pub fn set_applyGrain(&mut self, val: u32)
pub fn chromaScalingFromLuma(&self) -> u32
pub fn set_chromaScalingFromLuma(&mut self, val: u32)
pub fn overlapFlag(&self) -> u32
pub fn set_overlapFlag(&mut self, val: u32)
pub fn clipToRestrictedRange(&self) -> u32
pub fn set_clipToRestrictedRange(&mut self, val: u32)
pub fn grainScalingMinus8(&self) -> u32
pub fn set_grainScalingMinus8(&mut self, val: u32)
pub fn arCoeffLag(&self) -> u32
pub fn set_arCoeffLag(&mut self, val: u32)
pub fn numYPoints(&self) -> u32
pub fn set_numYPoints(&mut self, val: u32)
pub fn numCbPoints(&self) -> u32
pub fn set_numCbPoints(&mut self, val: u32)
pub fn numCrPoints(&self) -> u32
pub fn set_numCrPoints(&mut self, val: u32)
pub fn arCoeffShiftMinus6(&self) -> u32
pub fn set_arCoeffShiftMinus6(&mut self, val: u32)
pub fn grainScaleShift(&self) -> u32
pub fn set_grainScaleShift(&mut self, val: u32)
pub fn reserved1(&self) -> u32
pub fn set_reserved1(&mut self, val: u32)
pub fn new_bitfield_1( applyGrain: u32, chromaScalingFromLuma: u32, overlapFlag: u32, clipToRestrictedRange: u32, grainScalingMinus8: u32, arCoeffLag: u32, numYPoints: u32, numCbPoints: u32, numCrPoints: u32, arCoeffShiftMinus6: u32, grainScaleShift: u32, reserved1: u32 ) -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations§
source§impl Clone for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl Clone for _NV_ENC_FILM_GRAIN_PARAMS_AV1
source§fn clone(&self) -> _NV_ENC_FILM_GRAIN_PARAMS_AV1
fn clone(&self) -> _NV_ENC_FILM_GRAIN_PARAMS_AV1
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl Default for _NV_ENC_FILM_GRAIN_PARAMS_AV1
source§fn default() -> _NV_ENC_FILM_GRAIN_PARAMS_AV1
fn default() -> _NV_ENC_FILM_GRAIN_PARAMS_AV1
Returns the “default value” for a type. Read more
source§impl Hash for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl Hash for _NV_ENC_FILM_GRAIN_PARAMS_AV1
source§impl Ord for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl Ord for _NV_ENC_FILM_GRAIN_PARAMS_AV1
source§fn cmp(&self, other: &_NV_ENC_FILM_GRAIN_PARAMS_AV1) -> Ordering
fn cmp(&self, other: &_NV_ENC_FILM_GRAIN_PARAMS_AV1) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<_NV_ENC_FILM_GRAIN_PARAMS_AV1> for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl PartialEq<_NV_ENC_FILM_GRAIN_PARAMS_AV1> for _NV_ENC_FILM_GRAIN_PARAMS_AV1
source§fn eq(&self, other: &_NV_ENC_FILM_GRAIN_PARAMS_AV1) -> bool
fn eq(&self, other: &_NV_ENC_FILM_GRAIN_PARAMS_AV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<_NV_ENC_FILM_GRAIN_PARAMS_AV1> for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl PartialOrd<_NV_ENC_FILM_GRAIN_PARAMS_AV1> for _NV_ENC_FILM_GRAIN_PARAMS_AV1
source§fn partial_cmp(&self, other: &_NV_ENC_FILM_GRAIN_PARAMS_AV1) -> Option<Ordering>
fn partial_cmp(&self, other: &_NV_ENC_FILM_GRAIN_PARAMS_AV1) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl Eq for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl StructuralEq for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl StructuralPartialEq for _NV_ENC_FILM_GRAIN_PARAMS_AV1
Auto Trait Implementations§
impl RefUnwindSafe for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl Send for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl Sync for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl Unpin for _NV_ENC_FILM_GRAIN_PARAMS_AV1
impl UnwindSafe for _NV_ENC_FILM_GRAIN_PARAMS_AV1
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more