#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 |
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.
|
friend |
| bool FrameGeometry::flipHorizontally = false |
Definition at line 44 of file GstQgcFrameMap.h.
Referenced by applyFlips().
| bool FrameGeometry::flipVertically = false |
Definition at line 45 of file GstQgcFrameMap.h.
Referenced by applyFlips().
| QSize FrameGeometry::frameSize |
Definition at line 41 of file GstQgcFrameMap.h.
Referenced by frameGeometry(), and withFrameGeometry().
| QRect FrameGeometry::picture |
Definition at line 42 of file GstQgcFrameMap.h.
Referenced by frameGeometry(), and withFrameGeometry().
| QSize FrameGeometry::pictureSize |
Definition at line 43 of file GstQgcFrameMap.h.
Referenced by frameGeometry().