4#ifdef QGC_UNITTEST_BUILD
43#ifdef QGC_UNITTEST_BUILD
48 GpuBinPreference gpuBin{};
50 void* dmaBufDisplay =
nullptr;
55class ScopedSinkEnvironmentForTest
58 explicit ScopedSinkEnvironmentForTest(
const SinkEnvironment& environment);
59 ~ScopedSinkEnvironmentForTest();
60 ScopedSinkEnvironmentForTest(
const ScopedSinkEnvironmentForTest&) =
delete;
61 ScopedSinkEnvironmentForTest& operator=(
const ScopedSinkEnvironmentForTest&) =
delete;
64 std::optional<SinkEnvironment> _previous;
68std::optional<SinkEnvironment> sinkEnvironmentForTest();
GstVideoSink that pushes decoded frames into a Qt QVideoSink; sole sink in qgcvideosinkbin....
std::string buildSinkCaps(const SinkCapsPolicy &policy)
bool d3d11OpensD3D12() noexcept
Everything qgcqvideosink's caps depend on.
bool d3d11OpensD3D12
Qt's Direct3D 11 device opens a Direct3D 12 device's resources (HwBuffers::d3d11OpensD3D12()).
GpuBinMode gpuBin
qgcvideosinkbin's GPU variant in front of the sink; value-initialized, Passthrough (a standalone sink...
bool squarePixels
Ask for square pixels, in every kind of memory. The bin's converter scales system memory to them.
friend bool operator==(const SinkCapsPolicy &, const SinkCapsPolicy &)=default