From 78303d76882be5ff31e4798893e19cd8c9a59c43 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 10 May 2012 09:47:45 +0200 Subject: fix some doc warnings --- src/base/QXmppRtpChannel.cpp | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'src/base/QXmppRtpChannel.cpp') 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; -- cgit v1.2.3