refactor(video): 删除废弃视频流水线并收敛 MJPEG/WebRTC 编排与死代码

This commit is contained in:
mofeng-git
2026-03-27 08:21:14 +08:00
parent 6ef2d394d9
commit c8fd3648ad
16 changed files with 672 additions and 3294 deletions

View File

@@ -244,9 +244,6 @@ pub struct H264Encoder {
codec_name: String,
/// Frame counter
frame_count: u64,
/// YUV420P buffer for input (reserved for future use)
#[allow(dead_code)]
yuv_buffer: Vec<u8>,
/// Required YUV buffer length from hwcodec
yuv_length: i32,
}
@@ -326,7 +323,6 @@ impl H264Encoder {
encoder_type,
codec_name: codec_name.to_string(),
frame_count: 0,
yuv_buffer: vec![0u8; yuv_length as usize],
yuv_length,
})
}