pub struct Video(pub Opened);
Tuple Fields
0: Opened
Implementations
sourceimpl Video
impl Video
pub fn decode<P: Ref>(
&mut self,
packet: &P,
out: &mut Video
) -> Result<bool, Error>
👎Deprecated since 4.4.0: Underlying API avcodec_decode_video2 has been deprecated since FFmpeg 3.1; consider switching to send_packet() and receive_frame()
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn format(&self) -> Pixel
pub fn has_b_frames(&self) -> bool
pub fn aspect_ratio(&self) -> Rational
pub fn color_space(&self) -> Space
pub fn color_range(&self) -> Range
pub fn color_primaries(&self) -> Primaries
pub fn color_transfer_characteristic(&self) -> TransferCharacteristic
pub fn chroma_location(&self) -> Location
pub fn set_slice_count(&mut self, value: usize)
pub fn set_slice_flags(&mut self, value: Flags)
pub fn skip_top(&mut self, value: usize)
pub fn skip_bottom(&mut self, value: usize)
pub fn references(&self) -> usize
pub fn set_field_order(&mut self, value: FieldOrder)
pub fn intra_dc_precision(&self) -> u8
pub fn max_bit_rate(&self) -> usize
Methods from Deref<Target = Opened>
pub fn send_packet<P: Ref>(&mut self, packet: &P) -> Result<(), Error>
sourcepub fn send_eof(&mut self) -> Result<(), Error>
pub fn send_eof(&mut self) -> Result<(), Error>
Sends a NULL packet to the decoder to signal end of stream and enter draining mode.
pub fn receive_frame(&mut self, frame: &mut Frame) -> Result<(), Error>
pub fn gop_size(&self) -> usize
pub fn bit_rate(&self) -> usize
pub fn delay(&self) -> usize
pub fn profile(&self) -> Profile
pub fn frame_rate(&self) -> Option<Rational>
pub fn flush(&mut self)
Methods from Deref<Target = Decoder>
Methods from Deref<Target = Context>
pub unsafe fn as_ptr(&self) -> *const AVCodecContext
pub unsafe fn as_mut_ptr(&mut self) -> *mut AVCodecContext
pub fn codec(&self) -> Option<Codec>
pub fn medium(&self) -> Type
pub fn set_flags(&mut self, value: Flags)
pub fn id(&self) -> Id
pub fn compliance(&mut self, value: Compliance)
pub fn debug(&mut self, value: Debug)
pub fn set_threading(&mut self, config: Config)
pub fn threading(&self) -> Config
pub fn set_parameters<P: Into<Parameters>>(
&mut self,
parameters: P
) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Video
impl Send for Video
impl !Sync for Video
impl Unpin for Video
impl !UnwindSafe for Video
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more