Go to advanced search

by dividuum
Mon Sep 02, 2019 11:29 pm
Forum: OpenMAX
Topic: Clear last rendered frame
Replies: 13
Views: 3824

Re: Clear last rendered frame

fd_ wrote:
Sun Sep 01, 2019 8:28 pm
Is there any API function for that or do I have to destroy the whole rendering pipeline and create it anew every time playback is paused?
I suggest using OMX_IndexConfigDisplayRegion on the video_render component to move the video out of the visible screen area or into a lower layer.
by dividuum
Fri Aug 30, 2019 3:39 pm
Forum: Graphics programming
Topic: MMAL_DISPLAY_SET_DEST_RECT usage
Replies: 6
Views: 1254

Re: MMAL_DISPLAY_SET_DEST_RECT usage

I don't think it makes any realy difference.
Thanks.
by dividuum
Fri Aug 30, 2019 3:18 pm
Forum: Graphics programming
Topic: MMAL_DISPLAY_SET_DEST_RECT usage
Replies: 6
Views: 1254

Re: MMAL_DISPLAY_SET_DEST_RECT usage

It all comes from the older OpenMax IL API and OMX_IndexConfigDisplayRegion While we're at it: Is there any difference in setting fullscreen to 1 compared to 0 and then setting the dest_rect to the full screen size? The result in `vcgencmd dispmanx_list` is exactly the same as expected. Is there so...
by dividuum
Thu Aug 29, 2019 3:35 pm
Forum: Graphics, sound and multimedia
Topic: Dual display video playback on the Pi4
Replies: 1
Views: 1239

Dual display video playback on the Pi4

I've updated my software info-beamer in the last month to support the Pi4 and its new abilities. I've been making lots of progress recently and I wanted to show a small demo of one of the nicer and I think unique features at the moment: It is capable of playing H264 (H265 hopefully soonish) videos a...
by dividuum
Sat Aug 24, 2019 10:53 pm
Forum: Advanced users
Topic: Unattended bootloader updates on the Pi 4
Replies: 9
Views: 1513

Re: Unattended bootloader updates on the Pi 4

rpdom wrote:
Sat Aug 24, 2019 10:43 pm
I'm pretty certain it has been stated that the goal is to have the EEPROM resident firmware/code from an apt package at some point. A reboot will be required to activate it of course.
Thanks. I guess that answers my question.
by dividuum
Sat Aug 24, 2019 9:59 pm
Forum: Advanced users
Topic: Unattended bootloader updates on the Pi 4
Replies: 9
Views: 1513

Re: Unattended bootloader updates on the Pi 4

The means to do it are already there. It just hasn't been turned into a simple to use form. I appreciate your quick response, but I'm not sure how you end up with this conclusion. Although I too seriously doubt that this is all we'll ever get, right now the *only* way to update seems that recovery....
by dividuum
Sat Aug 24, 2019 8:57 pm
Forum: Advanced users
Topic: Unattended bootloader updates on the Pi 4
Replies: 9
Views: 1513

Unattended bootloader updates on the Pi 4

Will or is it possible to do EEPROM bootloader updates "unattended"? So having them done automatically without swapping SD card manually? I imagine a process that skips the update and continues the normal boot process if the provided update is identical to the one active. Or maybe writing a new EEPR...
by dividuum
Fri Aug 23, 2019 6:55 pm
Forum: OpenGLES
Topic: Wrong textures rendered
Replies: 3
Views: 3492

Re: Wrong textures rendered

by dividuum
Thu Aug 22, 2019 1:26 pm
Forum: Graphics programming
Topic: Relationship between mode set with `tvservice` and DRM
Replies: 8
Views: 3414

Re: Relationship between mode set with `tvservice` and DRM

Likewise you can override the setting using the "Broadcast RGB" property, reported by modetest as: Ah. That it. I'll play around with that eventually as I've also had some color range related complaints in the past. This should help. Thanks! Yes, the refresh rate is rounded. DRM does add the dropfr...
by dividuum
Thu Aug 22, 2019 1:02 pm
Forum: Graphics programming
Topic: MMAL video playback into DRM planes.
Replies: 7
Views: 3641

Re: MMAL video playback into DRM planes.

dom wrote:
Thu Aug 22, 2019 12:14 pm
rotating through video_render involves transposing a YUV420 buffer at 1.5 bytes/pixel.
rotating through display_rotate involves transposing an RGBA32 buffer at 4 bytes/pixel. Significantly more work.
That explains it. Thanks.
by dividuum
Thu Aug 22, 2019 11:35 am
Forum: Graphics programming
Topic: Relationship between mode set with `tvservice` and DRM
Replies: 8
Views: 3414

Re: Relationship between mode set with `tvservice` and DRM

The behaviour from a timing perspective is identical, and the kernel DRM API has a magic function called drm_default_rgb_quant_range to deal with the RGB range (it compares the mode against the standard CEA modes, and returns HDMI_QUANTIZATION_RANGE_LIMITED if it matches and isn't VGA). None of thi...
by dividuum
Thu Aug 22, 2019 11:01 am
Forum: Graphics programming
Topic: MMAL video playback into DRM planes.
Replies: 7
Views: 3641

Re: MMAL video playback into DRM planes.

Correct, FKMS is not exposing transpose as it has to be done via a two pass render using the transposer hardware block. It requires an extra buffer for the transposed element, and the transposer is limited to 1080p when transposing. It also falls over when it comes to updating the elements - DRM is...
by dividuum
Thu Aug 22, 2019 10:43 am
Forum: Graphics programming
Topic: Display device id of primary monitor??
Replies: 1
Views: 957

Re: Display device id of primary monitor??

Hi All I have recently got my new pi4 device. However, I am getting trouble trying to get the device id of my primary monitor. I am using vc_dispmanx_display_open(int device_id) to open a display when i want to draw something to that monitor and I managed to find that the device_id for two display ...
by dividuum
Wed Aug 21, 2019 1:02 pm
Forum: Graphics programming
Topic: Relationship between mode set with `tvservice` and DRM
Replies: 8
Views: 3414

Re: Relationship between mode set with `tvservice` and DRM

DRM is sitting on top of the firmware modesetting. tvservice is an alternate way into the same subsystem. Using tvservice will cause grief with DRM as DRM has no idea that things have changed (it believes it is master and no one else can change things). Thanks for the clarification. modetest -M vc4...
by dividuum
Fri Aug 16, 2019 9:14 pm
Forum: Graphics programming
Topic: MMAL video playback into DRM planes.
Replies: 7
Views: 3641

Re: MMAL video playback into DRM planes.

Continuing the journey speaking to myself: The rotation seems to be indeed limited to a few options. It it looks like it's impossible to rotate a video by 90/270 degree right now. Is that something that will be supported in the future? Or is the `video_render` component the only way to achieve this?
by dividuum
Thu Aug 15, 2019 2:17 pm
Forum: Graphics programming
Topic: Relationship between mode set with `tvservice` and DRM
Replies: 8
Views: 3414

Relationship between mode set with `tvservice` and DRM

If I set a video mode with `tvservice` on a FullHD display, for example like this: root@raspberrypi:~# tvservice -e "CEA 4" Powering on HDMI with explicit settings (CEA mode 4) root@raspberrypi:~# tvservice -s state 0xa [HDMI CEA (4) RGB lim 16:9], 1280x720 @ 60.00Hz, progressive The modetest tool d...
by dividuum
Wed Aug 14, 2019 4:40 pm
Forum: Graphics programming
Topic: MMAL video playback into DRM planes.
Replies: 7
Views: 3641

Re: MMAL video playback into DRM planes.

Anything? Anyone? I was able to figure out how to rotate a DRM plane (although only the rotate-180 bitmask value seem to work) and found the "zpos" property. Looking at the output of modeset (below) and my own output doesn't mark the "zpos" plane property as immutable. I tried setting various values...
by dividuum
Fri Aug 09, 2019 10:03 pm
Forum: Graphics programming
Topic: Strange segfault after several hours of running program
Replies: 30
Views: 5560

Re: Strange segfault after several hours of running program

Mind giving a few insights on how scheduling works now? Previously with OMX I've used the schedule component together with a clock to sync audio and video. How does a similar pipeline now work with mmal? Are you using the schedule component now?
by dividuum
Fri Aug 09, 2019 8:49 pm
Forum: OpenGLES
Topic: Overlay OpenGLES and MMAL h264 decoder
Replies: 4
Views: 3555

Re: Overlay OpenGLES and MMAL h264 decoder

I got that working using the old OMX API from my existing code. I'm currently porting this over to the MMAL API and run into basically the same issues myself. See my post at https://www.raspberrypi.org/forums/view ... 7&t=248353
by dividuum
Fri Aug 09, 2019 8:40 pm
Forum: OpenGLES
Topic: Overlay OpenGLES and MMAL h264 decoder
Replies: 4
Views: 3555

Re: Overlay OpenGLES and MMAL h264 decoder

A good start is probably to take a look at the output of `vcgencmd dispmanx_list`. It'll show your the arrangement of layers.
by dividuum
Fri Aug 09, 2019 6:04 pm
Forum: Graphics programming
Topic: MMAL video playback into DRM planes.
Replies: 7
Views: 3641

MMAL video playback into DRM planes.

I'm currently working on a DRM/MMAL based video playback using the new Pi4 APIs. Essentially I'm trying to replicate (as a first step) what omxplayer does with dispmanx and OMX. I'm having a few difficulties understanding how that's all supposed to work. With OMX it was pretty simple: Create a dispm...
by dividuum
Thu Aug 08, 2019 4:37 pm
Forum: Graphics programming
Topic: Pi4: MMAL video in GL (on DRM). Flickering texture. Any idea what might be wrong?
Replies: 6
Views: 2168

Re: Pi4: MMAL video in GL (on DRM). Flickering texture. Any idea what might be wrong?

Are those freshly created textures on the change? In which case something may well be memsetting it to 0, leaving a transparent alpha channel. I'm not sure I fully understand what you're asking, but right now the code creates a configurable number (I tried from 2 to 10) number of textures with the ...
by dividuum
Thu Aug 08, 2019 3:33 pm
Forum: OpenMAX
Topic: OpenMax video covers all X window and keeps topmost
Replies: 11
Views: 6085

Re: OpenMax video covers all X window and keeps topmost

You should be able to find that out if you run `vcgencmd dispmanx_list`. You'll see the various dispmanx parameters used to compose the final video output.
by dividuum
Thu Aug 08, 2019 3:05 pm
Forum: Graphics programming
Topic: Pi4: MMAL video in GL (on DRM). Flickering texture. Any idea what might be wrong?
Replies: 6
Views: 2168

Re: Pi4: MMAL video in GL (on DRM). Flickering texture. Any idea what might be wrong?

Can you add frame numbers to the top and bottom half of the images and check to see if the top and bottom halves are from the same image? I can't quite tell from your image, but it looks like the bottom half is from an earlier frame, in which case I have a guess. Unfortunately that doesn't seem to ...
by dividuum
Thu Aug 08, 2019 2:33 pm
Forum: OpenGLES
Topic: Missing egl/gl function
Replies: 7
Views: 4641

Re: Missing egl/gl function

aire39 wrote:
Thu Aug 08, 2019 2:04 pm
They all load libEGL_mesa.so but I didn't see any of the combinations load libGL_mesa.so lib at least on my pi4.
Right. You're correct. I meant libEGL_mesa.so, not libGL_mesa.so. I've fixed my previous post. I've yet to understand how all those GL lib play together on the Pi4.

Go to advanced search