KSCAMERA_PROFILE_MEDIAINFO - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ksmedia.h

typedef struct _KSCAMERA_PROFILE_MEDIAINFO {
  struct {
    UINT32 X;
    UINT32 Y;
  } Resolution;
  struct {
    UINT32 Numerator;
    UINT32 Denominator;
  } MaxFrameRate;
  ULONGLONG Flags;
  UINT32    Data0;
  UINT32    Data1;
  UINT32    Data2;
  UINT32    Data3;
} KSCAMERA_PROFILE_MEDIAINFO, *PKSCAMERA_PROFILE_MEDIAINFO;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ksmedia-_kscamera_profile_mediainfo)

_KSCAMERA_PROFILE_MEDIAINFO structure

Description

This structure contains the relevant media type information presented for each camera profile.

Members

Resolution

The X (horizontal) and Y (vertical) frame size in pixels.

Resolution.X

Resolution.Y

MaxFrameRate

The numerator/denominator ratio of frame rate (for example, 30 / 1 = 30fps). This frame rate represents the maximum frame rate of the specified resolution under ideal lighting conditions. Actual frame rate may be lower than this value.

For photo media information, if photo sequence cannot be enabled because of hardware constraints for the given photo resolution, the frame rate must be set to 0 (numerator=0, denominator=0). This will inform the application layer that photo sequence control will be rejected by the driver when that particular photo media type is selected.

MaxFrameRate.Numerator

MaxFrameRate.Denominator

Flags

The bitwise OR of one or more of the following flags:

Data0

Reserved. Must be set to 0.

Data1

Reserved. Must be set to 0.

Data2

Reserved. Must be set to 0.

Data3

Reserved. Must be set to 0.