Commit Graph

9281 Commits

Author SHA1 Message Date
Martin Pulec
752cc53fe9 setting verbose mode fix
fixed inverted condition introduced by the commit 2909e464 (2024-05-13)
2024-05-21 12:56:45 +02:00
Martin Pulec
111207abf1 CI macOS: swap version and arch position
was UltraGrid-<arch>-<version>.dmg (eg. UltraGrid-arm64-1.9.2.dmg),
which is not consistent with other platforms,
eg. UltraGrid-1.9.2-x86_64.AppImage and UltraGrid-1.9.2-win64.zip. The
one with the version just after UltraGrid seems to be more natural.
2024-05-21 12:56:45 +02:00
Martin Piatka
08b23e7087 display/drm: Fix potential nullptr dereference
Fixes CID 460884
2024-05-21 10:40:48 +02:00
Martin Piatka
561f2faff1 testcard2: Accept named parameters for video format 2024-05-20 14:25:46 +02:00
Martin Piatka
3ffc276706 Remove the rest of old RPI hwaccel
The old and now defunct hwaccel was removed in 30eab46 and was replaced
by a new DRM-PRIME based implementation that works on the recent
versions on Raspbian.

Some parts of the old implementation remained by mistake. This should
remove all the remaining stuff.
2024-05-20 10:50:22 +02:00
Martin Pulec
5ddd70e4ac vdisp/pipe: do not announce VC_NONE support
If using transcoding reflector, eg.:
`hd-rum-transcode 8M 5004 -c libavcodec -P 6004 100:1`

pipe is used, which advertised VC_NONE, for which assertion at the
beginning of get_pixfmt_desc() failed.
2024-05-20 08:52:41 +02:00
Martin Pulec
3b86db0299 add dummy metadata for RPI4_8
Offered by UG and in debug mode queried for name in following listing:
````
 Trying codecs in this order:
````

Without this, it triggers abort on assertion `name != NULL` in
get_codec_name().
2024-05-20 08:52:41 +02:00
Martin Pulec
870f62fc45 hd-rum-transcode: exit if serv sock init fails 2024-05-20 08:52:40 +02:00
Martin Pulec
aaf783ecfe hd-rum-transcode: catch stoi invalid_argument
Make something like `hd-rum-transcode 8M 5004 -P x 100::1` fail with
humaan readable message.
2024-05-20 08:52:40 +02:00
Martin Pulec
6e8f20bcea hd-rum-transcode: fixed --param short opt (-O)
The original -m was not used in the end, because it is the same as MTU
for UltraGrid (not used for global hd-rum-transcode options but not to
have the same letter in differnt contexts).
2024-05-20 08:52:40 +02:00
Martin Pulec
d10a9d5cc7 CI macOS: install only not installed brew formulas
The GitHub actions now complain if trying to install a formula, that is
already installed, eg:
```
  run macOS (macos-14)
  pkg-config 0.29.2_3 is already installed and up-to-date. To reinstall 0.29.2_3, run: brew reinstall pkg-config

```

As a workaround, install just the formulas, that are not already
installed.
2024-05-20 08:52:40 +02:00
Martin Piatka
8a76432548 configure.ac: Add DRM display build configuration 2024-05-17 13:20:06 +02:00
Martin Piatka
f46a101cba configure.ac: Enable 64 bit off_t on 32 bit systems
Needed for the DRM display on 32 bit systems (when mmaping framebuffers)
2024-05-17 13:20:05 +02:00
Martin Piatka
1ee460f7c9 display/drm: Remove unused variables 2024-05-17 13:20:05 +02:00
Martin Piatka
f53619778d display/drm: Add copyright 2024-05-17 13:20:05 +02:00
Martin Piatka
b3ca9d6b48 display/drm: Try to set appropriate mode for DRM_PRIME frames 2024-05-17 13:20:05 +02:00
Martin Piatka
80fe7378fb display/drm: Fix signedness warns 2024-05-17 13:20:05 +02:00
Martin Piatka
01647357ae display/drm: Don't rely on currently connected encoder/crtc
It's not guaranteed to be set
2024-05-17 13:20:05 +02:00
Martin Piatka
799cc8556c display/drm: Better help text 2024-05-17 13:20:05 +02:00
Martin Piatka
48a109846b display/drm: Selectable video mode 2024-05-17 13:20:04 +02:00
Martin Piatka
5483620079 display/drm: Selectable connector 2024-05-17 13:20:04 +02:00
Martin Piatka
a2f9bd32d4 display/drm: List connectors and modes when displaying help 2024-05-17 13:20:04 +02:00
Martin Piatka
1e285effe7 display/drm: DRM_MODE_CONNECTOR_USB compat 2024-05-17 13:20:04 +02:00
Martin Piatka
aedf3aa379 display/drm: Warn when video resolution is larger than fb 2024-05-17 13:20:04 +02:00
Martin Piatka
fbacc9ee18 display/drm: Center frames smaller than framebuffer 2024-05-17 13:20:04 +02:00
Martin Piatka
74dee69c2f display/drm: Handle absence of BGR format by setting rgb shift 2024-05-17 13:20:03 +02:00
Martin Piatka
106c4793d3 display/drm: Report supported codecs 2024-05-17 13:20:03 +02:00
Martin Piatka
c24da809ba display/drm: Correctly handle video frames larger than fb 2024-05-17 13:20:03 +02:00
Martin Piatka
77f6a3303e display/drm: Reuse video frames 2024-05-17 13:20:03 +02:00
Martin Piatka
c97fb247e3 display/drm: splash pix_fmt fallback 2024-05-17 13:20:03 +02:00
Martin Piatka
917349e5c4 display/drm: Probe supported DRM formats 2024-05-17 13:20:03 +02:00
Martin Piatka
1376b414ac display/drm: Print warning when unable to get version 2024-05-17 13:20:02 +02:00
Martin Piatka
257056bd2c display/drm: Allow specifying DRI dev path 2024-05-17 13:20:02 +02:00
Martin Piatka
7f26d7ca7c display/drm: Print user friendly connector name 2024-05-17 13:20:02 +02:00
Martin Piatka
bf91a03524 display/drm: Remove unused unset_framebuffer 2024-05-17 13:20:02 +02:00
Martin Piatka
1f95e07a6c display/drm: Add missing MOD_NAME to log messages 2024-05-17 13:20:02 +02:00
Martin Piatka
22abd3cac8 display/drm: Check DRI dev usability and PRIME support 2024-05-17 13:20:02 +02:00
Martin Piatka
8563a92bb6 display/drm: Refactor common code into set_framebuffer() 2024-05-17 13:20:01 +02:00
Martin Piatka
fe73cb9145 display/drm: Try to automatically find the DRI device 2024-05-17 13:20:01 +02:00
Martin Piatka
f84a67d3c5 display/drm: DRM_PRIME support 2024-05-17 13:19:57 +02:00
Martin Piatka
86d439f6ab display/drm: Proper x offset calculation 2024-05-17 13:19:57 +02:00
Martin Piatka
660fde20dc display/drm: Use drmIoctl instead of ioctl 2024-05-17 13:19:56 +02:00
Martin Piatka
88dae5ed0f display/drm: Replace dumb buffer create/destroy with ioctl
Older versions of libdrm do not contain those functions
2024-05-17 13:19:56 +02:00
Martin Piatka
1c99a14f59 display/drm: Print DRM driver information 2024-05-17 13:19:56 +02:00
Martin Piatka
70e77c0ca7 display/drm: Add basic support for UYVY and RGBA fmt selection 2024-05-17 13:19:56 +02:00
Martin Piatka
9816eaf6db display/drm: Draw a splashscreen 2024-05-17 13:19:56 +02:00
Martin Piatka
534626429f display/drm: Specify pix_fmt when creating framebuffers 2024-05-17 13:19:56 +02:00
Martin Piatka
2197cb2ee2 display/drm: Print error if display is already occupied 2024-05-17 13:19:55 +02:00
Martin Piatka
698223852d Initial DRM video display 2024-05-17 13:19:55 +02:00
Martin Piatka
cb490950c6 hwaccel/drm: Store fd count 2024-05-17 13:19:49 +02:00