QVideoSink Class
QVideoSink クラスは、ビデオ・データの汎用シンクを表します。詳細...
ヘッダー | #include <QVideoSink> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Multimedia) target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
qmake: | QT += multimedia |
継承: | QObject |
プロパティ
- subtitleText : QString
- videoSize : const QSize
パブリック機能
QVideoSink(QObject *parent = nullptr) | |
virtual | ~QVideoSink() override |
QRhi * | rhi() const |
void | setSubtitleText(const QString &subtitle) |
void | setVideoFrame(const QVideoFrame &frame) |
QString | subtitleText() const |
QVideoFrame | videoFrame() const |
QSize | videoSize() const |
シグナル
void | subtitleTextChanged(const QString &subtitleText) const |
void | videoFrameChanged(const QVideoFrame &frame) const |
void | videoSizeChanged() |
詳細説明
QVideoSink クラスは、Qt Multimedia からフレームごとにビデオ・データを取得するために使用できます。
QVideoSinkは、videoFrameChanged ()シグナルを通して、個々のビデオ・フレームをアプリケーション開発者に提供します。
QVideoSink は、 () シグナルを通じて、個々のビデオ・フレームをアプリケーション開発者に提供します。その後、ビデオ・フレームを使用して、それらのフレームのデータを読み出し、さらに処理することができます。QPainter を使用する場合、QVideoSink の paint() メソッドを使用してQVideoFrame を描画することができます。
QVideoFrame オブジェクトは、かなりの量のメモリやシステム・リソースを消費する可能性があるため、アプリケーションで必要な時間以上保持するべきではありません。
QMediaPlayer およびQMediaCaptureSessionも参照してください 。
プロパティ・ドキュメント
subtitleText : QString
現在の字幕テキストを返します。
アクセス関数
QString | subtitleText() const |
void | setSubtitleText(const QString &subtitle) |
通知シグナル
void | subtitleTextChanged(const QString &subtitleText) const |
[read-only]
videoSize : const QSize
現在再生されている動画のサイズを返す。再生中の動画がない場合、このメソッドは無効なサイズを返します。
アクセス関数
QSize | videoSize() const |
Notifier シグナル:
void | videoSizeChanged() |
メンバ関数ドキュメント
QVideoSink::QVideoSink(QObject *parent = nullptr)
新しい QVideoSink オブジェクトをparent で構築する。
[override virtual noexcept]
QVideoSink::~QVideoSink()
オブジェクトを破壊する。
QRhi *QVideoSink::rhi() const
ビデオフレーム内のテクスチャデータを作成するために使用されているQRhi インスタンスを返します。
void QVideoSink::setSubtitleText(const QString &subtitle)
現在のsubtitle テキストを設定する。
注: プロパティsubtitleText のセッター関数。
subtitleText()も参照してください 。
void QVideoSink::setVideoFrame(const QVideoFrame &frame)
現在のビデオを設定するframe 。
videoFrame()も参照 。
QVideoFrame QVideoSink::videoFrame() const
現在のビデオフレームを返す。
setVideoFrame()も参照 。
[signal]
void QVideoSink::videoFrameChanged(const QVideoFrame &frame) const
ビデオframe 。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.