add: h265 & AV1 support (with a lot of fixes)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
use bytes::Bytes;
|
||||
|
||||
pub mod av1;
|
||||
pub mod h264;
|
||||
pub mod h265;
|
||||
|
||||
#[cfg(test)]
|
||||
mod flv_replay_test;
|
||||
|
||||
pub trait CodecParser: Send {
|
||||
fn parse(&mut self, data: &[u8], timestamp_ms: u32) -> Option<VideoFrame>;
|
||||
}
|
||||
|
||||
pub struct VideoFrame {
|
||||
pub data: Bytes,
|
||||
pub is_keyframe: bool,
|
||||
pub timestamp_ms: u32,
|
||||
}
|
||||
Reference in New Issue
Block a user