Struct OutputResources

Source
struct OutputResources {
    res_id_to_frame_buf_id: BTreeMap<u32, i32>,
    frame_buf_id_to_res_id: BTreeMap<i32, u32>,
    queued_res_ids: BTreeSet<u32>,
    eos_resource_id: Option<u32>,
    output_params_set: bool,
    res_id_to_res_handle: BTreeMap<u32, GuestResource>,
    res_id_to_descriptor: BTreeMap<u32, SafeDescriptor>,
}

Fields§

§res_id_to_frame_buf_id: BTreeMap<u32, i32>§frame_buf_id_to_res_id: BTreeMap<i32, u32>§queued_res_ids: BTreeSet<u32>§eos_resource_id: Option<u32>§output_params_set: bool§res_id_to_res_handle: BTreeMap<u32, GuestResource>§res_id_to_descriptor: BTreeMap<u32, SafeDescriptor>

Implementations§

Source§

impl OutputResources

Source

fn queue_resource( &mut self, resource_id: u32, ) -> Result<QueueOutputResourceResult, VideoError>

Source

fn dequeue_frame_buffer( &mut self, buffer_id: i32, stream_id: u32, ) -> Option<u32>

Source

fn dequeue_eos_resource_id(&mut self) -> Option<u32>

Source

fn output_params_set(&mut self) -> bool

Trait Implementations§

Source§

impl Default for OutputResources

Source§

fn default() -> OutputResources

Returns the “default value” for a type. Read more

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> 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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V