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

Function insert_format_from

engine/src/permutation_engine.rs:315–325  ·  view source on GitHub ↗
(input: &str, encoder: &String)

Source from the content-addressed store, hash-verified

313}
314
315fn insert_format_from(input: &str, encoder: &String) -> String {
316 let format = if encoder.contains("h264") {
317 "h264"
318 } else if encoder.contains("hevc") {
319 "hevc"
320 } else {
321 "ivf"
322 };
323 // this should be cleaner when we support more than 1 type
324 return input.replace("{}", format);
325}

Callers 1

calc_vmaf_scoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected