diff options
Diffstat (limited to 'src/base/QXmppRtpChannel.cpp')
| -rw-r--r-- | src/base/QXmppRtpChannel.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/base/QXmppRtpChannel.cpp b/src/base/QXmppRtpChannel.cpp index 788e9a57..ab69e3ba 100644 --- a/src/base/QXmppRtpChannel.cpp +++ b/src/base/QXmppRtpChannel.cpp @@ -307,9 +307,7 @@ QXmppCodec *QXmppRtpAudioChannelPrivate::codecForPayloadType(const QXmppJinglePa return 0; } -/// Creates a new RTP audio channel. -/// -/// \param parent +/// Constructs a new RTP audio channel with the given \a parent. QXmppRtpAudioChannel::QXmppRtpAudioChannel(QObject *parent) : QIODevice(parent) @@ -490,6 +488,8 @@ bool QXmppRtpAudioChannel::isSequential() const return true; } +/// Returns the mode in which the channel has been opened. + QIODevice::OpenMode QXmppRtpAudioChannel::openMode() const { return QIODevice::openMode(); @@ -858,6 +858,8 @@ QXmppRtpVideoChannelPrivate::QXmppRtpVideoChannelPrivate() outgoingSsrc = qrand(); } +/// Constructs a new RTP video channel with the given \a parent. + QXmppRtpVideoChannel::QXmppRtpVideoChannel(QObject *parent) : QXmppLoggable(parent) { @@ -952,6 +954,8 @@ void QXmppRtpVideoChannel::setEncoderFormat(const QXmppVideoFormat &format) d->outgoingFormat = format; } +/// Returns the mode in which the channel has been opened. + QIODevice::OpenMode QXmppRtpVideoChannel::openMode() const { QIODevice::OpenMode mode = QIODevice::NotOpen; @@ -1013,6 +1017,8 @@ void QXmppRtpVideoChannel::payloadTypesChanged() } } +/// Decodes buffered RTP packets and returns a list of video frames. + QList<QXmppVideoFrame> QXmppRtpVideoChannel::readFrames() { const QList<QXmppVideoFrame> frames = d->frames; @@ -1020,6 +1026,8 @@ QList<QXmppVideoFrame> QXmppRtpVideoChannel::readFrames() return frames; } +/// Encodes a video \a frame and sends RTP packets. + void QXmppRtpVideoChannel::writeFrame(const QXmppVideoFrame &frame) { if (!d->encoder) { |
