Questions tagged [egl]

EGL™ is an interface between Khronos rendering APIs such as OpenGL ES or OpenVG and the underlying native platform window system. It handles graphics context management, surface/buffer binding, and rendering synchronization and enables high-performance, accelerated, mixed-mode 2D and 3D rendering using other Khronos APIs.

0
votes
1answer
53 views

EGL ERROR: “texture resource is NULL, no level was specified”

I get an EGL error: EGL ERROR: type = 0x824c, severity = 0x9146, message ="texture resource is NULL, no level was specified" This error appears when executing glTextSubImage for texId1 in the first ...
0
votes
1answer
33 views

glInvalidateFramebuffer and data usability time

I render to a number of FBOs with the intent of binding them as a texture in a later drawcall. As far as I know, I should call glInvalidateFramebuffer if I do not intend the data in the FBOs to be ...
0
votes
0answers
30 views

Linking vertex shader fails when running with EGL

I use a very simple vertex shader program in my application; it compiles and links OK when I use the GLEW or GLUT library. But I need to run without X11, so I try to use it with the EGL library, and ...
0
votes
0answers
20 views

Reading the frames processed by Renderer with MediaCodec encoder

Currently I am working with Camera2 API and have managed to move the camera frames processing to the OpenGL context (currently for preview only); for this I bind a Renderer to the GlTextureView (a ...
0
votes
0answers
19 views

What does a GLX equivalent of eglBindTexImage look like?

On making an in-process compositor for embedded use the EGL eglBindTexImage looks like a promising solution for enabling the compositor to use OpenGL itself without messing with any client OpenGL ...
0
votes
1answer
39 views

eglSwapBuffers fails with EGL_BAD_SURFACE when using a Surface from MediaCodec

I'm trying to encode a movie using MediaCodec and Surfaces (pixel buffer mode works, but performance is not good enough). However, every time I try to call eglSwapBuffers(), it fails with ...
1
vote
0answers
18 views

Calling ApplicationInfo.loadLabel too many times leads to crash

I have a severe issue about getting the appName from all apps in the device - both systemapps and userapps. The problem arises if there's is too many - in my Samsung S7 userapps and systemapps sums up ...
0
votes
0answers
47 views

Asynctask (progressDialog) - Failed to set damage region EGL_BAD_ACCESS

Help me - I am really stuck on the following issue: The exception is thrown outside the scope of JVM and cannot be handled unless you know the NDK. 03-23 17:48:24.463 18768-18913/se.android.appinfo ...
1
vote
1answer
55 views

Onscreen EGL display using NVidia GPU [closed]

I'm trying to use EGL to open an OpenGL context that draws directly on a display connected to an NVidia GPU on Linux. When opening a EGL display with eglGetDisplay(EGL_DEFAULT_DISPLAY), it seems to ...
0
votes
0answers
48 views

How can I run Qt5 GUI application on Raspbian Stretch Lite (without X)?

On Raspbian Stretch Lite, November 2018 version, with following Qt5 GUI application: #include <QApplication> #include <QLabel> int main(int argc, char *argv[]) { QApplication app(argc, ...
1
vote
1answer
37 views

android ndk opengl creating protected context

I am trying to create a protected context using opengl on android. I am basing my code off of: https://github.com/googlesamples/android-ndk Using the native activity as my base. I have changed the ...
3
votes
0answers
91 views

Running SDL/OpenGLES application on a specific DISPLAY in XServer

I am trying to port an application to an embedded system that I am trying to design. The embedded system is Raspberry Pi Zero W - based, and uses a custom Yocto build. The application to be ported is ...
0
votes
0answers
86 views

How can I represent ownership and lifetime of EGL types that will be stored in thread-local storage?

Here are the major EGL functions prototypes. typedef void *EGLContext; EGLContext eglCreateContext(EGLDisplay display, EGLConfig config, EGLContext share_context, EGLint const * ...
0
votes
1answer
62 views

Is there any way to draw EGL to /dev/fb1 instead of /dev/fb0 without copying data on a Raspberry Pi?

I found some information here, particularly that EGL doesn't use the /dev/fb* layers https://www.raspberrypi.org/forums/viewtopic.php?t=58952 However, I would like to know if there is a way to swap /...
0
votes
2answers
71 views

recreate eglCreateWindowSurface with same native window

I have written a library using EGL APIs. This library has 'init' and 'deinit' fuctions. In 'init' function Native window id passed by user, using that native window id eglCreateWindowSurface gets ...
0
votes
1answer
36 views

eglCreateFramebuffer() causes EGL_BAD_CONFIG (Invalid EGL frame buffer configuration)

My app on Google Play is causing this error on customer devices (but not on my test devices, nor on Google's prelaunch report devices.) EGL_BAD_CONFIG (Invalid EGL frame buffer configuration) When ...
0
votes
0answers
25 views

How to handle offscreen EGLContext properly on linux when doing massive rendering task?

Here's my situation, I'm working on a video rendering engine that runs on GPU cloud servers with Ubuntu 16.04 64 bit OS. The engine listens to user requests, when it receive a rendering request, it ...
3
votes
2answers
464 views

eglCreateWindowSurface: native_window_api_connect failed

I have a problem that occours only with the latest Samsung Galaxy series when android:hardwareAccelerated is set to false into manifest file As far as i know (tried by myself) it happens on Galaxy S9,...
0
votes
0answers
42 views

can't debunk eglSwapBuffers function

I am trying to thoroughly track from user-space into kernel-space to find somewhere I can hook my fingers in in kernel-space to pull some information for my CPU driver. While trying to understand the ...
0
votes
1answer
44 views

OpenGL post-processing after drawing is complete

I am working with an Android library that renders 2D images using OpenGL in a GLSurfaceView. My goal is to add some post-processing effects to the final image. The source for the library is not ...
0
votes
0answers
39 views

How does Mesa recycle graphic resources?

I have a system running on an Intel debug board with DRM and Mesa. This graphic system use Wayland/Weston and Mesa. And applications are developed with OpenGL ES 2.0. Now, I find, sometimes, if the ...
0
votes
1answer
33 views

How to update a texture raw content by applying to it an OpenGL Filter?

I m under android. I have a texture ID and I want to update the content of this texture (basically I want to apply to this texture an OpenGL filter). Note: I don't want to apply the OpenGL filter on ...
2
votes
1answer
98 views

Does EGL require a GPU?

I am trying to do server-side rendering for a problem that I am working on. EGL provides a way to define a context for OpenGL without the need for a windowing system. I have been able to successfully ...
0
votes
0answers
48 views

Drawing to multiple buffers simultaneously and rendering each buffer Individually to display

My idea and requirement are to allow creating atmost 'n' buffers (where is n<7) during the program execution. So, ideally, I am looking for a way, where I can draw different things to different ...
2
votes
1answer
36 views

Unable to determine plane orientation for Opengl draw

Following is the part of code that I am using to draw a rectangle. And I can see the rectangle on the display but confused with the quadrants and co-ordinates on display plane. int position_loc = ...
1
vote
1answer
73 views

Android: memory leaks when using shared EGL context

I use TextureView for displaying a OpenGL graphics. I have a few TextureView screens. Also I have a lot of graphic content such as sprites or text glyphs, and I don't want to create it again when ...
0
votes
1answer
276 views

Why can't I create a headless OpenGl context with EGL?

I am currently working on a program for which I need a headless opengl context. Ideally, it will be possible to run without an X server on Linux. My research tells me that EGL is the only way to do ...
2
votes
1answer
152 views

eglSwapBuffers never returns

I'm developing a simple game on Raspberry Pi 3. As an operating system I use official Raspbian Stretch Lite. The game is run without X server and developed in C++ using SFML PI library. The problem ...
0
votes
1answer
58 views

Restoring android libGLES.so to default

I've recently been trying to get the Mali Graphics Debugger program working but, found that, unfortunately, it not only doesn't work with my device but also insisted on installing a new alternative to ...
0
votes
0answers
152 views

YUV 4.4.2 OpenGL ES texture

I would like to display my YUV buffer (camera stream) to an OpenGL Texture directly. (without any RGB software conversion) I'm updating a void* correctly. That's works. I have an other piece of code ...
0
votes
1answer
175 views

Can I build my own libEGL.so?

I encountered a bug on my opengl app, sometimes during the app is running a EGL error occurred: E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY) its very frustrating because most of the ...
1
vote
1answer
160 views

Singularity does not “import” OpenGL / EGL libaries

I have a Singularity container with plain simple Ubuntu installed: Bootstrap: docker From: nvidia/cuda:9.0-runtime-ubuntu16.04 #From: ubuntu --> I have tried both %post apt-get update When I ...
0
votes
0answers
100 views

How to blend RGB & BGRA raw images using opengl offscreen framebuffer?

Trying to blend RGB & BGRA raw images in offscreen framebuffer & reading the output buffer by glReadPixels RGB is backgroung image RGBA is foregroubng image With the below source getting ...
0
votes
1answer
64 views

How to display some text with EGL

I would like to display a little text on a EGL surface. Here is the include I'm using : #include <GLES2/gl2.h> #include <GLES/gl.h> #include <GLES/glext.h> #include <EGL/eglext.h&...
0
votes
1answer
142 views

eglCreateWindowSurface set an X position

I'm using opengles to create my own display on Android. I have one monitor and I want to display two surfaces on it (the first is Android and the second is my own display). Note : Monitor resolution ...
1
vote
0answers
52 views

How can I make a transparant SurfaceView with native EGL?

I want to overlay a drawer on a camera SurfaceView, Like this: UI Layer(RGBA) -------- Drawer Layer(RGBA\GLES) -------- Camera Layer Now, I can not make Drawer layer tranparant. 1. Set SurfaceView ...
1
vote
1answer
449 views

Unable to use EGL without X Server on Ubuntu

I'd like to open the OpenGL context without X Server on Ubuntu 16.04. with the nvidia 390.48 driver. I am able to reproduce the results using the official documentation on https://devblogs.nvidia.com/...
0
votes
1answer
230 views

EGL context management on Android

I'm developing a painting app using OpenGL and NDK (C++) and I have to write my own EGL context manager. It should manage EGLContext in a different way than the standard GLSurfaceView does, ...
0
votes
0answers
246 views

YUV to RGB conversion from single texture with shader program giving corrupted image in the display

GLfloat vVertices[] = { -1, 1, 0.0f, // Position 0 0.0f, 1.0f, // TexCoord 0 -1, -1, 0.0f, // Position 1 0.0f, 0.0f, ...
0
votes
1answer
1k views

Only OpenGL ES 1.1 and not 2.0 on Raspberry Pi 3

I'm trying to write an OpenGL ES 2.0 application for the Raspberry Pi 3 (Raspbian Jessie). I installed the following packages: sudo apt install mesa-utils libgl1-mesa-dri libgles2-mesa-dev libglfw-...
0
votes
0answers
119 views

EGL14.eglChooseConfig rejects transparent color configuration

I'm trying to create alternative place to GLSurfaceView where to draw openGL stuff because I want to get that color transparency. However when I run this function int[] numConfigs = new int[1]; ...
2
votes
1answer
786 views

Get bitmap to Unity through Android plugin using GLES20

I'm trying to use the UpdateExternalTexture and CreateExternalTexture to pass a simple bitmap image from an android plugin into unity. On the documentation it says the latter is meant to be used with ...
3
votes
1answer
560 views

Get screenshot of EGL DRM/KMS application

How to get screenshot of graphical application programmatically? Application draw its window using EGL API via DRM/KMS. I use Ubuntu Server 16.04.3 and graphical application written using Qt 5.9.2 ...
5
votes
3answers
1k views

“Missing GL version” from glewInit() using EGL?

I just try to run this: int main(int argc, char **argv) { EGLDisplay display; EGLConfig config; EGLContext context; EGLint num_config; display = eglGetDisplay(EGL_DEFAULT_DISPLAY); if (display == ...
0
votes
0answers
193 views

How to draw bitmap over EglSurface in Google Grafika ContinuousCaptureActivity?

I'm trying to draw some kind of watermark on the video with GLUtils.texImage2D function, but it does not appear on preview and recorded video. What I'm doing wrong? private void drawFrame() { ...
1
vote
1answer
99 views

java.lang.RuntimeException with EGLConfigChooser on PowerVR G6200

On devices using the PowerVR G6200 GPU such as the Sony Xperia M5 (E5603) and Xiaomi Redmi Note 3 (hennessy), creating an EGL context for rendering with OpenGL ES 2 fails, while it works on all other ...
3
votes
2answers
2k views

List screen resolutions using Wayland/Weston

I am porting some tests from x11 to Wayland and there is little to no information on how to list the available resolutions supported. All the examples that uses Wayland and EGL specify manually the ...
0
votes
0answers
58 views

How to wait for the next v-blank without swapping buffers?

In an OpenGL application using EGL on X11 or Wayland, is there a way to wait for the next v-blank without swapping buffers? I'm writing an OpenGL app and I only want to redraw when the content ...
0
votes
0answers
56 views

Invalid operation after eglSwapBuffers

I'm getting 0x0502 Invalid Operation from glGetError() after calling eglSwapBuffers() with a large amount of commands on the frame. (eglGetError says EGL_SUCCESS) I'm not really sure what qualifies a ...
2
votes
0answers
126 views

Mesa 3D: where is the actual pixel data in GBM?

I know that in DRM rendering, the actual pixel data is saved in void mapped data as follows: struct drm_mode_map_dumb arg; memset(&arg, 0, sizeof(arg)); arg.handle = bo->handle; ret = ...

http://mssss.yulina-kosm.ru