pub struct MetalLosslessEncodeConfig {
pub gpu_encode_inflight_tiles: Option<usize>,
pub gpu_encode_memory_budget_bytes: Option<usize>,
}Expand description
Tuning knobs for resident Metal lossless J2K/HTJ2K tile batch encode.
Fields§
§gpu_encode_inflight_tiles: Option<usize>Requested maximum number of tiles submitted concurrently.
None uses the crate default and still clamps by the memory budget.
gpu_encode_memory_budget_bytes: Option<usize>Resident encode memory budget in bytes.
None uses min(10 GiB, hw_memsize * 0.40) when host memory can be
discovered.
Trait Implementations§
Source§impl Clone for MetalLosslessEncodeConfig
impl Clone for MetalLosslessEncodeConfig
Source§fn clone(&self) -> MetalLosslessEncodeConfig
fn clone(&self) -> MetalLosslessEncodeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MetalLosslessEncodeConfig
Source§impl Debug for MetalLosslessEncodeConfig
impl Debug for MetalLosslessEncodeConfig
Source§impl Default for MetalLosslessEncodeConfig
impl Default for MetalLosslessEncodeConfig
Source§fn default() -> MetalLosslessEncodeConfig
fn default() -> MetalLosslessEncodeConfig
Returns the “default value” for a type. Read more
impl Eq for MetalLosslessEncodeConfig
Source§impl PartialEq for MetalLosslessEncodeConfig
impl PartialEq for MetalLosslessEncodeConfig
Source§fn eq(&self, other: &MetalLosslessEncodeConfig) -> bool
fn eq(&self, other: &MetalLosslessEncodeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetalLosslessEncodeConfig
Auto Trait Implementations§
impl Freeze for MetalLosslessEncodeConfig
impl RefUnwindSafe for MetalLosslessEncodeConfig
impl Send for MetalLosslessEncodeConfig
impl Sync for MetalLosslessEncodeConfig
impl Unpin for MetalLosslessEncodeConfig
impl UnsafeUnpin for MetalLosslessEncodeConfig
impl UnwindSafe for MetalLosslessEncodeConfig
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