Rename a few controls.

The encoder controls could be confused with actual encoding, so make
clear they are just settings.  Also, the end point selector controls
were not named very well.

Change-Id: I27f8bf9c865c5f295abad97c01ef98752af42613
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
Michael Goddard
2012-06-20 16:04:57 +10:00
committed by Qt by Nokia
parent b834fe032f
commit bba28afe55
60 changed files with 247 additions and 247 deletions

View File

@@ -48,7 +48,7 @@
#include <math.h>
QGstreamerAudioEncode::QGstreamerAudioEncode(QObject *parent)
:QAudioEncoderControl(parent)
:QAudioEncoderSettingsControl(parent)
{
QList<QByteArray> codecCandidates;

View File

@@ -42,7 +42,7 @@
#ifndef QGSTREAMERAUDIOENCODE_H
#define QGSTREAMERAUDIOENCODE_H
#include <qaudioencodercontrol.h>
#include <qaudioencodersettingscontrol.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qmap.h>
@@ -56,7 +56,7 @@ QT_BEGIN_NAMESPACE
class QGstreamerCaptureSession;
class QGstreamerAudioEncode : public QAudioEncoderControl
class QGstreamerAudioEncode : public QAudioEncoderSettingsControl
{
Q_OBJECT
public:

View File

@@ -132,19 +132,19 @@ QMediaControl *QGstreamerCaptureService::requestControl(const char *name)
if (!m_captureSession)
return 0;
if (qstrcmp(name,QAudioEndpointSelector_iid) == 0)
if (qstrcmp(name,QAudioEndpointSelectorControl_iid) == 0)
return m_audioInputEndpointSelector;
if (qstrcmp(name,QVideoDeviceControl_iid) == 0)
if (qstrcmp(name,QVideoDeviceSelectorControl_iid) == 0)
return m_videoInputDevice;
if (qstrcmp(name,QMediaRecorderControl_iid) == 0)
return m_captureSession->recorderControl();
if (qstrcmp(name,QAudioEncoderControl_iid) == 0)
if (qstrcmp(name,QAudioEncoderSettingsControl_iid) == 0)
return m_captureSession->audioEncodeControl();
if (qstrcmp(name,QVideoEncoderControl_iid) == 0)
if (qstrcmp(name,QVideoEncoderSettingsControl_iid) == 0)
return m_captureSession->videoEncodeControl();
if (qstrcmp(name,QImageEncoderControl_iid) == 0)

View File

@@ -48,8 +48,8 @@
#include <gst/gst.h>
QT_BEGIN_NAMESPACE
class QAudioEndpointSelector;
class QVideoDeviceControl;
class QAudioEndpointSelectorControl;
class QVideoDeviceSelectorControl;
class QGstreamerCaptureSession;
class QGstreamerCameraControl;
@@ -82,8 +82,8 @@ private:
QGstreamerV4L2Input *m_videoInput;
QGstreamerCaptureMetaDataControl *m_metaDataControl;
QAudioEndpointSelector *m_audioInputEndpointSelector;
QVideoDeviceControl *m_videoInputDevice;
QAudioEndpointSelectorControl *m_audioInputEndpointSelector;
QVideoDeviceSelectorControl *m_videoInputDevice;
QMediaControl *m_videoOutput;

View File

@@ -48,7 +48,7 @@
#include <math.h>
QGstreamerVideoEncode::QGstreamerVideoEncode(QGstreamerCaptureSession *session)
:QVideoEncoderControl(session), m_session(session)
:QVideoEncoderSettingsControl(session), m_session(session)
{
QList<QByteArray> codecCandidates;
codecCandidates << "video/h264" << "video/xvid" << "video/mpeg4" << "video/mpeg1" << "video/mpeg2" << "video/theora";

View File

@@ -42,7 +42,7 @@
#ifndef QGSTREAMERVIDEOENCODE_H
#define QGSTREAMERVIDEOENCODE_H
#include <qvideoencodercontrol.h>
#include <qvideoencodersettingscontrol.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qmap.h>
@@ -54,7 +54,7 @@ QT_BEGIN_NAMESPACE
class QGstreamerCaptureSession;
class QGstreamerVideoEncode : public QVideoEncoderControl
class QGstreamerVideoEncode : public QVideoEncoderSettingsControl
{
Q_OBJECT
public: