#[repr(C)]
pub struct Dav1dSettings {
Show 13 fields pub n_threads: c_int, pub max_frame_delay: c_int, pub apply_grain: c_int, pub operating_point: c_int, pub all_layers: c_int, pub frame_size_limit: c_uint, pub allocator: Dav1dPicAllocator, pub logger: Dav1dLogger, pub strict_std_compliance: c_int, pub output_invisible_frames: c_int, pub inloop_filters: Type, pub decode_frame_type: Dav1dDecodeFrameType, pub reserved: [u8; 16],
}

Fields§

§n_threads: c_int

< number of threads (0 = number of logical cores in host system, default 0)

§max_frame_delay: c_int

< Set to 1 for low-latency decoding (0 = ceil(sqrt(n_threads)), default 0)

§apply_grain: c_int

< whether to apply film grain on output frames (default 1)

§operating_point: c_int

< select an operating point for scalable AV1 bitstreams (0 - 31, default 0)

§all_layers: c_int

< output all spatial layers of a scalable AV1 biststream (default 1)

§frame_size_limit: c_uint

< maximum frame size, in pixels (0 = unlimited, default 0)

§allocator: Dav1dPicAllocator

< Picture allocator callback.

§logger: Dav1dLogger

< Logger callback.

§strict_std_compliance: c_int

< whether to abort decoding on standard compliance violations < that don’t affect actual bitstream decoding (e.g. inconsistent < or invalid metadata, default 0)

§output_invisible_frames: c_int

< output invisibly coded frames (in coding order) in addition < to all visible frames. Because of show-existing-frame, this < means some frames may appear twice (once when coded, < once when shown, default 0)

§inloop_filters: Type

< postfilters to enable during decoding (default < DAV1D_INLOOPFILTER_ALL)

§decode_frame_type: Dav1dDecodeFrameType

< frame types to decode (default < DAV1D_DECODEFRAMETYPE_ALL)

§reserved: [u8; 16]

< reserved for future use

Trait Implementations§

source§

impl Clone for Dav1dSettings

source§

fn clone(&self) -> Dav1dSettings

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Dav1dSettings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for Dav1dSettings

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

§

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

§

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

§

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.