how to load android camera frame into opengl es texture via ndk?

Leong Richy

I've been studying opengl es recently and trying to access the camera on android platform. All I need to do is to load camera data frame by frame through ndk and then load it into GL texture for further process. Is there any help or suggestion? It is highly appreciated if there is sample code! thank you!

fadden

Send the camera output to a SurfaceTexture. Each frame will be available as an "external" GLES texture. This is significantly more efficient than receiving camera frames in a buffer and manually uploading them with glTexImage2D().

See Grafika (https://github.com/google/grafika) for multiple examples. The code there is written in the Java language, but GLES is essentially the same in Java or C/C++.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

how to load android camera frame into opengl es texture via ndk?

From Dev

How to render to a depth texture in OpenGL ES on Android

From Dev

OpenGL ES 2.0 - How to efficiently copy a Texture into Frame Buffer

From Dev

Load huge texture in parts in OpenGL ES 2.0

From Dev

how to assign one texture to another efficiently in OpenGL ES for Android

From Dev

How to check an uploaded texture in OpenGL ES 2.0 in Android?

From Dev

How to load an OpenGL texture with the JuicyPixels library in Haskell

From Dev

How to load an OpenGL texture with the JuicyPixels library in Haskell

From Dev

Android OpenGL ES 2 Texture Quadrants Rotated

From Dev

Android OpenGL.ES Texture/Image Drawing

From Dev

Camera direct to OpenGL texture on iOS

From Dev

How to add some pixels on the texture in OpenGL ES

From Dev

How to add some pixels on the texture in OpenGL ES

From Dev

Android OpenGL: How to change bitmap attached to texture?

From Dev

How to Load a 3D Object in OpenGL ES 2.0 for Android?

From Dev

Android - How to renderer video texture on 3D cube with opengl-es?

From Dev

OpenGL ES: Texture a plane

From Dev

How does the rendering iteration work in Android Native App using NDK, JNI in OpenGL ES?

From Dev

android opengl texture overlapping

From Dev

Android Opengl Circle Texture

From Dev

OpenGL Texture Mipmaps: Load and Unload

From Dev

Android drawing texture with OpenGL ES 2.0 slow on some devices

From Dev

Texture compression strategy for Android OpenGL ES that caters for alphas

From Dev

Android OpenGL ES 2.0 Texture setting does not seem to work

From Dev

Android drawing texture with OpenGL ES 2.0 slow on some devices

From Dev

Texture compression strategy for Android OpenGL ES that caters for alphas

From Dev

OpenGL ES 2.0 in Android NDK: Nothing being drawn

From Dev

OpenGL ES 2.0 in Android NDK: Nothing being drawn

From Dev

OpenGL Texture sampling different depending on camera position

Related Related

  1. 1

    how to load android camera frame into opengl es texture via ndk?

  2. 2

    How to render to a depth texture in OpenGL ES on Android

  3. 3

    OpenGL ES 2.0 - How to efficiently copy a Texture into Frame Buffer

  4. 4

    Load huge texture in parts in OpenGL ES 2.0

  5. 5

    how to assign one texture to another efficiently in OpenGL ES for Android

  6. 6

    How to check an uploaded texture in OpenGL ES 2.0 in Android?

  7. 7

    How to load an OpenGL texture with the JuicyPixels library in Haskell

  8. 8

    How to load an OpenGL texture with the JuicyPixels library in Haskell

  9. 9

    Android OpenGL ES 2 Texture Quadrants Rotated

  10. 10

    Android OpenGL.ES Texture/Image Drawing

  11. 11

    Camera direct to OpenGL texture on iOS

  12. 12

    How to add some pixels on the texture in OpenGL ES

  13. 13

    How to add some pixels on the texture in OpenGL ES

  14. 14

    Android OpenGL: How to change bitmap attached to texture?

  15. 15

    How to Load a 3D Object in OpenGL ES 2.0 for Android?

  16. 16

    Android - How to renderer video texture on 3D cube with opengl-es?

  17. 17

    OpenGL ES: Texture a plane

  18. 18

    How does the rendering iteration work in Android Native App using NDK, JNI in OpenGL ES?

  19. 19

    android opengl texture overlapping

  20. 20

    Android Opengl Circle Texture

  21. 21

    OpenGL Texture Mipmaps: Load and Unload

  22. 22

    Android drawing texture with OpenGL ES 2.0 slow on some devices

  23. 23

    Texture compression strategy for Android OpenGL ES that caters for alphas

  24. 24

    Android OpenGL ES 2.0 Texture setting does not seem to work

  25. 25

    Android drawing texture with OpenGL ES 2.0 slow on some devices

  26. 26

    Texture compression strategy for Android OpenGL ES that caters for alphas

  27. 27

    OpenGL ES 2.0 in Android NDK: Nothing being drawn

  28. 28

    OpenGL ES 2.0 in Android NDK: Nothing being drawn

  29. 29

    OpenGL Texture sampling different depending on camera position

HotTag

Archive