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.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
5
7
8STDMETHODIMP 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 emit newSample(ComPtr<IMFSample>{ pSample });
17 } else if ((dwStreamFlags & MF_SOURCE_READERF_ENDOFSTREAM) == MF_SOURCE_READERF_ENDOFSTREAM) {
18 emit finished();
19 }
20 return S_OK;
21}
22
23QT_END_NAMESPACE
24
25#include "moc_mfdecodersourcereadercallback_p.cpp"