QXmpp  Version:0.4.92
 All Classes Functions Enumerations Enumerator Properties Groups
Public Types | Public Member Functions
QXmppVideoFrame Class Reference

The QXmppVideoFrame class provides a representation of a frame of video data. More...

#include <QXmppRtpChannel.h>

List of all members.

Public Types

enum  PixelFormat {
  Format_Invalid = 0, Format_RGB32 = 3, Format_RGB24 = 4, Format_YUV420P = 18,
  Format_UYVY = 20, Format_YUYV = 21
}

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.

Detailed Description

The QXmppVideoFrame class provides a representation of a frame of video data.

Note:
THIS API IS NOT FINALIZED YET

Constructor & Destructor Documentation

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.

Parameters:
bytes
size
bytesPerLine
format

The documentation for this class was generated from the following files: