Struct egui_video::VideoStreamer
source · pub struct VideoStreamer { /* private fields */ }
Expand description
Streams video.
Trait Implementations§
source§impl Streamer for VideoStreamer
impl Streamer for VideoStreamer
§type ProcessedFrame = ColorImage
type ProcessedFrame = ColorImage
The associated type after the frame is processed.
source§fn stream_type(&self) -> Type
fn stream_type(&self) -> Type
The type of data this stream corresponds to.
source§fn is_primary_streamer(&self) -> bool
fn is_primary_streamer(&self) -> bool
The primary streamer will control most of the state/syncing.
source§fn stream_index(&self) -> usize
fn stream_index(&self) -> usize
The stream index.
source§fn cycle_stream(&mut self) -> usize
fn cycle_stream(&mut self) -> usize
Move to the next stream index, if possible, and return the new_stream_index.
source§fn input_context(&mut self) -> &mut Input
fn input_context(&mut self) -> &mut Input
The streamer’s input context.
source§fn elapsed_ms(&self) -> &Shared<i64>
fn elapsed_ms(&self) -> &Shared<i64>
The elapsed time of this streamer, in milliseconds.
source§fn primary_elapsed_ms(&self) -> &Shared<i64>
fn primary_elapsed_ms(&self) -> &Shared<i64>
The elapsed time of the primary streamer, in milliseconds.
source§fn duration_ms(&self) -> i64
fn duration_ms(&self) -> i64
The total duration of the stream, in milliseconds.
source§fn player_state(&self) -> &Shared<PlayerState>
fn player_state(&self) -> &Shared<PlayerState>
The streamer’s state.
source§fn decode_frame(&mut self) -> Result<Self::Frame>
fn decode_frame(&mut self) -> Result<Self::Frame>
Output a frame from the decoder.
source§fn apply_frame(&mut self, frame: Self::ProcessedFrame)
fn apply_frame(&mut self, frame: Self::ProcessedFrame)
Apply a processed frame
source§fn process_frame(&mut self, frame: Self::Frame) -> Result<Self::ProcessedFrame>
fn process_frame(&mut self, frame: Self::Frame) -> Result<Self::ProcessedFrame>
Process a decoded frame.
source§fn drop_frames(&mut self) -> Result<()>
fn drop_frames(&mut self) -> Result<()>
Ignore the remainder of this packet.
source§fn recieve_next_packet(&mut self) -> Result<()>
fn recieve_next_packet(&mut self) -> Result<()>
Recieve the next packet of the stream.
source§fn recieve_next_packet_until_frame(&mut self) -> Result<Self::ProcessedFrame>
fn recieve_next_packet_until_frame(&mut self) -> Result<Self::ProcessedFrame>
Keep recieving packets until a frame can be decoded.
source§fn recieve_next_frame(&mut self) -> Result<Self::ProcessedFrame>
fn recieve_next_frame(&mut self) -> Result<Self::ProcessedFrame>
Decode and process a frame.
Auto Trait Implementations§
impl !RefUnwindSafe for VideoStreamer
impl Send for VideoStreamer
impl !Sync for VideoStreamer
impl Unpin for VideoStreamer
impl !UnwindSafe for VideoStreamer
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