Questions tagged [grafika]

Grafika is an open-source SDK app which provides a collection of hacks for testing graphics features. It is developed by Google for API 18 (Android 4.3).

Grafika is an app which provides a collection of hacks for testing graphics features. It is developed by Google for API 18 ().

Grafika is available on GitHub.

71 questions
0
votes
0 answers

Process image with android opengl es but output image is weird in a certain device

I wrote a demo about camera which is similar to ContinuousCaptureActivity of grafika (Source code of ContinuousCaptureActivity.java). For every frame, I added some operations besides drawing the frame to screen. I create a fbo, then bind it and draw…
dragonfly
  • 1,151
  • 14
  • 35
0
votes
0 answers

Unable to blit from External Texture to EGLSurface in android

When i have tried to render texture and transformation matrix to the EGLSurface, no display is seen in the view. As a follow up of this issue , slightly i have modified slightly the code by following grafika/fadden sample code continuous…
DrunkenMaster
  • 1,218
  • 3
  • 14
  • 28
0
votes
1 answer

Unable to set background color and clear the output in EGL

I have tried below sample code in Android to learn OpenGL. but i could not see the output expected. Please point out where is the issue ? I have used fadden's contribution as a reference. grafika-fadden Step 1: I have created renderThread with…
DrunkenMaster
  • 1,218
  • 3
  • 14
  • 28
0
votes
1 answer

How to make the area of camera preview be half of SurfaceView in ContinuousCaptureActivity

I want to make the area of camera preview be half of SurfaceView, so I modify the code of ContinuousCaptureActivity. The detail is as follows: Use GLES20.glViewport(0, 0, viewWidth / 2, viewHeight / 2); to replace…
dragonfly
  • 1,151
  • 14
  • 35
0
votes
1 answer

Texture2dProgram - where is the glUniform for sTexture defined

looking at the code in Texture2dProgram.java I cannot find the where the uniform for sTexture is defined. Others like aPosition are defined in the constructor. Being a novice in opengl it looks like the fragment shader uses the current texture unit…
0
votes
1 answer

SurfaceTexture AttachToGLContext and Surface

I'm trying to find out whether I need to remake a Surface if I want to call the attachToGLContext method from a SurfaceTexture. I tried to look in the android documentation, but there is no mention. I'm guessing not because as far as I'm aware,…
Kongo
  • 71
  • 1
  • 2
  • 12
0
votes
1 answer

How to switch front/back camera in Android by GLSurfaceView?

I have posted an issue to grafika, but it seems there is nobody to maintain the project now. I want to use the CameraCaptureActivity which implemented by GLSurfaceView to switch front/back camera, as following: public boolean switchCamera() { …
Jerikc XIONG
  • 3,517
  • 5
  • 42
  • 71
0
votes
0 answers

EglCore.release() of grafika cause application to terminate on GT-I9500

I refered to ContinuousCaptureActivity of grafika to implement a demo which records video with MediaCodec. The demo worked fine in most cases, but crashed on my GT-I9500 device when back key pressed ( this crash is undetectable because we just…
dragonfly
  • 1,151
  • 14
  • 35
0
votes
1 answer

Delay frame while encoding video file using google/grafika

I'm using google/grafika's examples to decode, transform and encode back to file a video clip. The transformation is downscaling and translating, it is done via shader stored in Texture2dProgram. My main activity is based on CameraCaptureActivity.…
Krzysztof Kansy
  • 305
  • 2
  • 13
0
votes
1 answer

Is it possible/how to feed MediaCodec decoded frames to MediaCodec encoder directly?

My goal is to splice video fragments from several video files. Fragments are defined by the arbitrary start time and end times. Initially I wanted to do it using a library like mp4parser but it can only cut streams at sync (IFRAME) points, while I…
0
votes
1 answer

Grafika CameraCaptureActivity not working

I'm trying to test this sample in my galaxy S3 and everything seems to work well but when i try to play the recorded file, no player can play the file. I send the video to my computer and tried with VLC, gom player, etc and always get an error like…
borja
  • 125
  • 9
1 2 3 4
5