pub struct Opened(pub Decoder);Tuple Fields§
§0: DecoderImplementations§
Source§impl Opened
impl Opened
pub fn video(self) -> Result<Video, Error>
pub fn audio(self) -> Result<Audio, Error>
pub fn subtitle(self) -> Result<Subtitle, Error>
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.