diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-07-21 18:04:02 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-07-21 18:04:02 +0200 |
| commit | 255c1aabcd8d4e881f06ac55eadfc20274936df0 (patch) | |
| tree | ebfa868b619610566ae335d713df9c4487ecc355 /src/base/QXmppRtpChannel.cpp | |
| parent | 9935bb73743760a8cb3526f9c608f03c733c6191 (diff) | |
| download | qxmpp-255c1aabcd8d4e881f06ac55eadfc20274936df0.tar.gz | |
documentation fixes
Diffstat (limited to 'src/base/QXmppRtpChannel.cpp')
| -rw-r--r-- | src/base/QXmppRtpChannel.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/base/QXmppRtpChannel.cpp b/src/base/QXmppRtpChannel.cpp index dcea48e2..93d38b97 100644 --- a/src/base/QXmppRtpChannel.cpp +++ b/src/base/QXmppRtpChannel.cpp @@ -367,15 +367,13 @@ QXmppRtpAudioChannel::~QXmppRtpAudioChannel() } /// Returns the number of bytes that are available for reading. -/// qint64 QXmppRtpAudioChannel::bytesAvailable() const { return QIODevice::bytesAvailable() + d->incomingBuffer.size(); } -/// Closes the RTP channel. -/// +/// Closes the RTP audio channel. void QXmppRtpAudioChannel::close() { @@ -906,8 +904,7 @@ QXmppRtpVideoChannel::~QXmppRtpVideoChannel() delete d; } -/// Closes the RTP channel. -/// +/// Closes the RTP video channel. void QXmppRtpVideoChannel::close() { @@ -934,6 +931,8 @@ void QXmppRtpVideoChannel::datagramReceived(const QByteArray &ba) d->frames << decoder->handlePacket(packet); } +/// Returns the video format used by the encoder. + QXmppVideoFormat QXmppRtpVideoChannel::decoderFormat() const { if (d->decoders.isEmpty()) @@ -942,11 +941,15 @@ QXmppVideoFormat QXmppRtpVideoChannel::decoderFormat() const return d->decoders.value(key)->format(); } +/// Returns the video format used by the encoder. + QXmppVideoFormat QXmppRtpVideoChannel::encoderFormat() const { return d->outgoingFormat; } +/// Sets the video format used by the encoder. + void QXmppRtpVideoChannel::setEncoderFormat(const QXmppVideoFormat &format) { if (d->encoder && !d->encoder->setFormat(format)) |
