MCPcopy Create free account
hub / github.com/Proryanator/encoder-benchmark / get_bitrate_permutations

Function get_bitrate_permutations

permutor-cli/src/main.rs:216–224  ·  view source on GitHub ↗
(starting_bitrate: u32, max_bitrate: u32)

Source from the content-addressed store, hash-verified

214}
215
216fn get_bitrate_permutations(starting_bitrate: u32, max_bitrate: u32) -> Vec<u32> {
217 let interval = 5;
218 let mut bitrates = Vec::new();
219 for i in 0..(((max_bitrate - starting_bitrate) / interval) + 1) {
220 bitrates.push(starting_bitrate + (interval * i));
221 }
222
223 return bitrates;
224}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected