Flutter Engine
The Flutter Engine
Public Attributes | List of all members
SkWebpEncoder::Options Struct Reference

#include <SkWebpEncoder.h>

Public Attributes

Compression fCompression = Compression::kLossy
 
float fQuality = 100.0f
 
const skcms_ICCProfilefICCProfile = nullptr
 
const char * fICCProfileDescription = nullptr
 

Detailed Description

Definition at line 30 of file SkWebpEncoder.h.

Member Data Documentation

◆ fCompression

Compression SkWebpEncoder::Options::fCompression = Compression::kLossy

|fCompression| determines whether we will use webp lossy or lossless compression.

|fQuality| must be in [0.0f, 100.0f]. If |fCompression| is kLossy, |fQuality| corresponds to the visual quality of the encoding. Decreasing the quality will result in a smaller encoded image. If |fCompression| is kLossless, |fQuality| corresponds to the amount of effort put into the encoding. Lower values will compress faster into larger files, while larger values will compress slower into smaller files.

This scheme is designed to match the libwebp API.

Definition at line 43 of file SkWebpEncoder.h.

◆ fICCProfile

const skcms_ICCProfile* SkWebpEncoder::Options::fICCProfile = nullptr

An optional ICC profile to override the default behavior.

The default behavior is to generate an ICC profile using a primary matrix and analytic transfer function. If the color space of |src| cannot be represented in this way (e.g, it is HLG or PQ), then no profile will be embedded.

Definition at line 53 of file SkWebpEncoder.h.

◆ fICCProfileDescription

const char* SkWebpEncoder::Options::fICCProfileDescription = nullptr

Definition at line 54 of file SkWebpEncoder.h.

◆ fQuality

float SkWebpEncoder::Options::fQuality = 100.0f

Definition at line 44 of file SkWebpEncoder.h.


The documentation for this struct was generated from the following file: