acl/compression/compression_level.h¶
#include "acl/compression/compression_level.h"
The compression levels: a higher level tries more bit rates, it is slower and gives smaller data.
compression_level8¶
enum class compression_level8 : uint8_t
{
lowest = 0,
low = 1,
medium = 2,
high = 3,
highest = 4,
automatic = 100,
};
compression_level8 represents how aggressively we attempt to reduce the memory footprint. Higher levels will try more permutations and bit rates. The higher the level, the slower the compression but the smaller the memory footprint.
| Value | Description |
|---|---|
lowest |
Same as medium for now. |
low |
Same as medium for now. |
medium |
|
high |
|
highest |
|
automatic |
Automatic attempts to pick the best compression level based on various properties of the input clip: clip length, longest transform chain, etc. This offers a nice balance between size and speed for the majority of clips. |
get_compression_level_name¶
const char* get_compression_level_name(compression_level8 level)
Returns a string representing the compression level.
get_compression_level¶
bool get_compression_level(const char* level_name, compression_level8& out_level)
Returns the compression level from its string representation.