Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QVideoFrame class represents a single frame of displayable data More...
#include <QVideoFrame>
The QVideoFrame class represents a single frame of displayable data
Pixel formats (please see http://www.fourcc.org/yuv.php for formats description)
Constant | Value |
---|---|
QVideoFrame::Format_Invalid | 0 |
QVideoFrame::Format_ARGB32 | 1 |
QVideoFrame::Format_RGB32 | 2 |
QVideoFrame::Format_RGB24 | 3 |
QVideoFrame::Format_RGB565 | 4 |
QVideoFrame::Format_BGRA32 | 5 |
QVideoFrame::Format_BGR32 | 6 |
QVideoFrame::Format_BGR24 | 7 |
QVideoFrame::Format_BGR565 | 8 |
QVideoFrame::Format_YUV444 | 9 |
QVideoFrame::Format_YUV420P | 10 |
QVideoFrame::Format_YV12 | 11 |
QVideoFrame::Format_UYVY | 12 |
QVideoFrame::Format_YUYV | 13 |
QVideoFrame::Format_Y8 | 14 |
Contructs an empty QVideoFrame
Copy contructor. Create's a video frame from other Data is implicitly shared
Contructs an empty video frame specific with pixel format format and frame size with size
Constructs a video frame with the given width, height and format, that uses an existing memory buffer, data. The width and height must be specified in pixels and is given by size, data must be 32-bit aligned, and each plane and scanline of data in the image must also be 32-bit aligned.
The buffer must remain valid throughout the life of the QVideoFrame and all copies that have not been modified or otherwise detached from the original buffer. The QVideoFrame does not delete the buffer at destruction. The helper parameter provides thread safety.
Constructs a video frame with the given width, height and format, that uses an existing memory buffer, data. The width and height must be specified in pixels given by size, data must be 32-bit aligned, and each plane and scanline of data in the image must also be 32-bit aligned.
The buffer must remain valid throughout the life of the QVideoFrame and all copies that have not been modified or otherwise detached from the original buffer. The QVideoFrame does not delete the buffer at destruction. The helper parameter provides thread safety.
Create Video frame for interlaced formats with one plane, like Format_RGB24 or Format_YUYV.
The pixel format is specified with format, the frame has image size size, planeData contains the raw image data, and the image stride is given by bytesPerLine. The buffer must remain valid throughout the life of the QVideoFrame and all copies that have not been modified or otherwise detached from the original buffer. The QVideoFrame does not delete the buffer at destruction. The helper parameter provides thread safety.
Create Video frame for interlaced formats with one plane, like Format_RGB24 or Format_YUYV.
The pixel format is specified with format, the frame has image size size, planeData contains the raw image data, and the image stride is given by bytesPerLine.
The buffer must remain valid throughout the life of the QVideoFrame and all copies that have not been modified or otherwise detached from the original buffer. The QVideoFrame does not delete the buffer at destruction. The helper parameter provides thread safety.
Create Video frame for planar formats (with planes separated), like Format_YUV420P or Format_YUV422P.
The pixel format is specified with format, the frame has image size size, planeData1, planeData2, planeData3 contain the raw image data, and the their respective strides are given by bytesPerLine1, bytesPerLine2, bytesPerLine3.
The buffers must remain valid throughout the life of the QVideoFrame and all copies that have not been modified or otherwise detached from the original buffer. The QVideoFrame does not delete the buffers at destruction. The helper parameter provides thread safety.
Create Video frame for planar formats (with planes separated), like Format_YUV420P or Format_YUV422P.
The pixel format is specified with format, the frame has image size size, planeData1, planeData2, planeData3 contain the raw image data, and the their respective image strides are given by bytesPerLine1, bytesPerLine2, bytesPerLine3.
The buffers must remain valid throughout the life of the QVideoFrame and all copies that have not been modified or otherwise detached from the original buffer. The QVideoFrame does not delete the buffers at destruction. The helper parameter provides thread safety.
Create Video frame from QImage img,
Does nothing
Returns the frame aspect ratio, which is equal to width/height or previously assigned with setAspectRatio() custom value.
See also setAspectRatio() and hasCustomAspectRatio().
Returns the number of bytes per scanline of plane planeNumber.
Returns the color depth of a data plane in planeNumber in the particualr pixel format format
Returns a constant pointer to the pixel data given by plane number planeNumber
Returns the current format of the video frame
Returns true if custom aspect ratio was set with setAspectRatio().
See also aspectRatio() and setAspectRatio().
Returns true if the frame is valid, false otherwise
Returns true if the pixel format format is planar, false otherwise
Returns a pointer to the first pixel index by planeNumber. This function performs a deep copy of the shared pixel data, thus ensuring that this QVideoFrame is the only one using the current return value.
This is an overloaded member function, provided for convenience.
Returns a pointer to the pixel data given by plane number planeNumber
Returns the plane number planeNumber plane size in pixels. In most cases it equals to the image size, except of U and V planes of planar YUV formats.
Returns the number fo planes for the pixel format format
Set the frame aspect ratio to customRatio, if the actual frame proportion differs from width/height.
See also aspectRatio() and hasCustomAspectRatio().
Returns the current size of the video frame
Do a copy of the frame other, data is implicitly shared
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |