pub enum DerivativeTier {
Thumbnail,
Preview,
}Expand description
A derivative tier from the tier table.
Variants§
Thumbnail
Grid display: long edge capped at 256 px, q=50.
Preview
Lightbox / single-asset view: source resolution, q=70. Generated only under
media-linked-codecs — its master format is JXL, which only libjxl writes, and a
source-resolution pure-Rust AV1 encode of every original is too costly for the mobile
builds that lack it (see the module docs).
Implementations§
Source§impl DerivativeTier
impl DerivativeTier
Sourcepub const GENERATED: &'static [Self]
pub const GENERATED: &'static [Self]
The tiers this build actually generates: both with the JXL master codec linked
(media-linked-codecs), the thumbnail alone without it.
Sourcepub const fn role(self) -> DerivativeRole
pub const fn role(self) -> DerivativeRole
The provenance role this tier records.
Sourcepub const fn role_name(self) -> &'static str
pub const fn role_name(self) -> &'static str
The role’s on-disk name — mirrors derivative_role_name in the upload bundle reader,
which composes a derivative’s exact path from this and the manifest’s format, so two
formats of one role stay distinguishable.
Sourcepub const fn max_long_edge(self) -> Option<u32>
pub const fn max_long_edge(self) -> Option<u32>
Long-edge cap in pixels, or None to keep the source resolution. The 1080p cap in the
tier table governs the video preview transcode, not the still preview.
Trait Implementations§
Source§impl Clone for DerivativeTier
impl Clone for DerivativeTier
Source§fn clone(&self) -> DerivativeTier
fn clone(&self) -> DerivativeTier
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DerivativeTier
Source§impl Debug for DerivativeTier
impl Debug for DerivativeTier
Source§impl Display for DerivativeTier
impl Display for DerivativeTier
impl Eq for DerivativeTier
Source§impl Hash for DerivativeTier
impl Hash for DerivativeTier
Source§impl PartialEq for DerivativeTier
impl PartialEq for DerivativeTier
Source§fn eq(&self, other: &DerivativeTier) -> bool
fn eq(&self, other: &DerivativeTier) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DerivativeTier
Auto Trait Implementations§
impl Freeze for DerivativeTier
impl RefUnwindSafe for DerivativeTier
impl Send for DerivativeTier
impl Sync for DerivativeTier
impl Unpin for DerivativeTier
impl UnsafeUnpin for DerivativeTier
impl UnwindSafe for DerivativeTier
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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