pub struct SourcePresentation {
pub output_size: RenderSize,
pub visible_rect: Rect,
pub orientation: Orientation,
pub sample_aspect_ratio: (u32, u32),
pub chroma_siting: ChromaLocation,
}Expand description
GPU presentation transform applied while converting a decoded source.
Fields§
§output_size: RenderSizeDestination canvas. Pixels outside the contained source are transparent.
visible_rect: RectVisible crop inside the coded source.
orientation: OrientationHow the source is shown upright: mirrored, then rotated.
sample_aspect_ratio: (u32, u32)Horizontal pixel aspect-ratio numerator and denominator.
chroma_siting: ChromaLocationChroma sample position. An unspecified location is sampled as centered.
Implementations§
Source§impl SourcePresentation
impl SourcePresentation
Sourcepub const fn identity(size: RenderSize) -> Self
pub const fn identity(size: RenderSize) -> Self
Creates an unrotated, square-pixel full-frame presentation.
Trait Implementations§
Source§impl Clone for SourcePresentation
impl Clone for SourcePresentation
impl Copy for SourcePresentation
Source§impl Debug for SourcePresentation
impl Debug for SourcePresentation
impl Eq for SourcePresentation
Source§impl PartialEq for SourcePresentation
impl PartialEq for SourcePresentation
impl StructuralPartialEq for SourcePresentation
Auto Trait Implementations§
impl Freeze for SourcePresentation
impl RefUnwindSafe for SourcePresentation
impl Send for SourcePresentation
impl Sync for SourcePresentation
impl Unpin for SourcePresentation
impl UnsafeUnpin for SourcePresentation
impl UnwindSafe for SourcePresentation
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
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.