Interface: CompressionLevel

Flac. CompressionLevel

Set the compression level The compression level is roughly proportional to the amount of effort the encoder expends to compress the file. A higher level usually means more computation but higher compression. The default level is suitable for most applications. Currently the levels range from 0 (fastest, least compression) to 8 (slowest, most compression). A value larger than 8 will be treated as 8. This function automatically calls the following other set functions with appropriate values, so the client does not need to unless it specifically wants to override them:
    FLAC__stream_encoder_set_do_mid_side_stereo()
    FLAC__stream_encoder_set_loose_mid_side_stereo()
    FLAC__stream_encoder_set_apodization()
    FLAC__stream_encoder_set_max_lpc_order()
    FLAC__stream_encoder_set_qlp_coeff_precision()
    FLAC__stream_encoder_set_do_qlp_coeff_prec_search()
    FLAC__stream_encoder_set_do_escape_coding()
    FLAC__stream_encoder_set_do_exhaustive_model_search()
    FLAC__stream_encoder_set_min_residual_partition_order()
    FLAC__stream_encoder_set_max_residual_partition_order()
    FLAC__stream_encoder_set_rice_parameter_search_dist()
The actual values set for each level are: | level | do mid-side stereo | loose mid-side stereo | apodization | max lpc order | qlp coeff precision | qlp coeff prec search | escape coding | exhaustive model search | min residual partition order | max residual partition order | rice parameter search dist | |--------|---------------------|------------------------|------------------------------------------------|----------------|----------------------|------------------------|----------------|--------------------------|-------------------------------|-------------------------------|------------------------------| | 0 | false | false | tukey(0.5) | 0 | 0 | false | false | false | 0 | 3 | 0 | | 1 | true | true | tukey(0.5) | 0 | 0 | false | false | false | 0 | 3 | 0 | | 2 | true | false | tukey(0.5) | 0 | 0 | false | false | false | 0 | 3 | 0 | | 3 | false | false | tukey(0.5) | 6 | 0 | false | false | false | 0 | 4 | 0 | | 4 | true | true | tukey(0.5) | 8 | 0 | false | false | false | 0 | 4 | 0 | | 5 | true | false | tukey(0.5) | 8 | 0 | false | false | false | 0 | 5 | 0 | | 6 | true | false | tukey(0.5);partial_tukey(2) | 8 | 0 | false | false | false | 0 | 6 | 0 | | 7 | true | false | tukey(0.5);partial_tukey(2) | 12 | 0 | false | false | false | 0 | 6 | 0 | | 8 | true | false | tukey(0.5);partial_tukey(2);punchout_tukey(3) | 12 | 0 | false | false | false | 0 | 6 | 0 |
Properties:
Name Type Description
0 "FLAC__COMPRESSION_LEVEL_0" compression level 0
1 "FLAC__COMPRESSION_LEVEL_1" compression level 1
2 "FLAC__COMPRESSION_LEVEL_2" compression level 2
3 "FLAC__COMPRESSION_LEVEL_3" compression level 3
4 "FLAC__COMPRESSION_LEVEL_4" compression level 4
5 "FLAC__COMPRESSION_LEVEL_5" compression level 5
6 "FLAC__COMPRESSION_LEVEL_6" compression level 6
7 "FLAC__COMPRESSION_LEVEL_7" compression level 7
8 "FLAC__COMPRESSION_LEVEL_8" compression level 8