DirectFB | Mirror of git :
kandi X-RAY | DirectFB Summary
kandi X-RAY | DirectFB Summary
DirectFB is a graphics library which was designed with embedded systems in mind. It offers maximum hardware accelerated performance at a minimum of resource usage and overhead. Check for more and up to date infos.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of DirectFB
DirectFB Key Features
DirectFB Examples and Code Snippets
Community Discussions
Trending Discussions on DirectFB
QUESTION
I'm trying to display a video stream on a specific screen.
Right now I use the waylandsink
that has display
and fullscreen
properties so I have:
ANSWER
Answered 2022-Mar-17 at 09:59I finally found! And it's the kmssink
but I'll explain more why.
First I talked about the waylandsink
. The thing is I did not know was wayland is a protocol and it seems to only work for displaying content inside a Desktop Environment (DE). So I guess you could create windows for each display and then link your sink to those windows. But I was looking for a way to display without any DE so waylandsink
is a not an option.
For glimagesink
from what I tried it's also in a DE so I did not explore more about it.
Then there's the framebuffer using the fbdevsink
. It works without DE, but suffers from limitations... There seems to be only one framebuffer situated in /dev/fb0
and what we draw in it is displayed on every screen regardless of the display resolution. So if we have 2 displays with different resolution we cannot do fullscreen without having some cropping on one of them. Plus we cannot display different video on each screen because the framebuffer is duplicated. Finally while I was testing it, I found out some time there were frames that were drawn at the same time into the framebuffer, so it was causing the video to have some weird visual.
Maybe the issues I listed could have been fixed in some way but there are just too many so I discarded this option
When I checked the documentation for the kmssink
it says there are 2 main parameters I was interrested:
- bus-id
- connector-id
By specifying the bus-id
I though I could display on a specific screen. But all the displays use the same bus-id: 0000:00:02.0
so it's not the parameter to specify a display.
Then there is connector-id
. It's an integer and it can be used to specify the display. In my case it's 77
for HDMI-A-1
and 92
for HDMI-A-2
.
How do you get the connector-id
? Well that's not simple...
A command exists to get them and it's called modetest
. The thing is it seems to be only included in some embedded devices. I found out that the command was included in the package libdrm
but in my case installing it did not give me access to the command...
I'm using GStreamer with Rust so by importing the drm package I was able to get a list of connector-id and a lot of data about displays.
So in the end I can do:
QUESTION
I was wondering if anyone could help me with this problem that has been plaguing me.
I am currently using Qt Creator with verion 5.11.3 Qt on Ubuntu to build a project. Every time I try to build I get the error "gl.h: No such file or directory".
The error occurs next to the line in my code that says "#include
I have ran the following code as well and it did not change the outcome
...ANSWER
Answered 2021-Jul-26 at 18:58Install the OpenGL dev support:
QUESTION
I am using pygame to draw a GUI on tiny SPI LCD mount as /dev/fb1
via directfb.
Whatever I draw, there is a strange symbol display in center of screen.
If I run df_matrix, the strange symbol does not appear.
If I draw in pygame, then manually open /dev/fb1
, write screen data, the strange symbol does not appear.
So, how to get rid of this annoying symbol?
...ANSWER
Answered 2020-Oct-16 at 09:58If it is truly the mouse cursor as Kingsley suggested in the comments, you can disable the cursor in pygame with:
QUESTION
I'm trying to run an application on xcb platform over iMx6 (qt 5.12.8), unfortunately some qml objects are not rendered correctly for example components which requires qtgraphicaleffects. I suspect that the reason for this strange behavior is a wrong cross-compilation of qt libraries, in fact no matter I change configure parameters, I'm not able to enable EGL on X11 which should solve my issue. If I enable qt libs verbose configure I read:
egl-x11.cpp:49:9: error: invalid conversion from ‘EGLNativeDisplayType {aka void*}’ to ‘Display* {aka _XDisplay*}’ [-fpermissive] dpy = egldpy;
...ANSWER
Answered 2020-Aug-05 at 17:17I'm answering to my own question for whom may face the same problem. I was compiling qt using a sysroot configured to run with Vivante plugin for video acceleration. That was not compatible with eglfs on x11. Without egl , qt libraries are not able to render correctly complex objects such as those mentioned in the question. Compiling with the right dependencies and running with eglfs solved the issue.
QUESTION
Quick update I have added a little bit of code to adjust the character's movement, so when the character isn't idle the character faces the last position it was walking towards. But I have any issue with my character always facing left after any movement action. I also updated my character script:
...ANSWER
Answered 2020-Jan-17 at 14:16Add a state self.last_move
to the class Mage
. Set the state when the character moves and draw the placer dependent on the state if self.standing
. e.g:
QUESTION
I'm working on a pygame project but I'm having a few complications with the character's movement. The animation is not in sync (in lame terms), when I move right or left there is suppose to be an animation of the character moving left or right smoothly but in my case when the is moving either left or right I can still see the character image for when the character is in an idle position trailing the character when in walking motion. I also have an issue when my character jumps it doesn't come back own. I tweaked the character speed and refresh rate of the screen but nothing seems to help. Here is my code and image below.
File 1. Handles the running of the game
...ANSWER
Answered 2020-Jan-16 at 16:25but in my case when the is moving either left or right I can still see the character image for when the character is in an idle position trailing the character when in walking motion.
This because the first what you do in Knight.blitme
, is to draw the character in idle position. Then the left or right images is draw on top of it:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install DirectFB
Make sure that " /lib" is listed in your /etc/ld.so.conf. The default prefix is "/usr/local". After adding it you have to run 'ldconfig' as superuser. Alternatively, you can add the path to the environment variable LD_LIBRARY_PATH. This is useful for temporarily switching to another installed version. You might want to copy fb.modes to /etc or merge it with your existing /etc/fb.modes file. The first entry will be used by default - copy other entries you may need. If you want to use a serial mouse, create a link called /dev/mouse that points to serial device (e.g. /dev/ttyS0). Then add a line describing your mouse-protocol to /etc/directfbrc or ~/.directfbrc: "mouse-protocol=[ms|ms3|mouseman|mousesystems]". If you are cross compiling and have installed the required libraries someplace other than /usr/local/lib be sure to add the bin directory for those libraries to the front of your 'PATH'. For instance if you configured using: --prefix=/dfb/usr/local then be sure to export PATH=/dfb/usr/local/bin:$PATH before compiling and installing.
In the DirectFB directory type:
Make sure that " /lib" is listed in your /etc/ld.so.conf. The default prefix is "/usr/local". After adding it you have to run 'ldconfig' as superuser. Alternatively, you can add the path to the environment variable LD_LIBRARY_PATH. This is useful for temporarily switching to another installed version.
You might want to copy fb.modes to /etc or merge it with your existing /etc/fb.modes file. The first entry will be used by default - copy other entries you may need.
If you want to use a serial mouse, create a link called /dev/mouse that points to serial device (e.g. /dev/ttyS0). Then add a line describing your mouse-protocol to /etc/directfbrc or ~/.directfbrc: "mouse-protocol=[ms|ms3|mouseman|mousesystems]".
If you are cross compiling and have installed the required libraries someplace other than /usr/local/lib be sure to add the bin directory for those libraries to the front of your 'PATH'. For instance if you configured using: --prefix=/dfb/usr/local then be sure to export PATH=/dfb/usr/local/bin:$PATH before compiling and installing.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page