Commit 158a4ad1 authored by Nathan E. Egge's avatar Nathan E. Egge

Rename EncoderFiles to EncoderConfig.

parent 8ecca039
......@@ -4,7 +4,7 @@ extern crate y4m;
use rav1e::*;
fn main() {
let mut files = EncoderFiles::from_cli();
let mut files = EncoderConfig::from_cli();
let mut y4m_dec = y4m::decode(&mut files.input_file).unwrap();
let width = y4m_dec.get_width();
let height = y4m_dec.get_height();
......
......@@ -8,7 +8,7 @@ use rustyline::error::ReadlineError;
use rustyline::Editor;
fn main() {
let mut files = EncoderFiles::from_cli();
let mut files = EncoderConfig::from_cli();
let mut y4m_dec = y4m::decode(&mut files.input_file).unwrap();
let width = y4m_dec.get_width();
let height = y4m_dec.get_height();
......
......@@ -135,14 +135,14 @@ impl FrameInvariants {
}
}
pub struct EncoderFiles {
pub struct EncoderConfig {
pub input_file: Box<Read>,
pub output_file: Box<Write>,
pub rec_file: File,
}
impl EncoderFiles {
pub fn from_cli() -> EncoderFiles {
impl EncoderConfig {
pub fn from_cli() -> EncoderConfig {
let matches = App::new("rav1e")
.version("0.1.0")
.about("AV1 video encoder")
......@@ -173,7 +173,7 @@ impl EncoderFiles {
};
let rec_file = File::create("rec.y4m").unwrap();
EncoderFiles {
EncoderConfig {
input_file: input_file,
output_file: output_file,
rec_file: rec_file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment