Separate SD/HD related functions out and detect whether card supports autodetection.
Tell decklink to detect input. Counterintuitively ask for NTSC to begin with instead of "unknown" format.
Factor out resolution/fps specific functions and handle the format change callback
Rememer to set the video format
Stop and start video after a format changed as explained by Blackmagic Support.
Only reset the SDI card for detection. Reconfiguring resolution is not yet supported.
Configure PAL by default and reconfigure if the format isn't PAL
Reconfigure encoder if no valid frames have been received.
Remove duplicate copy/paste