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

#include <GstQgcFrameMap.h>

Public Attributes

QSize frameSize
QRect picture
QSize pictureSize
bool flipHorizontally = false
bool flipVertically = false

Friends

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

Detailed Description

The frame a buffer holds and the picture in it, as upstream's sinks read them (glimagesink, waylandsink): the frame is as large as the buffer's GstVideoMeta, which a decoder pads beyond the caps (1088 rows for 1080) or leaves uncropped, and the picture is its GstVideoCropMeta, else the caps' size at the frame's origin. A GstVideoAffineTransformationMeta of scales, translations and flips, as Android's amcvideodec attaches for its SurfaceTexture's crop and orientation, narrows the picture to the part it shows and tells which way to flip it. That part is the whole picture, squeezed with the decoder's padding into a texture of the caps' size (1080 rows and 8 of padding into 1080, of which 1072 show), so the picture keeps the size it had: pictureSize.

Definition at line 39 of file GstQgcFrameMap.h.

◆ operator==

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

Member Data Documentation

◆ flipHorizontally

bool FrameGeometry::flipHorizontally = false

Definition at line 44 of file GstQgcFrameMap.h.

Referenced by applyFlips().

◆ flipVertically

bool FrameGeometry::flipVertically = false

Definition at line 45 of file GstQgcFrameMap.h.

Referenced by applyFlips().

◆ frameSize

QSize FrameGeometry::frameSize

Definition at line 41 of file GstQgcFrameMap.h.

Referenced by frameGeometry(), and withFrameGeometry().

◆ picture

QRect FrameGeometry::picture

Definition at line 42 of file GstQgcFrameMap.h.

Referenced by frameGeometry(), and withFrameGeometry().

◆ pictureSize

QSize FrameGeometry::pictureSize

Definition at line 43 of file GstQgcFrameMap.h.

Referenced by frameGeometry().


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