This also implements primitive cable-detection and video output.
This re-uses most of the code from the ta_parameter_format generator--this was factored out to "generic_sparse_struct.py".