pub struct Profile {
pub name: String,
pub device: DeviceClass,
pub description: String,
pub vmaf_model: String,
pub max_res: Resolution,
pub resolutions: Vec<Resolution>,
pub codecs: Vec<Codec>,
pub ladder_opts: Opts,
}Expand description
Encoding constraints and quality targets for a device class.
Fields§
§name: StringHuman-readable profile name (e.g. "Mobile").
device: DeviceClassDevice class this profile targets.
description: StringDescription of the intended device and viewing context.
vmaf_model: StringVMAF model name used for quality scoring (e.g. "vmaf_v0.6.1").
max_res: ResolutionMaximum resolution allowed for this device.
resolutions: Vec<Resolution>Candidate resolutions to evaluate.
codecs: Vec<Codec>Codecs to encode with, in preference order.
ladder_opts: OptsLadder selection options (rung count, bitrate and VMAF bounds).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more