Skip to main content

Encoder

Struct Encoder 

Source
pub struct Encoder { /* private fields */ }

Implementations§

Source§

impl Encoder

Source

pub fn new() -> Status<Encoder>

Source

pub fn create() -> Encoder

👎Deprecated
Source

pub fn encode_file(&self, source: &Path) -> Status<()>

Source

pub fn encode_bytes(&self, frame: QuickFrame) -> Status<()>

Source§

impl Encoder

Source

pub fn set_cancel(&self, cancel: Canceller) -> Status<()>

Source

pub fn set_output(&self, file: &Path) -> Status<()>

Source

pub fn set_bit_mode(&self, mode: BitMode) -> Status<()>

Source

pub fn enable_gri_arg_limit(&self) -> Status<()>

Source

pub fn set_num_colors_str(&self, num_colors: &str) -> Status<()>

Source

pub fn set_num_colors(&self, num_colors: u8) -> Status<()>

Source

pub fn set_color_option<'a>(&self, option: ColorOption<'a>) -> Status<()>

Source

pub fn set_diffusion_str(&self, method: &str) -> Status<()>

Source

pub fn set_diffusion(&self, method: DiffusionMethod) -> Status<()>

Source

pub fn set_find_largest_str(&self, option: &str) -> Status<()>

Source

pub fn set_find_largest(&self, opt: FindLargestOpt) -> Status<()>

Source

pub fn set_color_select_str(&self, opt: &str) -> Status<()>

Source

pub fn set_color_select(&self, meth: ColorSelectionMethod) -> Status<()>

Source

pub fn set_crop_str(&self, crop: &str) -> Status<()>

Source

pub fn set_crop(&self, width: i64, height: i64, x: i64, y: i64) -> Status<()>

Source

pub fn set_width_str(&self, width: &str) -> Status<()>

Source

pub fn set_width(&self, width: SizeSpecification) -> Status<()>

Source

pub fn set_height_str(&self, height: &str) -> Status<()>

Source

pub fn set_height(&self, height: SizeSpecification) -> Status<()>

Source

pub fn set_resampling_str(&self, meth: &str) -> Status<()>

Source

pub fn set_resampling(&self, meth: ResampleMethod) -> Status<()>

Source

pub fn set_quality_str(&self, opt: &str) -> Status<()>

Source

pub fn set_quality(&self, opt: Quality) -> Status<()>

Source

pub fn set_loopmode_str(&self, mode: &str) -> Status<()>

Source

pub fn set_loopmode(&self, mode: LoopMode) -> Status<()>

Source

pub fn set_palette_type_str(&self, opt: &str) -> Status<()>

Source

pub fn set_palette_type(&self, opt: PaletteType) -> Status<()>

Source

pub fn set_background_color_str(&self, color: &str) -> Status<()>

Source

pub fn set_background_color(&self, red: u8, green: u8, blue: u8) -> Status<()>

Source

pub fn use_insecure(&self) -> Status<()>

Source

pub fn use_invert(&self) -> Status<()>

Source

pub fn use_macro(&self) -> Status<()>

Source

pub fn set_macro_number_str(&self, num: &str) -> Status<()>

Source

pub fn set_macro_number(&self, num: i64) -> Status<()>

Source

pub fn ignore_delay(&self) -> Status<()>

Source

pub fn use_verbose(&self) -> Status<()>

Source

pub fn use_static(&self) -> Status<()>

Source

pub fn use_penetrate(&self) -> Status<()>

Source

pub fn set_encode_policy_str(&self, pol: &str) -> Status<()>

Source

pub fn set_encode_policy(&self, pol: EncodePolicy) -> Status<()>

Source

pub fn set_complexion_score_str(&self, score: &str) -> Status<()>

Source

pub fn set_complexion_score(&self, score: i64) -> Status<()>

Source

pub fn use_pipe_mode(&self) -> Status<()>

Trait Implementations§

Source§

impl Clone for Encoder

Source§

fn clone(&self) -> Encoder

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Drop for Encoder

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.