Enum ndk::media::image_reader::ImageFormat
source · [−]#[repr(u32)]
pub enum ImageFormat {
Show 17 variants
RGBA_8888,
RGBX_8888,
RGB_888,
RGB_565,
RGBA_FP16,
YUV_420_888,
JPEG,
RAW16,
RAW_PRIVATE,
RAW10,
RAW12,
DEPTH16,
DEPTH_POINT_CLOUD,
PRIVATE,
Y8,
HEIC,
DEPTH_JPEG,
}
Available on crate features
media
and api-level-24
only.Variants
RGBA_8888
RGBX_8888
RGB_888
RGB_565
RGBA_FP16
YUV_420_888
JPEG
RAW16
RAW_PRIVATE
RAW10
RAW12
DEPTH16
DEPTH_POINT_CLOUD
PRIVATE
Y8
HEIC
DEPTH_JPEG
Trait Implementations
sourceimpl Clone for ImageFormat
impl Clone for ImageFormat
sourcefn clone(&self) -> ImageFormat
fn clone(&self) -> ImageFormat
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 ImageFormat
impl Debug for ImageFormat
sourceimpl From<ImageFormat> for u32
impl From<ImageFormat> for u32
sourcefn from(enum_value: ImageFormat) -> Self
fn from(enum_value: ImageFormat) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ImageFormat> for ImageFormat
impl PartialEq<ImageFormat> for ImageFormat
sourceimpl TryFrom<u32> for ImageFormat
impl TryFrom<u32> for ImageFormat
type Error = TryFromPrimitiveError<ImageFormat>
type Error = TryFromPrimitiveError<ImageFormat>
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 ImageFormat
impl TryFromPrimitive for ImageFormat
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ImageFormat
impl Eq for ImageFormat
impl StructuralEq for ImageFormat
impl StructuralPartialEq for ImageFormat
Auto Trait Implementations
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnwindSafe for ImageFormat
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