|
QXmpp Version: 0.9.3
|
The QXmppVideoFrame class provides a representation of a frame of video data. More...
#include <QXmppRtpChannel.h>
Public Types | |
| enum | PixelFormat { Format_Invalid = 0 , Format_RGB32 = 3 , Format_RGB24 = 4 , Format_YUV420P = 18 , Format_UYVY = 20 , Format_YUYV = 21 } |
| This enum describes a pixel format. More... | |
Public Member Functions | |
| QXmppVideoFrame () | |
| QXmppVideoFrame (int bytes, const QSize &size, int bytesPerLine, PixelFormat format) | |
| uchar * | bits () |
| Returns a pointer to the start of the frame data buffer. | |
| const uchar * | bits () const |
| Returns a pointer to the start of the frame data buffer. | |
| int | bytesPerLine () const |
| Returns the number of bytes in a scan line. | |
| int | height () const |
| Returns the height of a video frame. | |
| bool | isValid () const |
| Returns true if the frame is valid. | |
| int | mappedBytes () const |
| Returns the number of bytes occupied by the mapped frame data. | |
| PixelFormat | pixelFormat () const |
| Returns the color format of a video frame. | |
| QSize | size () const |
| Returns the size of a video frame. | |
| int | width () const |
| Returns the width of a video frame. | |
The QXmppVideoFrame class provides a representation of a frame of video data.
This enum describes a pixel format.
| QXmppVideoFrame::QXmppVideoFrame | ( | ) |
Constructs a null video frame.
| QXmppVideoFrame::QXmppVideoFrame | ( | int | bytes, |
| const QSize & | size, | ||
| int | bytesPerLine, | ||
| PixelFormat | format | ||
| ) |
Constructs a video frame of the given pixel format and size in pixels.
| bytes | |
| size | |
| bytesPerLine | |
| format |