Oleg Bolshakov
|
Re: Regarding framebuffer concept in QNX 4.25.
|
Oleg Bolshakov
12/29/2014 8:18 AM
post112794
|
Re: Regarding framebuffer concept in QNX 4.25.
Hello!
As for PtRaw application. You can use PgDrawImage() or PgDrawPhImagemx() function to do the work. Read more in QNX Help
Viewer: Photon microGUI - Programmer's Guide - Raw Drawing and Animations - drawing images.
As for Hydra.ms option. Look for suitable graphics mode in /etc/config/trap/crt.$NODE. Line should start with Hydra.ms.
After this you can launch Hydra.ms with all options up to semicolon sign. Don't forget to add full path to Hydra.ms. At
this point you can access framebuffer from your own application. As an example I've wrote fbtest program to illustrate
how to access to framebuffer. Note that fbtest takes all command line options as Pg.flat* driver, so you can just copy
them from your crt.$NODE file. Find attached archive with starting script (fbtest-hydra.sh), fbtest and fbtest source.
Keep in mind that fbtest-hydra.sh is configured for my HW, you should replace Hydra.ms and fbtest options with yours
from the crt.$NODE.
Respectfully,
Oleg
29 дек. 2014 г., в 10:48:35, Honey S. <community-noreply@qnx.com> написал:
> Dear Oleg,
>
> Thank you for your valuable support.
> We were trying to understand the concepts which you discussed in your earlier reply to use the frame buffer pointer in
QNX 4.25. Please see our replies inline.
>
> [Oleg] >> You can create at least two configurations with Photon components to achieve your target.
> You can disable (just do not launch) all unneeded Photon components like pdm, pwm, etc and create PtRaw-based
application maximized to whole screen.
>
> [Honey] >> We have edited our ph script as follows:
> Added the following lines.
> 1. export PHWM=""
> 2. export PHWMOPTS=""
> 3. export PHPDM_DISABLE=""
> and commented out pdm invokation in the script.
> Then we rebooted our QNX 4.25 machine. We ensured that pdm, pwm are not running by running pidin command.
> Then we started learning on PtRaw widget from "Raw drawing and animation" chapter from Photon MicroGUI manual.
> Created a sample application which has a PtRaw widget and a PtRect canvas placed on it. Also draw an ellipse and fill
color on it. This is what we can achieve till now.
> Hope this is the way you mentioned how to get the raw drawing feature using frame buffer. Please correct us if we are
wrong.
>
> [Oleg] >> Also you can try to launch Hydra.ms to switch to graphics mode and access framebuffer directly using
framebuffer pointer. To get framebuffer pointer you can use show_pci or show_vesa utils.
>
> [Honey] >> We can't understand this fully. We have tried to run show_pci command. Attached file (show_pci.jpg) is the
output which we got. show_vesa command is not found in our QNX 4.25 machine.
> Also we are not clear about Hydra.ms; so didn’t make a trial on it. How hydra.ms can be used to access frame buffer
directly?
>
> Could you please detail on our concerns?
>
> Thank you for your understanding and patience.
> Regards,
> Honey S
>
> Confidentiality Statement / Disclaimer : This message and any attachments is intended for the sole use of the intended
recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly
prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your
systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the
recipient to make sure that it is virus/malicious code exempt.
>
> The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If
you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not
liable for any errors or omissions in the content of this message.
>
> <show_pci.jpg>
|
|
|