pub struct Video(pub Opened);Tuple Fields§
§0: OpenedImplementations§
Source§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_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 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>§
Sourcepub fn conceal(&mut self, value: Conceal)
pub fn conceal(&mut self, value: Conceal)
Sets error concealment strategy.
Configures how the decoder should handle corrupted data (e.g., missing macroblocks, broken slices). Higher concealment may produce visible artifacts but avoid decode failures.
Sourcepub fn check(&mut self, value: Check)
pub fn check(&mut self, value: Check)
Sets error detection/recognition level.
Controls how strictly the decoder validates input data. Stricter checking catches more errors but may reject valid but non-compliant streams.
Sourcepub fn skip_loop_filter(&mut self, value: Discard)
pub fn skip_loop_filter(&mut self, value: Discard)
Sets which frames to skip during loop filtering (deblocking).
Skipping loop filtering improves decode performance but reduces visual quality. Useful for low-power devices or when decoding for analysis rather than display.
Sourcepub fn skip_idct(&mut self, value: Discard)
pub fn skip_idct(&mut self, value: Discard)
Sets which frames to skip during IDCT (inverse DCT) processing.
Skipping IDCT can significantly speed up decoding but produces lower quality output. Primarily useful for fast seeking or thumbnail extraction.
Sourcepub fn skip_frame(&mut self, value: Discard)
pub fn skip_frame(&mut self, value: Discard)
Sets which frames to skip entirely during decoding.
Allows selective frame dropping (e.g., skip all B-frames, skip non-reference frames). Useful for fast playback or when only key frames are needed.
Sourcepub fn packet_time_base(&self) -> Rational
pub fn packet_time_base(&self) -> Rational
Gets the time base used for packet timestamps.
This is the time unit for interpreting PTS/DTS values in input packets. Typically matches the stream’s time base.
Sourcepub fn set_packet_time_base<R: Into<Rational>>(&mut self, value: R)
pub fn set_packet_time_base<R: Into<Rational>>(&mut self, value: R)
Sets the time base for packet timestamps.
Must match the time base of packets being sent to this decoder.