diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-05-10 09:47:45 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-05-10 09:47:45 +0200 |
| commit | 78303d76882be5ff31e4798893e19cd8c9a59c43 (patch) | |
| tree | 3d3df577a16a0685441bf1f48a72ee0f0fd84d11 /src/base/QXmppRtpChannel.cpp | |
| parent | 02d0a236d2c786096f073494d6748bd90bae93a9 (diff) | |
| download | qxmpp-78303d76882be5ff31e4798893e19cd8c9a59c43.tar.gz | |
fix some doc warnings
Diffstat (limited to 'src/base/QXmppRtpChannel.cpp')
| -rw-r--r-- | src/base/QXmppRtpChannel.cpp | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/src/base/QXmppRtpChannel.cpp b/src/base/QXmppRtpChannel.cpp index 190a414b..788e9a57 100644 --- a/src/base/QXmppRtpChannel.cpp +++ b/src/base/QXmppRtpChannel.cpp @@ -767,32 +767,36 @@ QXmppVideoFrame::QXmppVideoFrame(int bytes, const QSize &size, int bytesPerLine, m_data.resize(bytes); } +/// Returns a pointer to the start of the frame data buffer. + uchar *QXmppVideoFrame::bits() { return (uchar*)m_data.data(); } +/// Returns a pointer to the start of the frame data buffer. + const uchar *QXmppVideoFrame::bits() const { return (const uchar*)m_data.constData(); } -/** Returns the number of bytes in a scan line. - */ +/// Returns the number of bytes in a scan line. + int QXmppVideoFrame::bytesPerLine() const { return m_bytesPerLine; } -/** Returns the height of a video frame. - */ +/// Returns the height of a video frame. + int QXmppVideoFrame::height() const { return m_height; } -/** Returns true if the frame is valid. - */ +/// Returns true if the frame is valid. + bool QXmppVideoFrame::isValid() const { return m_pixelFormat != Format_Invalid && @@ -800,29 +804,29 @@ bool QXmppVideoFrame::isValid() const m_mappedBytes > 0; } -/** Returns the number of bytes occupied by the mapped frame data. - */ +/// Returns the number of bytes occupied by the mapped frame data. + int QXmppVideoFrame::mappedBytes() const { return m_mappedBytes; } -/** Returns the color format of a video frame. - */ +/// Returns the color format of a video frame. + QXmppVideoFrame::PixelFormat QXmppVideoFrame::pixelFormat() const { return m_pixelFormat; } -/** Returns the size of a video frame. - */ +/// Returns the size of a video frame. + QSize QXmppVideoFrame::size() const { return QSize(m_width, m_height); } -/** Returns the width of a video frame. - */ +/// Returns the width of a video frame. + int QXmppVideoFrame::width() const { return m_width; |
