pub struct D3d11VideoLayerHandle { /* private fields */ }d3d11 only.Expand description
Thread-safe runtime placement control for one super::D3d11VideoCompositor
input — the GPU sibling of crate::elements::VideoLayerHandle.
Fields are pub(super) rather than fully private: D3d11VideoCompositorHandle::register_input
(defined in the parent module) constructs and reads this struct
directly rather than through a constructor function — a private
struct-literal shortcut that’s fine to keep since both live in the same
tightly-coupled d3d11_video_compositor module tree.
Implementations§
Source§impl D3d11VideoLayerHandle
impl D3d11VideoLayerHandle
pub fn id(&self) -> VideoInputId
pub fn name(&self) -> Arc<str> ⓘ
pub fn layer(&self) -> Option<VideoLayer>
pub fn set_layer( &self, layer: VideoLayer, ) -> Result<(), D3d11VideoCompositorError>
pub fn set_rect(&self, rect: VideoRect) -> Result<(), D3d11VideoCompositorError>
pub fn set_opacity(&self, opacity: f32) -> Result<(), D3d11VideoCompositorError>
pub fn set_z_index(&self, z_index: i32) -> Result<(), D3d11VideoCompositorError>
pub fn set_visible( &self, visible: bool, ) -> Result<(), D3d11VideoCompositorError>
pub fn set_fit(&self, fit: VideoFit) -> Result<(), D3d11VideoCompositorError>
Sourcepub fn set_frame(
&self,
frame: Arc<UnboundObjectPoolRef<Video>>,
) -> Result<(), D3d11VideoCompositorError>
pub fn set_frame( &self, frame: Arc<UnboundObjectPoolRef<Video>>, ) -> Result<(), D3d11VideoCompositorError>
Pushes a new Pixel::D3D11 frame for this input to draw next
composite, without going through a Sink at all — for handles
obtained via super::D3d11VideoCompositorHandle::add_layer, which
receive frames by direct call instead of Pipeline dataflow. Does
exactly what D3d11VideoCompositorInputSink::consume’s
MediaBuffer::Video arm does (format check + atomic store).
Trait Implementations§
Source§impl Clone for D3d11VideoLayerHandle
impl Clone for D3d11VideoLayerHandle
Source§fn clone(&self) -> D3d11VideoLayerHandle
fn clone(&self) -> D3d11VideoLayerHandle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more