Go to advanced search

by oleg11
Tue Jan 19, 2021 8:02 am
Forum: OpenGLES
Topic: Dual display and OpenGL ES (RPi3/broadcom driver)
Replies: 4
Views: 165

Re: Dual display and OpenGL ES (RPi3/broadcom driver)

So, I solved this problem. Not in the most efficient way, but performance is acceptable for my project. I added separate thread which makes screenshot of the main (TFT) display using vc_dispmanx_snapshot into the dispmanx resource that is scaled (to the HDMI display resolution) and displayed on the ...
by oleg11
Sat Jan 16, 2021 3:29 pm
Forum: OpenGLES
Topic: Dual display and OpenGL ES (RPi3/broadcom driver)
Replies: 4
Views: 165

Re: Dual display and OpenGL ES (RPi3/broadcom driver)

So, as far as I understand there are two ways to implement cloning OpenGL ES rendering on two displays: 1. Initialize everything (display/window/surface and etc.) as with the single display. Render as usual. Somehow get the render buffers resource handles and use them in the vc_dispmanx_element_chan...
by oleg11
Fri Jan 15, 2021 9:32 am
Forum: OpenGLES
Topic: Dual display and OpenGL ES (RPi3/broadcom driver)
Replies: 4
Views: 165

Re: Dual display and OpenGL ES (RPi3/broadcom driver)

As far as I can see there is no use of OpenGL ES in your code so I think you are confused about OpenGL ES The code only shows how it is possible to clone LCD output to the HDMI output (and that it is possible in an efficient way without additional copying). Yes, there is no OpenGL ES use in that sa...
by oleg11
Fri Jan 15, 2021 7:31 am
Forum: OpenGLES
Topic: Dual display and OpenGL ES (RPi3/broadcom driver)
Replies: 4
Views: 165

Dual display and OpenGL ES (RPi3/broadcom driver)

Hi, All! Here is a small program that shows how the output to the TFT LCD on DPI can be duplicated on the HDMI. It uses legacy broadcom driver and passes the same source image resource to the vc_dispmanx_element_add: #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <assert.h> #inc...
by oleg11
Fri Mar 27, 2020 2:03 pm
Forum: General discussion
Topic: Change Core frequency on request (from the C program)
Replies: 0
Views: 115

Change Core frequency on request (from the C program)

Hi, All! I have a program with heavy use of the memory. And it looks like in some modes the cache performance become a limiting factor. I am aware of the /sys/bus/cpu/devices/cpu0/cpufreq/ and can switch Pi to performance governor in that modes. But CPU works with light loading 20..40% of the 400% a...
by oleg11
Fri Mar 27, 2020 8:59 am
Forum: OpenMAX
Topic: Capturing screen on RPi3 without glReadPixels
Replies: 4
Views: 1299

Re: Capturing screen on RPi3 without glReadPixels

I moved a bit into those direction, so I successfully created the input port with the necessary parameters and it requests the expected buffer with 24bytes size One more step and I have a working test program that encodes directly the content of the EGL image. So, now it is time to think and experi...
by oleg11
Thu Mar 26, 2020 8:33 am
Forum: OpenMAX
Topic: Capturing screen on RPi3 without glReadPixels
Replies: 4
Views: 1299

Re: Capturing screen on RPi3 without glReadPixels

Thank you for the reply and information. I tried vc_dispmanx_snapshot before, but had no luck initially - it just hung on the second call. After some searching and trial and errors it appeared that vc_dispmanx_snapshot works ONLY with the VC_IMAGE_RGB565, VC_IMAGE_RGB888 and VC_IMAGE_RGBA32 formats....
by oleg11
Wed Mar 25, 2020 6:51 pm
Forum: OpenMAX
Topic: Capturing screen on RPi3 without glReadPixels
Replies: 4
Views: 1299

Capturing screen on RPi3 without glReadPixels

Hi, All! I have an application which does some intensive graphics using the OpenGL ES (without X) and I need to capture screen and encode it into h264 video. Currently I did it using MMAL, the screen data is obtained using the glReadPixels. It is highly inefficient, so here is the question - are the...
by oleg11
Sun Feb 23, 2020 1:01 pm
Forum: OpenGLES
Topic: Pi3/OpenGL ES with vc4-kms-v3d driver
Replies: 0
Views: 649

Pi3/OpenGL ES with vc4-kms-v3d driver

Hi, All! I am going to use CM3+ module. I am planning to attach display using DSI (not a standard display - the same as CutiePi use). As far as I know I need vc4-kms-v3d driver to do it. So, I decided to try how it performs with RPi 3A+ and HDMI display I had by hand. I need OpenGL ES 2.0 full scree...

Go to advanced search