Profile

Enumin image_optimizerfastly 0.13.1View source
pub enum Profile {
Baseline,
Main,
High,
}

The profile parameter controls which features the video encoder can use based on a target class of application for decoding the specific video bitstream.

This option is only used when converting animated GIFs to the MP4 format and when used in conjunction with the level parameter,

Variants

Baseline

The profile recommended for video conferencing and mobile applications.

Main

The profile recommended for standard-definition broadcasts.

High

The profile recommended for high-definition broadcasts.

Trait implementations

impl Clone for Profile

fn clone(&self) -> Self

Parameters

self: &Self

Returns

Self

impl Debug for Profile

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Parameters

self: &Self
f: &mut $crate::fmt::Formatter

Returns

$crate::fmt::Result

impl Serialize for Profile

serialize

View source
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where
__S: Serializer,

Parameters

self: &Self
__serializer: __S

Returns

_serde::__private228::Result<__S::Ok, __S::Error>

Auto trait implementations

Blanket implementations