QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstHw Namespace Reference

Classes

class  GstHwImportCache
 
struct  MapDiagnostics
 One-shot warning flags per failure cause; paths with extra causes (D3D, IOSurface) derive and add members. More...
 

Functions

bool dmaDrmAwareVideoInfo (GstCaps *caps, GstVideoInfo *info)
 
std::string buildSupportedDmaDrmCaps (const char *)
 
std::string buildLinearDmaDrmCaps (const char *)
 

Variables

constexpr int kMaxPlanes = 4
 Matches GST_VIDEO_MAX_PLANES (gst-video pins it at 4); single source of truth for every per-platform buffer.
 

Function Documentation

◆ buildLinearDmaDrmCaps()

std::string GstHw::buildLinearDmaDrmCaps ( const char *  gstFormatList)

LINEAR-modifier DMA_DRM caps fragment for gstFormatList (the kFormats brace list), as a forced fallback when the driver mis-reports modifiers. Maps each GStreamer format to its DRM fourcc (bare = LINEAR). "" if none map.

Definition at line 193 of file GstDmaDrmCaps.cc.

Referenced by GstQgc::buildGpuCapsString().

◆ buildSupportedDmaDrmCaps()

std::string GstHw::buildSupportedDmaDrmCaps ( const char *  gstFormatList)

Best-effort DMA_DRM caps string built from the GPU's EGL-reported (format, modifier) pairs intersected with the renderable gstFormatList. Returns a single ready-to-prepend "video/x-raw(memory:DMABuf), format=DMA_DRM, drm-format={ FMT:0xMOD, ... }; " fragment, or "" on ANY failure (no display/ext/results/error). Additive only: callers must keep the existing system catch-all. gstFormatList is the kFormats brace list (e.g. "{ NV12, ... }").

Definition at line 188 of file GstDmaDrmCaps.cc.

Referenced by GstQgc::buildGpuCapsString().

◆ dmaDrmAwareVideoInfo()

bool GstHw::dmaDrmAwareVideoInfo ( GstCaps *  caps,
GstVideoInfo *  info 
)

Parse caps into info, handling the GStreamer 1.24+ DMA_DRM format that plain gst_video_info_from_caps cannot decode. False on parse failure or null args.

Definition at line 28 of file GstDmaDrmCaps.cc.

Referenced by gst_qgc_q_video_sink_set_caps(), and GstQgc::populateAllocationQuery().

Variable Documentation

◆ kMaxPlanes

constexpr int GstHw::kMaxPlanes = 4
constexpr

Matches GST_VIDEO_MAX_PLANES (gst-video pins it at 4); single source of truth for every per-platform buffer.

Definition at line 16 of file GstHwVideoBuffer.h.

Referenced by GstHwVideoBuffer::validatePlanes().