Commit Graph

21 Commits

Author SHA1 Message Date
Martin Pulec
c439cedd5c testcard: fixed mode/size=4k
Since 61544172 (2024-10-10), _4k_ (and similar) modes were not accepted
because lacking FPS specification, which was unintended change in
that commit.
2024-03-06 13:19:17 +01:00
Martin Pulec
14625f5022 parse_fps: accept also 4K30, 2D30
accept upper-case K and D (but not P and I)
2023-11-20 14:39:19 +01:00
Martin Pulec
42bfa537f3 parse_fps: wrong assert
Assert was incorrect - on error, NULL+1 is compared with NULL (never
true), releasing invalid pointer for further processing.
2023-11-20 14:35:33 +01:00
Martin Pulec
0b9ee8e7ea get_video_desc_from_string: print error if unknown
Print an error if unknown mode was given, which could give the user a
guidance what is wrong, eg.:
`uv -t testcard:mode=bogus`

outputted just`[testcard] Wrong video size, given: 0x0`, which isn't
much helpful. Now it outputs also `[video] Unrecognized video mode: bogus`
2023-11-14 16:43:20 +01:00
Martin Pulec
61544172c5 get_video_desc_from_string: fixed mode parse
fixed parsing of mode `uv -t testcard:m=2160p25` where it was incorrectly
returned FPS 60 (fixed FPS offset 2 bytes pointing to 21_60_p)
2023-10-10 09:25:12 +02:00
Martin Pulec
41da22a399 fixed video_desc_to_string returning same desc
The function returned description was not updated by subsequent call,
because the returned thread_local variable is initialized statically.
2023-07-24 15:59:50 +02:00
Martin Pulec
1328564352 get_video_desc_from_string: added 1080i59-like syntax 2023-06-13 12:04:39 +02:00
Martin Pulec
90ee2a2023 fixed CID 408095 2023-05-30 08:58:20 +02:00
Martin Pulec
0f4855e7f1 testcard: added some examples
+ few more mode aliases
2023-05-24 09:35:10 +02:00
Martin Pulec
65c7924e4d testcard: allow mode specification with shortcut
added support for specifying video with something like:
`-t testcard:mode=vga`.
2023-05-23 09:29:39 +02:00
Martin Pulec
b1f0e004f4 fixed new Coverity bugs
Fixed some of (easy) newly detected Coverity bugs. Those are mostly
innocent ones (performance) and not new (detected because of new release
of Coverity).
2022-08-22 09:57:16 +02:00
Martin Pulec
d19f6a5329 display cap. f.: use decoder if needed
Use decoder if display doesn't natively support the pixel format.
2022-06-01 11:22:01 +02:00
Martin Pulec
5d3908e881 Added output operator for codec_t 2020-04-29 09:34:09 +02:00
Martin Pulec
31d9809fcd Updated documentation
Updated authors, copyright to 3-clause BSD (where possible) and file-level Doxygen
2019-11-09 13:47:11 +01:00
Milos Liska
fbe5b36423 Fixed video modes help
* Video modes help format is consistent with other UG help outputs
* Switched video_mode_info to ordered map
2019-08-19 11:29:35 +02:00
Martin Pulec
de996f3c24 Renamed tiled-4k to tiled-2x2 2019-06-26 16:25:49 +02:00
Martin Pulec
50a6fe615f Missing sstring includes 2019-06-19 16:44:20 +02:00
Martin Pulec
08be232a19 Control socket: report when video prop change 2016-06-28 17:33:24 +02:00
Martin Pulec
a02f1dbed5 Added text capture filter: a wrapper around PP 2015-10-20 16:33:24 +02:00
Martin Pulec
2cc6aab0e2 Added possibility to send message synchronously
+ in capabilities list, given bitrate is computed according to the
  detected capture format (provided that '-t' argument is given)
2015-08-25 17:05:23 +02:00
Martin Pulec
ccb2b7c36a Added AJA capture
TODO: figure out 50p/60p modes, 4K, Windows support etc.
2015-01-29 16:26:10 +01:00