lv_image_decoder_dsc_t

Struct lv_image_decoder_dsc_t 

Source
#[repr(C)]
pub struct lv_image_decoder_dsc_t {
Show 14 fields pub decoder: *mut lv_image_decoder_t, pub args: lv_image_decoder_args_t, pub src: *const c_void, pub src_type: lv_image_src_t, pub file: lv_fs_file_t, pub header: lv_image_header_t, pub decoded: *const lv_draw_buf_t, pub palette: *const lv_color32_t, pub palette_size: u32, pub time_to_open: u32, pub error_msg: *const c_char, pub cache: *mut lv_cache_t, pub cache_entry: *mut lv_cache_entry_t, pub user_data: *mut c_void,
}
Expand description

Describe an image decoding session. Stores data about the decoding

Fields§

§decoder: *mut lv_image_decoder_t

The decoder which was able to open the image source

§args: lv_image_decoder_args_t

A copy of parameters of how this image is decoded

§src: *const c_void

The image source. A file path like “S:my_img.png” or pointer to an lv_image_dsc_t variable

§src_type: lv_image_src_t

Type of the source: file or variable. Can be set in open function if required

§file: lv_fs_file_t§header: lv_image_header_t

Info about the opened image: color format, size, etc. MUST be set in open function

§decoded: *const lv_draw_buf_t

Pointer to a draw buffer where the image’s data (pixels) are stored in a decoded, plain format. MUST be set in open or get_area_cbfunction

§palette: *const lv_color32_t§palette_size: u32§time_to_open: u32

How much time did it take to open the image. [ms] If not set lv_image_cache will measure and set the time to open

§error_msg: *const c_char

A text to display instead of the image when the image can’t be opened. Can be set in open function or set NULL.

§cache: *mut lv_cache_t§cache_entry: *mut lv_cache_entry_t

Point to cache entry information

§user_data: *mut c_void

Store any custom data here is required

Trait Implementations§

Source§

impl Clone for lv_image_decoder_dsc_t

Source§

fn clone(&self) -> lv_image_decoder_dsc_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for lv_image_decoder_dsc_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for lv_image_decoder_dsc_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.