#[repr(C)]pub struct OhosImageSourceOps {
pub density: i32,
pub pixelFormat: i32,
pub size: OhosImageSize,
}Expand description
@brief Defines image source options infomation {@link OH_ImageSource_Create} and {@link OH_ImageSource_CreateIncremental}.
@syscap SystemCapability.Multimedia.Image @since 10 @version 4.0
Fields§
§density: i32Pixel density of the image source.
pixelFormat: i32Image source pixel format, used to describe YUV buffer usually.
size: OhosImageSizeImage source pixel size of width and height.
Trait Implementations§
Source§impl Clone for OhosImageSourceOps
impl Clone for OhosImageSourceOps
Source§fn clone(&self) -> OhosImageSourceOps
fn clone(&self) -> OhosImageSourceOps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OhosImageSourceOps
Auto Trait Implementations§
impl Freeze for OhosImageSourceOps
impl RefUnwindSafe for OhosImageSourceOps
impl Send for OhosImageSourceOps
impl Sync for OhosImageSourceOps
impl Unpin for OhosImageSourceOps
impl UnsafeUnpin for OhosImageSourceOps
impl UnwindSafe for OhosImageSourceOps
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