ADLINK PCIe-2602 User Manual

Page 77

Advertising
background image

DirectShow Programming Guide

67

PCIe-2602-FLR

EXAMPLE #01: Retrieve the format value

ULONG Format;

DWORD dwReturn;

m_pKsPropertySet->Get( PROPSETID_AVS260X_CUSTOM,

CUSTOM_PROPERTY_XET_SENSOR_FORMAT,

NULL, 0,

&Format, sizeof(ULONG), &dwReturn);

EXAMPLE #02: Set the format value

ULONG Format = 11; // = 1080p 30 fps

m_pKsPropertySet->Set( PROPSETID_AVS260X_CUSTOM,

CUSTOM_PROPERTY_XET_SENSOR_FORMAT,

NULL, 0,

&Format, sizeof(ULONG);

8. CUSTOM_PROPERTY_GET_DETECTED_SENSOR_F

ORMAT

The driver automatically detects video format and reports it to
the software, with supported formats as shown, where
-1indicates a non-supported format.

EXAMPLE

LONG Format;

DWORD dwReturn;

1080p 30 fps

1920x1080

11

1080p 50 fps

1920x1080

12

1080p 59.94/60 fps

1920x1080

13

Format

Resolution

Value

Advertising