#[repr(u32)]
pub enum HardwareBufferFormat {
Show 14 variants
R8G8B8A8_UNORM,
R8G8B8X8_UNORM,
R8G8B8_UNORM,
R5G6B5_UNORM,
R16G16B16A16_FLOAT,
R10G10B10A2_UNORM,
BLOB,
D16_UNORM,
D24_UNORM,
D24_UNORM_S8_UINT,
D32_FLOAT,
D32_FLOAT_S8_UINT,
S8_UINT,
Y8Cb8Cr8_420,
}
Expand description
Buffer pixel formats.
Variants
R8G8B8A8_UNORM
Matches deprecated ffi::ANativeWindow_LegacyFormat::WINDOW_FORMAT_RGBA_8888
.
R8G8B8X8_UNORM
Matches deprecated ffi::ANativeWindow_LegacyFormat::WINDOW_FORMAT_RGBX_8888
.
R8G8B8_UNORM
Available on crate feature
api-level-26
only.R5G6B5_UNORM
Matches deprecated ffi::ANativeWindow_LegacyFormat::WINDOW_FORMAT_RGB_565
.
R16G16B16A16_FLOAT
R10G10B10A2_UNORM
Available on crate feature
api-level-26
only.BLOB
Available on crate feature
api-level-26
only.D16_UNORM
Available on crate feature
api-level-26
only.D24_UNORM
Available on crate feature
api-level-26
only.D24_UNORM_S8_UINT
Available on crate feature
api-level-26
only.D32_FLOAT
Available on crate feature
api-level-26
only.D32_FLOAT_S8_UINT
Available on crate feature
api-level-26
only.S8_UINT
Available on crate feature
api-level-26
only.Y8Cb8Cr8_420
Available on crate feature
api-level-26
only.Trait Implementations
sourceimpl Clone for HardwareBufferFormat
impl Clone for HardwareBufferFormat
sourcefn clone(&self) -> HardwareBufferFormat
fn clone(&self) -> HardwareBufferFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HardwareBufferFormat
impl Debug for HardwareBufferFormat
sourceimpl From<HardwareBufferFormat> for u32
impl From<HardwareBufferFormat> for u32
sourcefn from(enum_value: HardwareBufferFormat) -> Self
fn from(enum_value: HardwareBufferFormat) -> Self
Converts to this type from the input type.
sourceimpl TryFrom<u32> for HardwareBufferFormat
impl TryFrom<u32> for HardwareBufferFormat
type Error = TryFromPrimitiveError<HardwareBufferFormat>
type Error = TryFromPrimitiveError<HardwareBufferFormat>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for HardwareBufferFormat
impl TryFromPrimitive for HardwareBufferFormat
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for HardwareBufferFormat
impl Eq for HardwareBufferFormat
impl StructuralEq for HardwareBufferFormat
impl StructuralPartialEq for HardwareBufferFormat
Auto Trait Implementations
impl RefUnwindSafe for HardwareBufferFormat
impl Send for HardwareBufferFormat
impl Sync for HardwareBufferFormat
impl Unpin for HardwareBufferFormat
impl UnwindSafe for HardwareBufferFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more