clippy: fix very_complex_type in wzp-video (HevcParameterSets alias)

This commit is contained in:
Siavash Sameni
2026-05-12 15:40:19 +04:00
parent fdfaed5390
commit 283edd38eb
2 changed files with 8 additions and 2 deletions

View File

@@ -669,9 +669,12 @@ impl VideoDecoder for MediaCodecHevcDecoder {
} }
} }
/// Type alias for HEVC parameter-set triple returned by `extract_vps_sps_pps`.
type HevcParameterSets = (Option<Vec<u8>>, Option<Vec<u8>>, Option<Vec<u8>>);
/// Parse an Annex-B access unit and return the first VPS, SPS and PPS found (HEVC). /// Parse an Annex-B access unit and return the first VPS, SPS and PPS found (HEVC).
#[allow(dead_code)] #[allow(dead_code)]
fn extract_vps_sps_pps(annex_b: &[u8]) -> (Option<Vec<u8>>, Option<Vec<u8>>, Option<Vec<u8>>) { fn extract_vps_sps_pps(annex_b: &[u8]) -> HevcParameterSets {
let nals = split_annex_b(annex_b); let nals = split_annex_b(annex_b);
let mut vps = None; let mut vps = None;
let mut sps = None; let mut sps = None;

View File

@@ -652,8 +652,11 @@ impl VideoDecoder for VideoToolboxHevcDecoder {
} }
} }
/// Type alias for HEVC parameter-set triple returned by `extract_vps_sps_pps`.
type HevcParameterSets = (Option<Vec<u8>>, Option<Vec<u8>>, Option<Vec<u8>>);
/// Parse an Annex-B access unit and return the first VPS, SPS and PPS found (HEVC). /// Parse an Annex-B access unit and return the first VPS, SPS and PPS found (HEVC).
fn extract_vps_sps_pps(annex_b: &[u8]) -> (Option<Vec<u8>>, Option<Vec<u8>>, Option<Vec<u8>>) { fn extract_vps_sps_pps(annex_b: &[u8]) -> HevcParameterSets {
let nals = split_annex_b(annex_b); let nals = split_annex_b(annex_b);
let mut vps = None; let mut vps = None;
let mut sps = None; let mut sps = None;