ADLINK PCIe-2602 User Manual

Page 78

Advertising
background image

68

DirectShow Programming Guide

m_pKsPropertySet->Get( PROPSETID_AVS260X_CUSTOM,

CUSTOM_PROPERTY_GET_DETECTED_SENSOR_FORM
AT,

NULL, 0,

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

9. CUSTOM_PROPERTY_XET_IMAGE_ORIENTATION

The property allows you to set or retrieve the image orientation
arranged in the memory, with supported values:

0: bottom-up

1: top-down (default)

EXAMPLE #01: Retrieve the image orientation

ULONG Orientation;

DWORD dwReturn;

m_pKsPropertySet->Get( PROPSETID_AVS260X_CUSTOM,

CUSTOM_PROPERTY_XET_IMAGE_ORIENTATION,

NULL, 0,

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

EXAMPLE #02: Set the image orientation

ULONG Orientation = 1; // = top-down

m_pKsPropertySet->Set( PROPSETID_AVS260X_CUSTOM,

CUSTOM_PROPERTY_XET_IMAGE_ORIENTATION,

NULL, 0,

& Orientation, sizeof(ULONG);

10.CUSTOM_PROPERTY_GET_DETECTED_OUTPUT_F

ORMAT

Advertising