GPU (Android): adds GPU temp detection support

This commit is contained in:
李通洲
2025-08-28 14:24:40 +08:00
parent 5c9a0a1f88
commit ebf810ad4b
3 changed files with 61 additions and 1 deletions
+7
View File
@@ -116,6 +116,13 @@ const char* ffDetectGPU(const FFGPUOptions* options, FFlist* result)
{
ffListDestroy(result);
ffListInitMove(result, &vulkan->gpus);
#ifdef __ANDROID__
double ffGPUDetectTempFromTZ(void);
if (options->temp && result->length == 1)
FF_LIST_GET(FFGPUResult, *result, 0)->temperature = ffGPUDetectTempFromTZ();
#endif
return NULL;
}
}