OH_NativeBuffer_Format

Struct OH_NativeBuffer_Format 

Source
#[repr(transparent)]
pub struct OH_NativeBuffer_Format(pub c_uint);
Expand description

Indicates the format of a native buffer.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeBuffer

Available since API-level: 10

Version: 1.0

Tuple Fields§

§0: c_uint

Implementations§

Source§

impl OH_NativeBuffer_Format

Source

pub const NATIVEBUFFER_PIXEL_FMT_CLUT8: OH_NativeBuffer_Format

Available on crate feature api-12 only.

CLUT8 format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_CLUT1: OH_NativeBuffer_Format

Available on crate feature api-12 only.

CLUT1 format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_CLUT4: OH_NativeBuffer_Format

Available on crate feature api-12 only.

CLUT4 format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGB_565: OH_NativeBuffer_Format

Available on crate feature api-12 only.

CLUT4 format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGBA_5658: OH_NativeBuffer_Format

< RGB565 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGBX_4444: OH_NativeBuffer_Format

< RGBA5658 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGBA_4444: OH_NativeBuffer_Format

< RGBX4444 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGB_444: OH_NativeBuffer_Format

< RGBA4444 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGBX_5551: OH_NativeBuffer_Format

< RGB444 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGBA_5551: OH_NativeBuffer_Format

< RGBX5551 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGB_555: OH_NativeBuffer_Format

< RGBA5551 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGBX_8888: OH_NativeBuffer_Format

< RGB555 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGBA_8888: OH_NativeBuffer_Format

< RGBX8888 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGB_888: OH_NativeBuffer_Format

< RGBA8888 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_BGR_565: OH_NativeBuffer_Format

< RGB888 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_BGRX_4444: OH_NativeBuffer_Format

< BGR565 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_BGRA_4444: OH_NativeBuffer_Format

< BGRX4444 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_BGRX_5551: OH_NativeBuffer_Format

< BGRA4444 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_BGRA_5551: OH_NativeBuffer_Format

< BGRX5551 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_BGRX_8888: OH_NativeBuffer_Format

< BGRA5551 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_BGRA_8888: OH_NativeBuffer_Format

< BGRX8888 format */

Source

pub const NATIVEBUFFER_PIXEL_FMT_YUV_422_I: OH_NativeBuffer_Format

Available on crate feature api-12 only.

< BGRA8888 format */ **

  • YUV422 interleaved format
  • @since 12 */
Source

pub const NATIVEBUFFER_PIXEL_FMT_YCBCR_422_SP: OH_NativeBuffer_Format

Available on crate feature api-12 only.

YCBCR422 semi-planar format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_YCRCB_422_SP: OH_NativeBuffer_Format

Available on crate feature api-12 only.

YCRCB422 semi-planar format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_YCBCR_420_SP: OH_NativeBuffer_Format

Available on crate feature api-12 only.

YCBCR420 semi-planar format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_YCRCB_420_SP: OH_NativeBuffer_Format

Available on crate feature api-12 only.

YCRCB420 semi-planar format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_YCBCR_422_P: OH_NativeBuffer_Format

Available on crate feature api-12 only.

YCBCR422 planar format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_YCRCB_422_P: OH_NativeBuffer_Format

Available on crate feature api-12 only.

YCRCB422 planar format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_YCBCR_420_P: OH_NativeBuffer_Format

Available on crate feature api-12 only.

YCBCR420 planar format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_YCRCB_420_P: OH_NativeBuffer_Format

Available on crate feature api-12 only.

YCRCB420 planar format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_YUYV_422_PKG: OH_NativeBuffer_Format

Available on crate feature api-12 only.

YUYV422 packed format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_UYVY_422_PKG: OH_NativeBuffer_Format

Available on crate feature api-12 only.

UYVY422 packed format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_YVYU_422_PKG: OH_NativeBuffer_Format

Available on crate feature api-12 only.

YVYU422 packed format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_VYUY_422_PKG: OH_NativeBuffer_Format

Available on crate feature api-12 only.

VYUY422 packed format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGBA_1010102: OH_NativeBuffer_Format

Available on crate feature api-12 only.

RGBA_1010102 packed format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_YCBCR_P010: OH_NativeBuffer_Format

Available on crate feature api-12 only.

YCBCR420 semi-planar 10bit packed format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_YCRCB_P010: OH_NativeBuffer_Format

Available on crate feature api-12 only.

YCRCB420 semi-planar 10bit packed format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_RAW10: OH_NativeBuffer_Format

Available on crate feature api-12 only.

Raw 10bit packed format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_BLOB: OH_NativeBuffer_Format

Available on crate feature api-15 only.

BLOB format

Available since API-level: 15

Source

pub const NATIVEBUFFER_PIXEL_FMT_RGBA16_FLOAT: OH_NativeBuffer_Format

Available on crate feature api-15 only.

RGBA16 float format

Available since API-level: 15

Source

pub const NATIVEBUFFER_PIXEL_FMT_Y8: OH_NativeBuffer_Format

Available on crate feature api-20 only.

Y8 format

Available since API-level: 20

Source

pub const NATIVEBUFFER_PIXEL_FMT_Y16: OH_NativeBuffer_Format

Available on crate feature api-20 only.

Y16 format

Available since API-level: 20

Source

pub const NATIVEBUFFER_PIXEL_FMT_VENDER_MASK: OH_NativeBuffer_Format

Available on crate feature api-12 only.

vendor mask format

Available since API-level: 12

Source

pub const NATIVEBUFFER_PIXEL_FMT_BUTT: OH_NativeBuffer_Format

Available on crate feature api-12 only.

vendor mask format

Available since API-level: 12

Trait Implementations§

Source§

impl Clone for OH_NativeBuffer_Format

Source§

fn clone(&self) -> OH_NativeBuffer_Format

Returns a duplicate of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for OH_NativeBuffer_Format

Source§

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

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

impl Hash for OH_NativeBuffer_Format

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for OH_NativeBuffer_Format

Source§

fn eq(&self, other: &OH_NativeBuffer_Format) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for OH_NativeBuffer_Format

Source§

impl Eq for OH_NativeBuffer_Format

Source§

impl StructuralPartialEq for OH_NativeBuffer_Format

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

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
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.