pub struct Video(pub Opened);Tuple Fields§
§0: Opened实现§
源代码§impl Video
impl Video
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_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>
源代码pub 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.