Forums - Feed in camera frames to GLES

1 post / 0 new
Feed in camera frames to GLES
huah.tu
Join Date: 31 Mar 21
Posts: 1
Posted: Sun, 2023-12-10 23:59

Hi,

We are developing camera recording functions on Linux of QCS610, to better control the content of videos and other purposes, we need to use GLES technology (and GLES context sharing).   On Android, there is a high performance way to integrate it, 

int[] textures = new int[1];
GLES20.glGenTextures(1, textures, 0);
int cameraTexID = textures[0];
SurfaceTexture cameraTexture = new SurfaceTexture(cameraTexID);
Surface glesInSurface = new Surface(cameraTexture);
 

and the resulted glesInSurface can be used to start camera capture.  However, we cannot find similiar way on Linux, please help about how to achieve in HW-accellerated way, or where can I find more information.

p.s. We cannot find the correct way to create EGL surface from H264 encoder too.

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.