#[repr(C)]pub struct OhosImageSource {
pub uri: *mut c_char,
pub uriSize: usize,
pub fd: i32,
pub buffer: *mut u8,
pub bufferSize: usize,
}Expand description
@brief Defines the input resource of the image source. It is obtained by calling {@link OH_ImageSource_Create}. Only one type of resource is accepted at a time.
@syscap SystemCapability.Multimedia.Image @since 10 @version 4.0 @deprecated since 11
Fields§
§uri: *mut c_charPointer to the image source URI. Only a file URI or Base64 URI is accepted.
uriSize: usizeLength of the image source URI.
fd: i32Descriptor of the image source.
buffer: *mut u8Pointer to the image source buffer. Only a formatted packet buffer or Base64 buffer is accepted.
bufferSize: usizeSize of the image source buffer.
Trait Implementations§
Source§impl Clone for OhosImageSource
impl Clone for OhosImageSource
Source§fn clone(&self) -> OhosImageSource
fn clone(&self) -> OhosImageSource
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 OhosImageSource
Auto Trait Implementations§
impl !Send for OhosImageSource
impl !Sync for OhosImageSource
impl Freeze for OhosImageSource
impl RefUnwindSafe for OhosImageSource
impl Unpin for OhosImageSource
impl UnsafeUnpin for OhosImageSource
impl UnwindSafe for OhosImageSource
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