scrap: use the same bitrate ratio control as vpx

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-06-06 14:53:29 +08:00
parent 4bb09865cf
commit 42546a7468
4 changed files with 21 additions and 45 deletions

View File

@@ -12,7 +12,7 @@ use crate::vpxcodec::*;
use hbb_common::{
anyhow::anyhow,
log,
message_proto::{video_frame, ImageQuality, Message, VP9s, VideoCodecState},
message_proto::{video_frame, Message, VP9s, VideoCodecState},
ResultType,
};
#[cfg(feature = "hwcodec")]
@@ -31,7 +31,7 @@ pub struct HwEncoderConfig {
pub codec_name: String,
pub width: usize,
pub height: usize,
pub quallity: ImageQuality,
pub bitrate_ratio: i32,
}
#[derive(Debug, Clone)]