mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Codec: normalizes platformApi string
This commit is contained in:
@@ -89,7 +89,7 @@ const char* ffDetectCodecNative(FF_A_UNUSED FFCodecOptions* options, FFlist* res
|
||||
ffStrbufInitStatic(&item->gpu, "Default");
|
||||
item->decoders = decoders;
|
||||
item->encoders = encoders;
|
||||
item->platformApi = "videotoolbox";
|
||||
item->platformApi = "VideoToolbox";
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
@@ -324,7 +324,7 @@ static const char* ffDetectCodecByVa(FFlist* result, bool* initialized) {
|
||||
ffCodecFillGpuName(dev, path, &item->gpu);
|
||||
item->decoders = decoderTypes;
|
||||
item->encoders = encoderTypes;
|
||||
item->platformApi = "vaapi";
|
||||
item->platformApi = "VA-API";
|
||||
}
|
||||
|
||||
ffvaTerminate(display);
|
||||
@@ -523,7 +523,7 @@ static const char* ffDetectCodecByVdpau(FFlist* result) {
|
||||
}
|
||||
item->decoders = decoderTypes;
|
||||
item->encoders = FF_CODEC_TYPE_NONE;
|
||||
item->platformApi = "vdpau";
|
||||
item->platformApi = "VDPAU";
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -251,7 +251,7 @@ const char* ffDetectCodecVulkan(FFlist* result /*list of FFCodecResult*/) {
|
||||
ffStrbufInitS(&item->gpu, properties.deviceName);
|
||||
item->decoders = decoders;
|
||||
item->encoders = encoders;
|
||||
item->platformApi = "vulkan_video";
|
||||
item->platformApi = "Vulkan Video";
|
||||
FF_DEBUG("Added Vulkan codec result for '%s': decoders=%u encoders=%u", properties.deviceName, (unsigned) decoders, (unsigned) encoders);
|
||||
}
|
||||
|
||||
|
||||
@@ -412,7 +412,7 @@ const char* detectD3d11va(FFlist* result /*list of FFCodecResult*/, IDXGIFactory
|
||||
ffStrbufInitWS(&gpuResult->gpu, desc.Description);
|
||||
gpuResult->decoders = decoders;
|
||||
gpuResult->encoders = encoders;
|
||||
gpuResult->platformApi = "d3d11va-mft";
|
||||
gpuResult->platformApi = "D3D11VA+MFT";
|
||||
});
|
||||
|
||||
return nullptr;
|
||||
@@ -500,7 +500,7 @@ const char* detectD3d12va(FFlist* result /*list of FFCodecResult*/, IDXGIFactory
|
||||
ffStrbufInitWS(&gpuResult->gpu, desc.Description);
|
||||
gpuResult->decoders = decoders;
|
||||
gpuResult->encoders = encoders;
|
||||
gpuResult->platformApi = "d3d12va";
|
||||
gpuResult->platformApi = "D3D12VA";
|
||||
});
|
||||
|
||||
if (result->length == resultLengthBefore) {
|
||||
|
||||
Reference in New Issue
Block a user