sync codec format

This commit is contained in:
csf committed 2022-06-30 00:03:17 +08:00
1 parent 75fc49b301
commit eaaeefd90b
8 files changed
+61 -10

No files matched your search

+3 -1
View File
@@ -12,7 +12,7 @@ use crate::vpxcodec::*;
use hbb_common::{
anyhow::anyhow,
log,
message_proto::{video_frame, Message, VP9s, VideoCodecState},
message_proto::{video_frame, Message, VP9s, VideoCodecState, test_delay},
ResultType,
};
#[cfg(feature = "hwcodec")]
@@ -52,6 +52,8 @@ pub trait EncoderApi {
fn use_yuv(&self) -> bool;
fn set_bitrate(&mut self, bitrate: u32) -> ResultType<()>;
fn get_codec_format(&self) -> test_delay::CodecFormat;
}
pub struct DecoderCfg {