Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Proryanator committed Jun 13, 2024
1 parent 002542a commit 1d9b69b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmark/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::{env, panic};
use std::path::Path;
use std::{env, panic};

use clap::Parser;
use text_io::read;
Expand Down
2 changes: 1 addition & 1 deletion cli/src/supported.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const SUPPORTED_ENCODERS: [&'static str; 10] = [
"av1_qsv",
"h264_videotoolbox",
"hevc_videotoolbox",
"prores_videotoolbox"
"prores_videotoolbox",
];

const ENCODE_FILES: [&'static str; 8] = [
Expand Down
2 changes: 1 addition & 1 deletion codecs/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use crate::vendor::Vendor;

pub mod amf;
pub mod apple_silicon;
pub mod av1_qsv;
pub mod nvenc;
pub mod permute;
pub mod qsv;
mod resolutions;
pub mod vendor;
pub mod apple_silicon;

pub fn get_vendor_for_codec(codec: &String) -> Vendor {
if codec.contains("nvenc") {
Expand Down
6 changes: 5 additions & 1 deletion engine/src/permutation_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ fn calc_vmaf_score(
let vmaf_log_file = get_latest_ffmpeg_report_file();
// TODO: this does fix the issue for apple however, this may not scale very well across other vendors
// or the output line number may have changed recently where we'll need to make this not dependent on line numbers at all
let line_number = if encoder_args.encoder.contains("videotoolbox") {15} else {3};
let line_number = if encoder_args.encoder.contains("videotoolbox") {
15
} else {
3
};
let vmaf_score_line = read_last_line_at(line_number);
//Cleanup process
encoder_child
Expand Down

0 comments on commit 1d9b69b

Please sign in to comment.