Video

Struct Video 

Source
pub struct Video(pub Opened);

Tuple Fields§

§0: Opened

Implementations§

Source§

impl Video

Source

pub fn width(&self) -> u32

Source

pub fn height(&self) -> u32

Source

pub fn format(&self) -> Pixel

Source

pub fn has_b_frames(&self) -> bool

Source

pub fn aspect_ratio(&self) -> Rational

Source

pub fn color_space(&self) -> Space

Source

pub fn color_range(&self) -> Range

Source

pub fn color_primaries(&self) -> Primaries

Source

pub fn color_transfer_characteristic(&self) -> TransferCharacteristic

Source

pub fn chroma_location(&self) -> Location

Source

pub fn set_slice_count(&mut self, value: usize)

Source

pub fn set_slice_flags(&mut self, value: Flags)

Source

pub fn skip_top(&mut self, value: usize)

Source

pub fn skip_bottom(&mut self, value: usize)

Source

pub fn references(&self) -> usize

Source

pub fn set_field_order(&mut self, value: FieldOrder)

Source

pub fn intra_dc_precision(&self) -> u8

Source

pub fn max_bit_rate(&self) -> usize

Source§

impl Video

Source

pub fn scaler( &self, width: u32, height: u32, flags: Flags, ) -> Result<Context, Error>

Source

pub fn converter(&self, format: Pixel) -> Result<Context, Error>

Methods from Deref<Target = Opened>§

Source

pub fn send_packet<P: Ref>(&mut self, packet: &P) -> Result<(), Error>

Source

pub fn send_eof(&mut self) -> Result<(), Error>

Sends a NULL packet to the decoder to signal end of stream and enter draining mode.

Source

pub fn receive_frame(&mut self, frame: &mut Frame) -> Result<(), Error>

Source

pub fn bit_rate(&self) -> usize

Source

pub fn delay(&self) -> usize

Source

pub fn profile(&self) -> Profile

Source

pub fn frame_rate(&self) -> Option<Rational>

Source

pub fn flush(&mut self)

Methods from Deref<Target = Decoder>§

Source

pub fn conceal(&mut self, value: Conceal)

Source

pub fn check(&mut self, value: Check)

Source

pub fn skip_loop_filter(&mut self, value: Discard)

Source

pub fn skip_idct(&mut self, value: Discard)

Source

pub fn skip_frame(&mut self, value: Discard)

Source

pub fn time_base(&self) -> Rational

Methods from Deref<Target = Context>§

Source

pub unsafe fn as_ptr(&self) -> *const AVCodecContext

Source

pub unsafe fn as_mut_ptr(&mut self) -> *mut AVCodecContext

Source

pub fn codec(&self) -> Option<Codec>

Source

pub fn medium(&self) -> Type

Source

pub fn set_flags(&mut self, value: Flags)

Source

pub fn id(&self) -> Id

Source

pub fn compliance(&mut self, value: Compliance)

Source

pub fn debug(&mut self, value: Debug)

Source

pub fn set_threading(&mut self, config: Config)

Source

pub fn threading(&self) -> Config

Source

pub fn set_parameters<P: AsPtr<AVCodecParameters>>( &mut self, parameters: P, ) -> Result<(), Error>

Trait Implementations§

Source§

impl AsMut<Context> for Video

Source§

fn as_mut(&mut self) -> &mut Context

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<Context> for Video

Source§

fn as_ref(&self) -> &Context

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Deref for Video

Source§

type Target = Opened

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<Self as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for Video

Source§

fn deref_mut(&mut self) -> &mut <Self as Deref>::Target

Mutably dereferences the value.

Auto Trait Implementations§

§

impl Freeze for Video

§

impl !RefUnwindSafe for Video

§

impl Send for Video

§

impl !Sync for Video

§

impl Unpin for Video

§

impl !UnwindSafe for Video

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.