18 const QString& szPrefix = QString());
20 const QString GetVideoPath()
const;
21 int SetVideoPath(
const QString& szPath);
28 const QString GetVideoFile(
bool bAuto =
false);
29 int SetVideoFile(
const QString& szFile);
31 QString GetImageFile(
bool bAuto =
false);
32 void SetImageFile(
const QString &newImageFile);
34 QString GetImagePath()
const;
35 void SetImagePath(
const QString &newImagePath);
37#if HAVE_QT6_MULTIMEDIA
38 const QMediaFormat::FileFormat GetFileFormat()
const;
39 int SetFileFormat(
const QMediaFormat::FileFormat &f);
41 const QMediaFormat::VideoCodec GetVideoCodec()
const;
42 int SetVideoCodec(QMediaFormat::VideoCodec);
44 const QMediaFormat::AudioCodec GetAudioCodec()
const;
45 int SetAudioCodec(QMediaFormat::AudioCodec);
47 QMediaRecorder::Quality GetQuality()
const;
48 void SetQuality(
const QMediaRecorder::Quality &newQuality);
49 QMediaRecorder::EncodingMode GetEncodingMode()
const;
50 void SetEncodingMode(
const QMediaRecorder::EncodingMode &newEncodingMode);
53 QSize GetVideoResolution();
54 void SetVideoResolution(QSize size);
55 int GetVideoBitRate()
const;
56 void SetVideoBitRate(
int bitRate);
57 qreal GetVideoFrameRate()
const;
58 void SetVideoFrameRate(qreal newVideoFrameRate);
59 int GetAudioBitRate();
60 void SetAudioBitRate(
int bitRate);
61 int GetAudioSampleRate()
const;
62 void SetAudioSampleRate(
int newAudioSampleRate);
63 int GetAudioChannelCount();
64 void SetAudioChannelCount(
int count);
68 bool GetEnableVideo()
const;
69 void SetEnableVideo(
bool newEnableVideo);
70 bool GetEnableAudio()
const;
71 void SetEnableAudio(
bool newEnableAudio);
80 CParameterRecord::ENDACTION GetEndAction()
const;
81 void SetEndAction(ENDACTION newEndAction);
84 void sigQualityChanged();
85 void sigEncodingModeChanged();
86 void sigImageFileChanged();
87 void sigEnableVideoChanged();
88 void sigEnableAudioChanged();
89 void sigEndActionChanged();
91 void ImagePathChanged();
96 QString m_szVideoFile;
97 QString m_szVideoPath;
98 QString m_szImageFile;
99 QString m_szImagePath;
101#if HAVE_QT6_MULTIMEDIA
102 QMediaFormat::FileFormat m_FileFormat;
103 QMediaFormat::VideoCodec m_VideoCodec;
104 QMediaFormat::AudioCodec m_AudioCodec;
106 QMediaRecorder::Quality m_Quality;
107 QMediaRecorder::EncodingMode m_EncodingMode;
110 QSize m_VideoResolution;
112 qreal m_VideoFrameRate;
114 int m_AudioSampleRate;
115 int m_AudioChannelCount;
117 ENDACTION m_EndAction;
120 virtual int OnLoad(QSettings &set)
override;
121 virtual int OnSave(QSettings &set)
override;