QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
MappedFrame Struct Reference

#include <GstQgcFrameMap.h>

Public Attributes

QVideoFrame frame
HwVideoBufferPath gpuPath = HwVideoBufferPath::None
 None for a CPU frame, and for one that failed to map.
bool demoted = false
 A GPU path was requested for this stream but this frame fell back to CPU.
bool noCpuLayout = false
 Dropped instead of read as linear rows, which would show it scrambled.

Detailed Description

Sample-to-frame result (GPU wins when it can, CPU fallback). mapSampleToFrame() does NOT take the caller's refs on buffer/caps: a GPU frame holds its own GstSample, a zero-copy CPU frame its own buffer ref. A frame no GPU path takes whose layout the CPU can't read (a tiled DMA_DRM modifier) comes back invalid, with noCpuLayout set.

Definition at line 63 of file GstQgcFrameMap.h.

Member Data Documentation

◆ demoted

bool MappedFrame::demoted = false

A GPU path was requested for this stream but this frame fell back to CPU.

Definition at line 67 of file GstQgcFrameMap.h.

Referenced by mapSampleToFrame(), and GstQgc::PathSession::onDelivered().

◆ frame

QVideoFrame MappedFrame::frame

Definition at line 65 of file GstQgcFrameMap.h.

Referenced by gst_qgc_q_video_sink_show_frame(), and mapSampleToFrame().

◆ gpuPath

None for a CPU frame, and for one that failed to map.

Definition at line 66 of file GstQgcFrameMap.h.

Referenced by gst_qgc_q_video_sink_show_frame(), and mapSampleToFrame().

◆ noCpuLayout

bool MappedFrame::noCpuLayout = false

Dropped instead of read as linear rows, which would show it scrambled.

Definition at line 68 of file GstQgcFrameMap.h.

Referenced by mapSampleToFrame(), and GstQgc::PathSession::onMapFailed().


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