GetANCPacket
Supported Hardware Devices: Pro Capture cards supporting SDI signals
Contents Demonstrated in the Sample:
- Retrieving ANC data packets from SDI signals
- Channel selection via command parameters when multiple devices are available
Call Logic:
- Obtain version information, initialize, and enumerate devices: MWGetVersion, MWCaptureInitInstance, MWRefreshDevice, MWGetChannelCount
- Filter supported devices based on device and interface information: MWGetChannelInfoByIndex
- Open the device:
- Open the device specified by command parameters: MWOpenChannel
- When no device is specified in command parameters, open the first available channel by default: MWGetDevicePath,MWOpenChannelByPath
- Clear and reconfigure ANC: MWCaptureSetSDIANCType
- Create event: MWCreateEvent
- Register for message notifications: MWRegisterNotify
- Wait for event: MWTryWaitEvent, MWWaitEvent
- Retrieve ANC data packet: MWCaptureGetSDIANCPacket
- Write data to binary file
- Repeat steps 7, 8, and 9 until polling ends or user actively stops
- Deregister message notifications: MWUnregisterNotify
- Close event: MWCloseEvent
- Release resources: MWCloseChannel, MWCaptureExitInstance
Result:

Flowchart:
