pub type SharedPresentableImageOsHandle = Image<RemoteFd>;
Expand description

DMA-BUF-backed image from eglExportDMABUFImageMESA.

Aliased Type§

struct SharedPresentableImageOsHandle {
    pub drm_format: DrmFormat,
    pub planes: ImagePlane<RemoteFd>,
}

Fields§

§drm_format: DrmFormat§planes: ImagePlane<RemoteFd>

Implementations§

source§

impl<FD> Image<FD>

source

pub fn planes_map<FD2>( self, f: impl Fn(ImagePlane<FD>) -> ImagePlane<FD2> ) -> Image<FD2>

source

pub fn planes_ref_map<FD2>( &self, f: impl Fn(&ImagePlane<FD>) -> ImagePlane<FD2> ) -> Image<FD2>

Trait Implementations§

source§

impl<FD> Clone for Image<FD>where ImagePlane<FD>: Clone,

source§

fn clone(&self) -> Image<FD>

Returns a copy 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<FD> DeBin for Image<FD>where FD: DeBin,

source§

fn de_bin(o: &mut usize, d: &[u8]) -> Result<Image<FD>, DeBinErr>

§

fn deserialize_bin(d: &[u8]) -> Result<Self, DeBinErr>

source§

impl<FD> DeJson for Image<FD>where FD: DeJson,

source§

fn de_json( s: &mut DeJsonState, i: &mut Chars<'_> ) -> Result<Image<FD>, DeJsonErr>

§

fn deserialize_json(input: &str) -> Result<Self, DeJsonErr>

source§

impl<FD> Debug for Image<FD>where FD: Debug,

source§

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

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

impl<FD> PartialEq<Image<FD>> for Image<FD>where FD: PartialEq<FD>,

source§

fn eq(&self, other: &Image<FD>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FD> SerBin for Image<FD>where FD: SerBin,

source§

fn ser_bin(&self, s: &mut Vec<u8, Global>)

§

fn serialize_bin(&self) -> Vec<u8, Global>

source§

impl<FD> SerJson for Image<FD>where FD: SerJson,

source§

fn ser_json(&self, d: usize, s: &mut SerJsonState)

§

fn serialize_json(&self) -> String

source§

impl<FD> Copy for Image<FD>where ImagePlane<FD>: Copy,

source§

impl<FD> StructuralPartialEq for Image<FD>