Method
new
(
metadata: &MetaData,
bitrate: u32,
encoder_settings: &String,
encoder: &str,
decode: bool,
)
Source from the content-addressed store, hash-verified
| 25 | |
| 26 | impl PermutationResult { |
| 27 | pub fn new( |
| 28 | metadata: &MetaData, |
| 29 | bitrate: u32, |
| 30 | encoder_settings: &String, |
| 31 | encoder: &str, |
| 32 | decode: bool, |
| 33 | ) -> Self { |
| 34 | Self { |
| 35 | encoder: String::from(encoder), |
| 36 | was_overloaded: false, |
| 37 | bitrate, |
| 38 | metadata: metadata.clone(), |
| 39 | encoder_settings: encoder_settings.to_string(), |
| 40 | encode_time: 0, |
| 41 | vmaf_calculation_time: 0, |
| 42 | vmaf_score: 0.0, |
| 43 | fps_stats: FpsStats::default(), |
| 44 | decode_run: decode, |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | fn to_string(&self) -> String { |
| 49 | let mut default = String::new(); |
Callers
nothing calls this directly
Tested by
no test coverage detected