QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GStreamer::RankTraits Struct Reference

The platform rules planRanks() adds to an option. More...

#include <GStreamerDecoderRankPlan.h>

Public Attributes

bool preferZeroCopyDecoders = false
std::optional< D3DApi > rhiD3DApi
bool d3d11OpensD3D12 = false
qint64 rhiAdapterLuid = 0
bool softwareRendering = false

Friends

bool operator== (const RankTraits &, const RankTraits &)=default

Detailed Description

The platform rules planRanks() adds to an option.

Definition at line 35 of file GStreamerDecoderRankPlan.h.

◆ operator==

bool operator== ( const RankTraits & ,
const RankTraits &  )
friend

Member Data Documentation

◆ d3d11OpensD3D12

bool GStreamer::RankTraits::d3d11OpensD3D12 = false

Windows, Direct3D 11: Qt's device opens a Direct3D 12 device's resources (HwBuffers::d3d11OpensD3D12()). The d3d12 decoders are then the ones preferred, as GStreamer ranks them: they decode on a device of their own, not on the one Qt draws with. The d3d11 ones keep GStreamer's rank, behind them.

Definition at line 47 of file GStreamerDecoderRankPlan.h.

Referenced by GStreamer::planRanks().

◆ preferZeroCopyDecoders

bool GStreamer::RankTraits::preferZeroCopyDecoders = false

Linux: for the default and hardware options, rank the va and v4l2sl decoders, which output DMABuf, above every other. The default option also demotes the legacy vaapi decoders, whose memory the GPU paths can't import; the hardware option keeps them below as a fallback.

Definition at line 40 of file GStreamerDecoderRankPlan.h.

Referenced by GStreamer::planRanks().

◆ rhiAdapterLuid

qint64 GStreamer::RankTraits::rhiAdapterLuid = 0

Windows: the adapter Qt renders on; 0 while it isn't known. A D3D decoder on another adapter ranks below the software decoders: its frames reach Qt through the CPU too, and from another GPU.

Definition at line 50 of file GStreamerDecoderRankPlan.h.

Referenced by GStreamer::planRanks().

◆ rhiD3DApi

std::optional<D3DApi> GStreamer::RankTraits::rhiD3DApi

Windows: the Direct3D API Qt renders with. After any option, the D3D decoders whose frames it can't sample are demoted; for the default and hardware options, those it prefers rank above every other.

Definition at line 43 of file GStreamerDecoderRankPlan.h.

Referenced by GStreamer::planRanks().

◆ softwareRendering

bool GStreamer::RankTraits::softwareRendering = false

The user asked for software rendering (–swrast, the GPU Safe Mode shortcut), to keep off a GPU or driver that misbehaves. Qt samples no decoder's GPU frame then: with the default option every hardware decoder ranks below the software decoders. A decoder option the user chose stays as it is.

Definition at line 54 of file GStreamerDecoderRankPlan.h.

Referenced by GStreamer::planRanks().


The documentation for this struct was generated from the following file: