Skip to content

acl/compression/output_stats.h

#include "acl/compression/output_stats.h"

The settings of the statistics that compression writes.

stat_logging

enum class stat_logging
{
    none = 0x0000,
    summary = 0x0001,
    detailed = 0x0002 | summary,
    exhaustive = 0x0004 | detailed,
};

The amount of statistics that compression writes. Each level includes the statistics of the levels below it.

Value Description
none Compression writes no statistics.
summary Compression writes the summary statistics of the compressed tracks.
detailed Compression also writes the details of each segment and the timings.
exhaustive Compression also writes the error of each transform at each sample (the output is large).

output_stats

struct output_stats

The statistics that compression writes, and where it writes them.

output_stats::logging

stat_logging logging = stat_logging::none;

The amount of statistics to write.

output_stats::writer

sjson::ObjectWriter* writer = nullptr;

The SJSON writer that receives the statistics, required when logging is not none.