[][src]Enum ffav_sys::AVRounding

#[repr(u32)]pub enum AVRounding {
    AV_ROUND_ZERO,
    AV_ROUND_INF,
    AV_ROUND_DOWN,
    AV_ROUND_UP,
    AV_ROUND_NEAR_INF,
    AV_ROUND_PASS_MINMAX,
}

Variants

AV_ROUND_ZERO
AV_ROUND_INF
AV_ROUND_DOWN
AV_ROUND_UP
AV_ROUND_NEAR_INF
AV_ROUND_PASS_MINMAX

Implementations

impl AVRounding[src]

pub fn new() -> Self[src]

Create an new AVRounding with Round toward zero.

pub fn zero(self) -> Self[src]

Round toward zero.

pub fn inf(self) -> Self[src]

Round away from zero.

pub fn down(self) -> Self[src]

Round toward -infinity.

pub fn up(self) -> Self[src]

Round toward +infinity.

pub fn near_inf(self) -> Self[src]

Round to nearest and halfway cases away from zero.

pub fn pass_min_max(self) -> Self[src]

Flag telling rescaling functions to pass INT64_MIN/MAX through unchanged, avoiding special cases for AV_NOPTS_VALUE.

Unlike other values of the enumeration AVRounding, this value is a bitmask that must be used in conjunction with another value of the enumeration through a bitwise OR, in order to set behavior for normal cases.

Trait Implementations

impl Clone for AVRounding[src]

impl Copy for AVRounding[src]

impl Debug for AVRounding[src]

impl Default for AVRounding[src]

impl Eq for AVRounding[src]

impl From<AVRounding> for u32[src]

impl Hash for AVRounding[src]

impl PartialEq<AVRounding> for AVRounding[src]

impl StructuralEq for AVRounding[src]

impl StructuralPartialEq for AVRounding[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.