pub struct V4l2M2mEncoder { /* private fields */ }Implementations§
Source§impl V4l2M2mEncoder
impl V4l2M2mEncoder
pub fn new( codec: Codec, settings: &RustCaptureSettings, rgba: bool, ) -> Result<Self, String>
pub fn codec(&self) -> Codec
Sourcepub fn is_fullcolor(&self) -> bool
pub fn is_fullcolor(&self) -> bool
The firmware converts to 4:2:0 and the encoder takes nothing else.
Sourcepub fn last_reference(&self) -> Reference
pub fn last_reference(&self) -> Reference
The kernel’s stateful interface names no reference and takes no invalidation.
pub fn invalidate_reference(&mut self, _frame_id: u16) -> bool
Sourcepub fn is_full_range(&self) -> bool
pub fn is_full_range(&self) -> bool
The range the stream declares, which is the device’s to decide: a session that says nothing is described as limited, since that is what a decoder given nothing assumes.
Sourcepub fn reconfigure_rate(
&mut self,
settings: &RustCaptureSettings,
) -> Result<(), String>
pub fn reconfigure_rate( &mut self, settings: &RustCaptureSettings, ) -> Result<(), String>
Apply a live bitrate or frame rate change. Both are writable while streaming on this path, and the frame rate goes down with the bitrate: left behind, it would budget a new bitrate against an old rate.
pub fn encode_host( &mut self, pixels: &[u8], stride: usize, _rgba: bool, frame_number: u64, _qp: u32, force_idr: bool, ) -> Result<Vec<u8>, String>
Trait Implementations§
Source§impl Drop for V4l2M2mEncoder
impl Drop for V4l2M2mEncoder
impl Send for V4l2M2mEncoder
Auto Trait Implementations§
impl !Sync for V4l2M2mEncoder
impl Freeze for V4l2M2mEncoder
impl RefUnwindSafe for V4l2M2mEncoder
impl Unpin for V4l2M2mEncoder
impl UnsafeUnpin for V4l2M2mEncoder
impl UnwindSafe for V4l2M2mEncoder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more