use super::*;
#[cfg(not(target_arch = "wasm32"))]
pub trait VideoDecoderBackend: Send {
fn backend_kind(&self) -> HardwareDecoderKind;
fn capabilities(&self) -> HardwareDecoderCapabilities;
fn configure(&mut self, config: &VideoDecoderConfig) -> Result<(), String>;
fn decode_packet(
&mut self,
packet: &EncodedVideoPacket,
pool: &VideoFramePool,
) -> Result<Option<DecodedVideoFrame>, String>;
fn flush(&mut self);
}
#[cfg(target_arch = "wasm32")]
pub trait VideoDecoderBackend {
fn backend_kind(&self) -> HardwareDecoderKind;
fn capabilities(&self) -> HardwareDecoderCapabilities;
fn configure(&mut self, config: &VideoDecoderConfig) -> Result<(), String>;
fn decode_packet(
&mut self,
packet: &EncodedVideoPacket,
pool: &VideoFramePool,
) -> Result<Option<DecodedVideoFrame>, String>;
fn flush(&mut self);
}