pub struct ExternalOutputBuffer {Show 16 fields
pub fd: Arc<OwnedFd>,
pub fourcc: u32,
pub modifier: u64,
pub stride: u32,
pub offset: u32,
pub width: u32,
pub height: u32,
pub va_surface_id: u32,
pub va_display: usize,
pub planes: Vec<ExternalOutputPlane>,
pub nv12_fd: Option<Arc<OwnedFd>>,
pub nv12_stride: u32,
pub nv12_uv_offset: u32,
pub nv12_modifier: u64,
pub nv12_width: u32,
pub nv12_height: u32,
}Fields§
§fd: Arc<OwnedFd>§fourcc: u32§modifier: u64§stride: u32§offset: u32§width: u32§height: u32§va_surface_id: u32§va_display: usize§planes: Vec<ExternalOutputPlane>All planes for this buffer (main surface + optional metadata planes).
nv12_fd: Option<Arc<OwnedFd>>NV12 output for the compute shader. When present, the compositor imports it into Vulkan (as buffer if linear, as image if tiled), writes NV12 via compute, and returns Nv12DmaBuf.
nv12_stride: u32§nv12_uv_offset: u32§nv12_modifier: u64DRM format modifier for the NV12 surface (0 = linear).
nv12_width: u32NV12 surface dimensions (may be larger than width×height due to encoder alignment, e.g. AV1 64-pixel superblock alignment).
nv12_height: u32Auto Trait Implementations§
impl Freeze for ExternalOutputBuffer
impl RefUnwindSafe for ExternalOutputBuffer
impl Send for ExternalOutputBuffer
impl Sync for ExternalOutputBuffer
impl Unpin for ExternalOutputBuffer
impl UnsafeUnpin for ExternalOutputBuffer
impl UnwindSafe for ExternalOutputBuffer
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.