oa::VideoDecoder

Stateful hardware decoder for one demuxed video stream. The Experimental codec paths accept progressive H.264 Baseline/Main/High, H.265 Main, AV1 Main 8-bit 4:2:0 without film grain, or VP9 Profile 0 8-bit 4:2:0. AVC and HEVC access units contain one complete slice per picture; admitted AV1 and VP9 access units may contain hidden and show-existing pictures. Host-planar and retained native output are synchronous; Vulkan handles and queue ownership remain private.

StRust public API

Declaration

pub struct VideoDecoder { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn decode(&mut self, packet: &VideoPacket) -> Result<Option<VideoFrame>>
pub fn decode_native( &mut self, packet: &VideoPacket, ) -> Result<Option<VideoFrame>>
pub fn read_native_yuv420p(&mut self, frame: &VideoFrame) -> Result<Vec<u8>>
pub fn flush(&mut self) -> Result<Vec<VideoFrame>>
pub fn close(&mut self)
pub const fn is_open(&self) -> bool
pub fn info(&self) -> Option<VideoContainerInfo>

Associated Functions

pub fn create(engine: &Engine, info: VideoContainerInfo) -> Result<Self>

Public Method Documentation

pub fn decode( &mut self, packet: &VideoPacket ) -> Result<Option<VideoFrame>>
No public source comment is attached to this declaration.
pub fn decode_native( &mut self, packet: &VideoPacket ) -> Result<Option<VideoFrame>>
No public source comment is attached to this declaration.
pub fn read_native_yuv420p( &mut self, frame: &VideoFrame ) -> Result<Vec<u8>>
No public source comment is attached to this declaration.
pub fn flush( &mut self ) -> Result<Vec<VideoFrame>>
No public source comment is attached to this declaration.
pub fn close( &mut self )
No public source comment is attached to this declaration.
pub const fn is_open( &self ) -> bool
No public source comment is attached to this declaration.
pub fn info( &self ) -> Option<VideoContainerInfo>
No public source comment is attached to this declaration.
pub fn create( engine: &Engine, info: VideoContainerInfo ) -> Result<Self>
No public source comment is attached to this declaration.