2023-03-17 17:56:31 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "common/option.h"
|
2024-01-20 14:10:13 +08:00
|
|
|
#include "common/percent.h"
|
2023-03-17 17:56:31 +08:00
|
|
|
|
|
|
|
|
typedef struct FFCPUUsageOptions
|
|
|
|
|
{
|
|
|
|
|
FFModuleArgs moduleArgs;
|
2023-10-10 16:00:23 +08:00
|
|
|
|
2023-10-10 19:01:48 +08:00
|
|
|
bool separate;
|
2024-11-14 10:04:57 +08:00
|
|
|
FFPercentageModuleConfig percent;
|
2024-10-22 11:08:44 +08:00
|
|
|
uint32_t waitTime; // in ms
|
2023-03-17 17:56:31 +08:00
|
|
|
} FFCPUUsageOptions;
|
2025-08-04 14:25:14 +08:00
|
|
|
|
|
|
|
|
static_assert(sizeof(FFCPUUsageOptions) <= FF_OPTION_MAX_SIZE, "FFCPUUsageOptions size exceeds maximum allowed size");
|