Method
build_ffmpeg_args
(
first_input: String,
encoder: String,
encoder_args: &String,
current_bitrate: u32,
decode: bool,
ten_bit: bool,
)
Source from the content-addressed store, hash-verified
| 47 | |
| 48 | impl FfmpegArgs { |
| 49 | pub fn build_ffmpeg_args( |
| 50 | first_input: String, |
| 51 | encoder: String, |
| 52 | encoder_args: &String, |
| 53 | current_bitrate: u32, |
| 54 | decode: bool, |
| 55 | ten_bit: bool, |
| 56 | ) -> FfmpegArgs { |
| 57 | let ffmpeg_args = FfmpegArgs { |
| 58 | first_input, |
| 59 | bitrate: current_bitrate, |
| 60 | encoder, |
| 61 | encoder_args: encoder_args.to_string(), |
| 62 | decode, |
| 63 | ten_bit, |
| 64 | ..Default::default() |
| 65 | }; |
| 66 | |
| 67 | return ffmpeg_args; |
| 68 | } |
| 69 | |
| 70 | pub fn map_to_vmaf(&self, fps: u32) -> FfmpegArgs { |
| 71 | let mut vmaf_args = self.clone(); |
Callers
nothing calls this directly
Tested by
no test coverage detected