#[repr(transparent)]pub struct SDL_ChromaLocation(pub c_uint);Expand description
Colorspace chroma sample location.
Available Since: This enum is available since SDL 3.2.0.
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_ChromaLocation
impl SDL_ChromaLocation
Sourcepub const SDL_CHROMA_LOCATION_NONE: SDL_ChromaLocation
pub const SDL_CHROMA_LOCATION_NONE: SDL_ChromaLocation
< RGB, no chroma sampling
Sourcepub const SDL_CHROMA_LOCATION_LEFT: SDL_ChromaLocation
pub const SDL_CHROMA_LOCATION_LEFT: SDL_ChromaLocation
< In MPEG-2, MPEG-4, and AVC, Cb and Cr are taken on midpoint of the left-edge of the 2x2 square. In other words, they have the same horizontal location as the top-left pixel, but is shifted one-half pixel down vertically.
Sourcepub const SDL_CHROMA_LOCATION_CENTER: SDL_ChromaLocation
pub const SDL_CHROMA_LOCATION_CENTER: SDL_ChromaLocation
< In JPEG/JFIF, H.261, and MPEG-1, Cb and Cr are taken at the center of the 2x2 square. In other words, they are offset one-half pixel to the right and one-half pixel down compared to the top-left pixel.
Sourcepub const SDL_CHROMA_LOCATION_TOPLEFT: SDL_ChromaLocation
pub const SDL_CHROMA_LOCATION_TOPLEFT: SDL_ChromaLocation
< In HEVC for BT.2020 and BT.2100 content (in particular on Blu-rays), Cb and Cr are sampled at the same location as the group’s top-left Y pixel (“co-sited”, “co-located”).
Trait Implementations§
Source§impl Clone for SDL_ChromaLocation
impl Clone for SDL_ChromaLocation
Source§fn clone(&self) -> SDL_ChromaLocation
fn clone(&self) -> SDL_ChromaLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_ChromaLocation
impl Debug for SDL_ChromaLocation
Source§impl Hash for SDL_ChromaLocation
impl Hash for SDL_ChromaLocation
Source§impl PartialEq for SDL_ChromaLocation
impl PartialEq for SDL_ChromaLocation
impl Copy for SDL_ChromaLocation
impl Eq for SDL_ChromaLocation
impl StructuralPartialEq for SDL_ChromaLocation
Auto Trait Implementations§
impl Freeze for SDL_ChromaLocation
impl RefUnwindSafe for SDL_ChromaLocation
impl Send for SDL_ChromaLocation
impl Sync for SDL_ChromaLocation
impl Unpin for SDL_ChromaLocation
impl UnsafeUnpin for SDL_ChromaLocation
impl UnwindSafe for SDL_ChromaLocation
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