Struct gstreamer_video::video_converter::VideoConverter
source · pub struct VideoConverter(/* private fields */);
Implementations§
source§impl VideoConverter
impl VideoConverter
pub fn new( in_info: &VideoInfo, out_info: &VideoInfo, config: Option<VideoConverterConfig>, ) -> Result<Self, BoolError>
pub fn config(&self) -> VideoConverterConfig
pub fn set_config(&mut self, config: VideoConverterConfig)
pub fn in_info(&self) -> VideoInfo
pub fn out_info(&self) -> VideoInfo
pub fn frame<T>(&self, src: &VideoFrame<T>, dest: &mut VideoFrame<Writable>)
pub fn frame_ref<T>( &self, src: &VideoFrameRef<T>, dest: &mut VideoFrameRef<&mut BufferRef>, )
Trait Implementations§
source§impl Debug for VideoConverter
impl Debug for VideoConverter
source§impl Drop for VideoConverter
impl Drop for VideoConverter
impl Send for VideoConverter
impl Sync for VideoConverter
Auto Trait Implementations§
impl Freeze for VideoConverter
impl RefUnwindSafe for VideoConverter
impl Unpin for VideoConverter
impl UnwindSafe for VideoConverter
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
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