opencv/modules/highgui/src
kozinove efa4d9176a
Merge pull request #25661 from itlab-vision:framebuffer
Highgui backend on top of Framebuffer #25661

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [ x] I agree to contribute to the project under Apache 2 License.
- [ x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [ x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ x] The feature is well documented and sample code can be built with the project CMake

Environment variables used:
OPENCV_UI_BACKEND - you need to add the value “FB”
OPENCV_UI_PRIORITY_FB - requires priority indication
OPENCV_HIGHGUI_FB_MODE={FB|XVFB|EMU} - mode of using Framebuffer (default "FB")
- FB - Linux Framebuffer
- XVFB - virtual Framebuffer
- EMU - emulation (images are not displayed)
OPENCV_HIGHGUI_FB_DEVICE (FRAMEBUFFER) - path to the Framebuffer file (default "/dev/fb0").

Examples of using:

sudo OPENCV_UI_BACKEND=FB ./opencv_test_highgui
sudo OPENCV_UI_PRIORITY_FB=1111 ./opencv_test_highgui
OPENCV_UI_BACKEND=FB OPENCV_HIGHGUI_FB_MODE=EMU ./opencv_test_highgui
sudo OPENCV_UI_BACKEND=FB OPENCV_HIGHGUI_FB_MODE=FB ./opencv_test_highgui

export DISPLAY=:99
Xvfb $DISPLAY -screen 0 1024x768x24 -fbdir /tmp/ -f /tmp/user.xvfb.auth&
sudo -u sipeed XAUTHORITY=/tmp/user.xvfb.auth x11vnc -display $DISPLAY -listen localhost&
DISPLAY=:0 gvncviewer localhost&

FRAMEBUFFER=/tmp/Xvfb_screen0 OPENCV_UI_BACKEND=FB OPENCV_HIGHGUI_FB_MODE=XVFB ./opencv_test_highgui
2024-06-26 15:31:19 +03:00
..
files_Qt/Material Switch QT UI to icons with Google Material Design. 2022-12-02 11:21:02 +03:00
backend.cpp highgui: update error messages if no builtin backend 2021-06-09 08:39:50 +00:00
backend.hpp Merge pull request #25661 from itlab-vision:framebuffer 2024-06-26 15:31:19 +03:00
factory.hpp highgui: backends and plugins 2021-05-24 16:12:02 +00:00
plugin_api.hpp highgui: backends and plugins 2021-05-24 16:12:02 +00:00
plugin_wrapper.impl.hpp make imgcodecs optional for highgui 2022-07-01 10:53:37 +03:00
precomp.hpp Merge pull request #25551 from Kumataro:fix25550 2024-05-13 14:26:24 +03:00
registry.hpp highgui: backends and plugins 2021-05-24 16:12:02 +00:00
registry.impl.hpp Merge pull request #25661 from itlab-vision:framebuffer 2024-06-26 15:31:19 +03:00
roiSelector.cpp Merge pull request #23109 from seanm:misc-warnings 2023-10-06 13:33:21 +03:00
window_cocoa.mm style: remove extraneous std::cout 2023-08-14 19:11:14 -04:00
window_framebuffer.cpp Merge pull request #25661 from itlab-vision:framebuffer 2024-06-26 15:31:19 +03:00
window_framebuffer.hpp Merge pull request #25661 from itlab-vision:framebuffer 2024-06-26 15:31:19 +03:00
window_gtk.cpp Merge pull request #25354 from LaurentBerger:uiname 2024-04-19 13:38:17 +03:00
window_QT.cpp Backport some highgui changes from #22754 2024-03-05 17:49:01 +03:00
window_QT.h Fix broken build for Qt6 with options: WITH_QT=ON and WITH_OPENGL=ON 2021-12-09 13:22:20 -08:00
window_QT.qrc Switch QT UI to icons with Google Material Design. 2022-12-02 11:21:02 +03:00
window_w32.cpp Update imgcodecs tests 2024-05-15 22:24:21 +03:00
window_wayland.cpp Merge pull request #25561 from Kumataro:fix25560 2024-05-15 11:00:46 +03:00
window_winrt_bridge.cpp highgui: fix trackbar value pointer handling 2021-05-28 01:58:58 +00:00
window_winrt_bridge.hpp Fix for #5495 : add setTrackbarMin 2015-10-19 08:44:06 +00:00
window_winrt.cpp Partially back-port #25075 to 4.x 2024-03-05 12:15:39 +03:00
window.cpp Merge pull request #25551 from Kumataro:fix25550 2024-05-13 14:26:24 +03:00