-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop benchmarks #951
base: master
Are you sure you want to change the base?
Develop benchmarks #951
Conversation
I am wondering what kind of resolution presets use to be meaningful and unambiguous. Maybe rename it to sth like pub enum ResolutionPreset {
Uhd,
Qhd,
Fhd,
Hd,
Sd,
} |
pub enum ResolutionPreset { | ||
Uhd, | ||
Qhd, | ||
Fhd, | ||
Hd, | ||
Sd, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be cool if the only thing you specified on the cmd was the number ++ p: --resolution 1080p
. I would hate if you had to specify the resolution like this: --resolution res_480_p
.
Also, derive(ValueEnum)
does nothing here I think, since you implement parsing manually anyway.
#[derive(Debug, Clone, Copy)] | ||
pub enum ResolutionConstant { | ||
Preset(ResolutionPreset), | ||
Value(u32, u32), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Value(u32, u32), | |
Value(Resolution), |
That's how I'd do it, but it's up to you
pub encoder_preset: EncoderPreset, | ||
pub disable_encoder: bool, | ||
|
||
#[arg(long, global = true, required_unless_present("disable_encoder"))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need global
here, as we don't have subcommands.
Also, you can use default_value
instead of Option
PR for issue #937
Develop more benchmark options:
resolution
outputs
run without encoder
run without decoder
renamed
encoder/decoder_count
tooutput/input_count
to be more meaningful