pub struct MediaIn {
pub id: NodeId,
pub kind: NodeProperty,
pub source: NodeProperty,
pub range_start: NodeProperty,
pub range_end: NodeProperty,
pub speed: NodeProperty,
pub loop_mode: NodeProperty,
}Expand description
Binds an external image or video frame as a GPU texture.
Fields§
§id: NodeId§kind: NodePropertyType of external media source.
source: NodePropertyExternal media source identifier.
range_start: NodePropertyFirst source frame to include.
range_end: NodePropertyLast source frame to include.
speed: NodePropertyPlayback speed multiplier.
loop_mode: NodePropertyBehavior when playback leaves the source range.
Trait Implementations§
Source§impl GpuCompileNode for MediaIn
impl GpuCompileNode for MediaIn
fn compile_gpu( &self, ctx: &mut CompileContext<'_>, port: &PortRef, ) -> Result<CompiledOutput, LumenError>
Source§impl GpuFrameBindNode for MediaIn
impl GpuFrameBindNode for MediaIn
fn bind_gpu_frame( &self, ctx: &FrameBindContext<'_>, binding: &FrameBinding, bound: &mut BoundFrame, ) -> Result<(), LumenError>
Source§impl Node for MediaIn
impl Node for MediaIn
fn id(&self) -> NodeId
fn input_port_defs(&self) -> &'static [InputPortDef]
fn output_port_defs(&self) -> &'static [OutputPortDef]
Source§impl PropertyEval for MediaIn
impl PropertyEval for MediaIn
fn get_property(&self, id: &str) -> Result<Option<NodeProperty>, LumenError>
Auto Trait Implementations§
impl Freeze for MediaIn
impl RefUnwindSafe for MediaIn
impl Send for MediaIn
impl Sync for MediaIn
impl Unpin for MediaIn
impl UnsafeUnpin for MediaIn
impl UnwindSafe for MediaIn
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