pub struct DeblockParams {
pub disable_deblock: bool,
pub alpha_offset: i8,
pub beta_offset: i8,
pub qp: u8,
}Expand description
Parameters for deblocking filter.
Fields§
§disable_deblock: boolDeblocking filter disabled.
alpha_offset: i8Alpha offset (slice level).
beta_offset: i8Beta offset (slice level).
qp: u8Quantization parameter.
Implementations§
Source§impl DeblockParams
impl DeblockParams
Sourcepub const fn with_alpha_offset(self, offset: i8) -> Self
pub const fn with_alpha_offset(self, offset: i8) -> Self
Set alpha offset.
Sourcepub const fn with_beta_offset(self, offset: i8) -> Self
pub const fn with_beta_offset(self, offset: i8) -> Self
Set beta offset.
Sourcepub fn effective_qp_alpha(&self) -> u8
pub fn effective_qp_alpha(&self) -> u8
Get effective QP for alpha calculation.
Sourcepub fn effective_qp_beta(&self) -> u8
pub fn effective_qp_beta(&self) -> u8
Get effective QP for beta calculation.
Sourcepub fn create_strength(&self, bs: u8) -> FilterStrength
pub fn create_strength(&self, bs: u8) -> FilterStrength
Create filter strength for an edge.
Trait Implementations§
Source§impl Clone for DeblockParams
impl Clone for DeblockParams
Source§fn clone(&self) -> DeblockParams
fn clone(&self) -> DeblockParams
Returns a duplicate 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 Debug for DeblockParams
impl Debug for DeblockParams
Source§impl Default for DeblockParams
impl Default for DeblockParams
Source§fn default() -> DeblockParams
fn default() -> DeblockParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeblockParams
impl RefUnwindSafe for DeblockParams
impl Send for DeblockParams
impl Sync for DeblockParams
impl Unpin for DeblockParams
impl UnsafeUnpin for DeblockParams
impl UnwindSafe for DeblockParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more