Fixes the commit 9c597ae1 (yesterday) - after the move, the ptr must
have been replaced for tok, otherwise passing 2 or more options to gl,
like `-d gl:fs:cursor`, causes segfault.
When pixel format changes - which is almost always if CS doesn't match
the splashscreen and some conversion is needed, the cs_data member needs
to be updated to contain curremt conversion data).
accept the syntax in format <W>x<H>[@<FPS>[<suff>]]
this requires also some changes in parse_fmt, namely:
1. parse the suffix
2. parse fps with strtod - this format should allow 1920x1080@59.94i
3. related with the point 2. - do not adjust 59->59.94 if the above
format used - compared to BMD modes like Hi59, there the 59.94 mode
should be written in full (so 1920x1080@23 will be 23 FPS, indeed)
For actual sdl check, the emptiness of sdl_version is evaluated. But later
it is useful to have it =0 for numeric comparisons (2c577ace) so set it
in after sdl check. The depending modules can use $sdl variable later.
Do not set bmdDeckLinkConfigOutput1080pAsPsF ('pfpr') to false by
default. Most likely not needed and user may configure the device by
itself according to the needs.
Since now the options can be specified generically by FourCC 'cfpr' (capture) and 'pfpr'
(display), there is no need to have this explicitly.
Also it doesn't seem to be much useful (at least with the PsF stream from
XDCAM, the stream is detected to be interlaced, not progressive, even
though decklink reports BMDDeckLinkSupportsAutoSwitchingPPsFOnInput=yes).
Print separate seaction with deveices in :help as it is common in other
modules (eg. decklink). Previously, this was written as a part of the
option describing "device:", but it doesn't seem appropriate.
+ 2 tab indent for (optional) device channel listing (parent 1 tab)
For bidirectional cards (eg. deltacast hd elp-d 80), the channels can be
configured in a layout that lower indices are assigned to RX and higher
to TX (so 0-8 lower-indexed pins are RX and the rest is TX).
So if using RX channel=2 (zero-indexed), at least 3 RX channels need
to be taken in order for the 3rd channel to be RX.
- if quad channel not enabled, do not disable bypass relay on channel
other than selected
- assume that quad-channel starts from channel=0 (== channel is not
explicitly specified)
- delta_set_nb_channels called with 4 rx channels, not one (as in
Sample_RX4K.cpp)
- accept options by prefix (currently just one - "device")
- accept `-d deltacast` - it used to work in original code but since
some time ago, the empty option string is passed, not NULL (which
originally worked)