Merge master

This commit is contained in:
csf
2022-08-04 17:24:02 +08:00
parent 07debe8363
commit 3ff2f60fb7
27 changed files with 1015 additions and 281 deletions

View File

@@ -3,7 +3,10 @@ use std::{
time::Instant,
};
use hbb_common::{log, message_proto::{VideoFrame, video_frame}};
use hbb_common::{
log,
message_proto::{video_frame, VideoFrame},
};
const MAX_LATENCY: i64 = 500;
const MIN_LATENCY: i64 = 100;
@@ -89,3 +92,12 @@ impl ToString for CodecFormat {
}
}
}
#[derive(Debug, Default)]
pub struct QualityStatus {
pub speed: Option<String>,
pub fps: Option<i32>,
pub delay: Option<i32>,
pub target_bitrate: Option<i32>,
pub codec_format: Option<CodecFormat>,
}