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
qwindowsasfpicture_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 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 QWINDOWSASFPICTURE_P_H
5#define QWINDOWSASFPICTURE_P_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 <QtGui/qimage.h>
19
20#include <wtypes.h>
21
22#include <mfapi.h>
23#include <mfidl.h>
24
25QT_BEGIN_NAMESPACE
26
27// MinGW's mfidl.h declares ASF_FLAT_PICTURE without the #pragma pack(1) that the
28// Windows SDK applies, making sizeof() 8 there instead of 5. Use our own packed
29// definition on both toolchains, so there is a single code path guarded by the
30// static_assert below.
31#pragma pack(push, 1)
32struct QMM_ASF_FLAT_PICTURE
33{
34 BYTE bPictureType;
35 DWORD dwDataLen;
36};
37#pragma pack(pop)
38static_assert(sizeof(QMM_ASF_FLAT_PICTURE) == 5);
39static_assert(alignof(QMM_ASF_FLAT_PICTURE) == 1);
40
41QImage imageFromAsfFlatPicture(const BLOB &blob);
42
43QT_END_NAMESPACE
44
45#endif
static QMediaMetaData fromNative(IMFMediaSource *mediaSource)
static void toNative(const QMediaMetaData &metaData, IPropertyStore *content)
static QMediaMetaData fromNative(IMFMetadata *metadata)
static QVariant metaDataValue(IPropertyStore *content, const PROPERTYKEY &key)
static const PROPERTYKEY PROP_KEY_NULL
static void setUInt32Property(IPropertyStore *content, REFPROPERTYKEY key, quint32 value)
static void setUInt64Property(IPropertyStore *content, REFPROPERTYKEY key, quint64 value)
static QVariant convertValue(const PROPVARIANT &var)
static void setFileTimeProperty(IPropertyStore *content, REFPROPERTYKEY key, const FILETIME *ft)
static REFPROPERTYKEY propertyKeyForMetaDataKey(QMediaMetaData::Key key)
static void setStringProperty(IPropertyStore *content, REFPROPERTYKEY key, const QString &value)
QImage imageFromAsfFlatPicture(const BLOB &blob)