The video capture API includes definitions for specifying polarity.
All polarity properties are specified as
follows:
Value |
Polarity |
0 |
Set polarity to not inverted. |
1 |
Set polarity to inverted. |
-1 |
Don't set the polarity. Use whatever polarity is already set. |
- CAPTURE_PROPERTY_INVERT_FID_POL
- CAPTURE_PROPERTY( 'Q', 'L', 'F', 'I' )
- Read/Write int
- Specifies whether the field ID signal polarity is inverted.
- CAPTURE_PROPERTY_INVERT_VSYNC_POL
- CAPTURE_PROPERTY( 'Q', 'L', 'H', 'S' )
- Read/Write int
- Specifies whether the vertical synchronization polarity is inverted.
- CAPTURE_PROPERTY_INVERT_HSYNC_POL
- CAPTURE_PROPERTY( 'Q', 'L', 'V', 'S' )
- Read/Write int
- Specifies whether the horizontal synchronization polarity is inverted.
- CAPTURE_PROPERTY_INVERT_CLOCK_POL
- CAPTURE_PROPERTY( 'Q', 'L', 'P', 'C' )
- Read/Write int
- Specifies whether the clock polarity is inverted.
- CAPTURE_PROPERTY_INVERT_DATAEN_POL
- CAPTURE_PROPERTY( 'Q', 'L', 'D', 'E' )
- Read/Write int
- Specifies whether the "data_en" pin/signal polarity is inverted.
- CAPTURE_PROPERTY_INVERT_DATA_POL
- CAPTURE_PROPERTY( 'Q', 'L', 'D', 'A' )
- Read/Write int
- Specifies whether the data input polarity is inverted.