Struct SpeedSettings
Sets the desired encoding and decoding speed for the given options. Note that both speed options affect the encoder choice of used methods and algorithms. For example, a requirement for fast decoding may prevent the encoder from using the best compression methods even if the encoding speed is set to 0. In general, the faster of the two options limits the choice of features that can be used by the encoder. Additionally, setting decodingSpeed to be faster than the encodingSpeed may allow the encoder to choose the optimal method out of the available features for the given decodingSpeed.
Inherited Members
Namespace: Draco.Encode
Assembly: solution.dll
Syntax
public readonly struct SpeedSettings
Constructors
SpeedSettings(int, int)
Sets the desired encoding and decoding speed for the given options. Note that both speed options affect the encoder choice of used methods and algorithms. For example, a requirement for fast decoding may prevent the encoder from using the best compression methods even if the encoding speed is set to 0. In general, the faster of the two options limits the choice of features that can be used by the encoder. Additionally, setting decodingSpeed to be faster than the encodingSpeed may allow the encoder to choose the optimal method out of the available features for the given decodingSpeed.
Declaration
public SpeedSettings(int encodingSpeed, int decodingSpeed)
Parameters
Type | Name | Description |
---|---|---|
int | encodingSpeed | Encoding speed (0 = slowest speed, but the best compression; 10 = fastest, but the worst compression) |
int | decodingSpeed | Decoding speed (0 = slowest speed, but the best compression; 10 = fastest, but the worst compression) |
Fields
Default
Default speed settings, used whenever no settings are provided.
Declaration
public static readonly SpeedSettings Default
Field Value
Type | Description |
---|---|
SpeedSettings |
decodingSpeed
Decoding speed (0 = slowest speed, but the best compression; 10 = fastest, but the worst compression)
Declaration
public readonly int decodingSpeed
Field Value
Type | Description |
---|---|
int |
encodingSpeed
Encoding speed (0 = slowest speed, but the best compression; 10 = fastest, but the worst compression)
Declaration
public readonly int encodingSpeed
Field Value
Type | Description |
---|---|
int |