pub struct VideoCapture {
video_ready: Arc<AtomicBool>,
audio_ready: Arc<AtomicBool>,
use_nvidia_modifiers: bool,
}
Fields§
§video_ready: Arc<AtomicBool>
§audio_ready: Arc<AtomicBool>
§use_nvidia_modifiers: bool
Implementations§
Source§impl VideoCapture
impl VideoCapture
pub fn new( video_ready: Arc<AtomicBool>, audio_ready: Arc<AtomicBool>, use_nvidia_modifiers: bool, ) -> Self
pub fn run( &self, pipewire_fd: RawFd, stream_node: u32, ringbuf_producer: HeapProd<RawVideoFrame>, termination_recv: Receiver<Terminate>, saving: Arc<AtomicBool>, start_time: Instant, resolution_negotiation_channel: Sender<(u32, u32)>, ) -> Result<(), Error>
fn get_dmabuf_fd(data: &Data) -> Option<RawFd>
Auto Trait Implementations§
impl Freeze for VideoCapture
impl RefUnwindSafe for VideoCapture
impl Send for VideoCapture
impl Sync for VideoCapture
impl Unpin for VideoCapture
impl UnwindSafe for VideoCapture
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