Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
mfdecodersourcereadercallback_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef MFDECODERSOURCEREADERCALLBACK_H
5#define MFDECODERSOURCEREADERCALLBACK_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qobject.h>
19
20#include <QtCore/private/qcomobject_p.h>
21#include <QtCore/private/qcomptr_p.h>
22
23#include <mfidl.h>
24#include <mfreadwrite.h>
25
27
28class MFSourceReaderCallback : public QObject, public QComObject<IMFSourceReaderCallback>
29{
30 Q_OBJECT
31public:
32 STDMETHODIMP OnReadSample(HRESULT hrStatus, DWORD dwStreamIndex, DWORD dwStreamFlags,
33 LONGLONG llTimestamp, IMFSample *pSample) override;
34 STDMETHODIMP OnFlush(DWORD) override { return S_OK; }
35 STDMETHODIMP OnEvent(DWORD, IMFMediaEvent *) override { return S_OK; }
36
37Q_SIGNALS:
38 void newSample(ComPtr<IMFSample>);
39 void finished();
40};
41
42QT_END_NAMESPACE
43
44#endif // MFDECODERSOURCEREADERCALLBACK_H
bool canReadQrc() const override
void setAudioFormat(const QAudioFormat &format) override
bool bufferAvailable() const override
QUrl source() const override
void setSourceDevice(QIODevice *device) override
QAudioFormat audioFormat() const override
QAudioBuffer read() override
void setSource(const QUrl &fileName) override
QIODevice * sourceDevice() const override
q23::expected< QPlatformVideoSink *, QString > createVideoSink(QVideoSink *sink) override
QPlatformMediaFormatInfo * createFormatInfo() override
q23::expected< QPlatformAudioDecoder *, QString > createAudioDecoder(QAudioDecoder *decoder) override
q23::expected< QPlatformCamera *, QString > createCamera(QCamera *camera) override
q23::expected< QPlatformImageCapture *, QString > createImageCapture(QImageCapture *imageCapture) override
QPlatformVideoDevices * createVideoDevices() override
q23::expected< QPlatformMediaRecorder *, QString > createRecorder(QMediaRecorder *recorder) override
q23::expected< QPlatformMediaPlayer *, QString > createPlayer(QMediaPlayer *parent) override
q23::expected< QPlatformMediaCaptureSession *, QString > createCaptureSession() override
Combined button and popup list for selecting options.