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
qwindowsvideodevices.cpp File Reference

(a3e11047b36150b779db697a0923d9450d093bb2)

#include "qwindowsvideodevices_p.h"
#include <QtCore/quuid.h>
#include <QtCore/private/qcomptr_p.h>
#include <QtMultimedia/private/qcameradevice_p.h>
#include <QtMultimedia/private/qcomtaskresource_p.h>
#include <QtMultimedia/private/qwindowsmultimediautils_p.h>
#include <dbt.h>
#include <mfapi.h>
#include <mfidl.h>
#include <mfreadwrite.h>
#include <mferror.h>
#include <ks.h>
Include dependency graph for qwindowsvideodevices.cpp:

Go to the source code of this file.

Namespaces

namespace  QT_BEGIN_NAMESPACE
 Combined button and popup list for selecting options.

Functions

LRESULT QT_WIN_CALLBACK QT_BEGIN_NAMESPACE::deviceNotificationWndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
LPCWSTR QT_BEGIN_NAMESPACE::getWindowsClassName ()
HWND QT_BEGIN_NAMESPACE::createMessageOnlyWindow ()
static std::optional< QCameraFormatcreateCameraFormat (IMFMediaType *mediaFormat)
static QString getString (IMFActivate *device, const IID &id)
static std::optional< QCameraDevicecreateCameraDevice (const QWindowsMediaFoundation &wmf, IMFActivate *device)
static QList< QCameraDevicereadCameraDevices (const QWindowsMediaFoundation &wmf, IMFAttributes *attr)

Variables

static constexpr GUID KSCATEGORY_SENSOR_CAMERA

Function Documentation

◆ createCameraDevice()

std::optional< QCameraDevice > createCameraDevice ( const QWindowsMediaFoundation & wmf,
IMFActivate * device )
static

Definition at line 166 of file qwindowsvideodevices.cpp.

◆ createCameraFormat()

std::optional< QCameraFormat > createCameraFormat ( IMFMediaType * mediaFormat)
static

Definition at line 123 of file qwindowsvideodevices.cpp.

◆ getString()

QString getString ( IMFActivate * device,
const IID & id )
static

Definition at line 154 of file qwindowsvideodevices.cpp.

◆ readCameraDevices()

QList< QCameraDevice > readCameraDevices ( const QWindowsMediaFoundation & wmf,
IMFAttributes * attr )
static

Definition at line 205 of file qwindowsvideodevices.cpp.

Variable Documentation

◆ KSCATEGORY_SENSOR_CAMERA

constexpr GUID KSCATEGORY_SENSOR_CAMERA
staticconstexpr
Initial value:
= {
0x24e552d7, 0x6523, 0x47f7, { 0xa6, 0x47, 0xd3, 0x46, 0x5b, 0xf1, 0xf5, 0xca }
}

Definition at line 22 of file qwindowsvideodevices.cpp.