Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
mfdecodersourcereadercallback.cpp
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
#
include
"mfdecodersourcereadercallback_p.h"
5
6
QT_BEGIN_NAMESPACE
7
8
STDMETHODIMP MFSourceReaderCallback::OnReadSample(HRESULT hrStatus, DWORD dwStreamIndex,
9
DWORD dwStreamFlags, LONGLONG llTimestamp,
10
IMFSample *pSample)
11
{
12
Q_UNUSED(hrStatus);
13
Q_UNUSED(dwStreamIndex);
14
Q_UNUSED(llTimestamp);
15
if
(pSample) {
16
Q_EMIT newSample(ComPtr<IMFSample>{ pSample });
17
}
else
if
((dwStreamFlags & MF_SOURCE_READERF_ENDOFSTREAM) == MF_SOURCE_READERF_ENDOFSTREAM) {
18
Q_EMIT finished();
19
}
20
return
S_OK;
21
}
22
23
QT_END_NAMESPACE
24
25
#
include
"moc_mfdecodersourcereadercallback_p.cpp"
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtmultimedia
src
plugins
multimedia
windows
decoder
mfdecodersourcereadercallback.cpp
Generated on
for Qt by
1.18.0