20#if defined(QGC_GST_BIN_USE_GLUPLOAD)
26 capsStr =
"video/x-raw(memory:GLMemory), texture-target=2D, format={ BGRA, RGBA }";
28#if defined(QGC_HAS_GST_DMABUF_GPU_PATH)
29#if GST_CHECK_VERSION(1, 24, 0)
41 capsStr +=
"video/x-raw(memory:DMABuf), format=";
45#if defined(QGC_HAS_GST_D3D11_GPU_PATH)
46 capsStr +=
"video/x-raw(memory:D3D11Memory), format=";
50#if defined(QGC_HAS_GST_D3D12_GPU_PATH)
51 capsStr +=
"video/x-raw(memory:D3D12Memory), format=";
55#if defined(QGC_HAS_GST_GLMEMORY_GPU_PATH) && !defined(QGC_GST_BIN_USE_DMABUF)
56 capsStr +=
"video/x-raw(memory:GLMemory), format=";
60#if defined(QGC_HAS_GST_AHARDWAREBUFFER_GPU_PATH)
61 capsStr +=
"video/x-raw(memory:AHardwareBuffer), format=";
65 capsStr +=
"video/x-raw, format=";
std::string buildLinearDmaDrmCaps(const char *)
std::string buildSupportedDmaDrmCaps(const char *)
std::string advertisedFormatList()
"{ NV12, NV21, ... }" — the advertised format list for a caps string. Built once at caps setup.
std::string buildGpuCapsString()
std::string buildCpuCapsString()
const HwBufferEnvConfig & hwBufferEnvConfig() noexcept
Lazily parses + logs the toggle config on first call; thread-safe via static-init guarantees.