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
1
vote
0 answers

TextureView shows empty screen with OpenGl

I am trying to use open gl in my android app . i followed this doc https://developer.android.com/training/graphics/opengl/draw and i'm able to draw triangles and some complex animations using GlSurfaceView . Now i want to use these inside a list but…
Rahul
  • 26
  • 1
  • 6
1
vote
1 answer

Keep surface upon orientation change (using GLSurfaceView)

I'm trying to keep some rendering going on (without resetting it) even upon destroy and re-creation of my activity (due to an orientation change). I took a look into Grafika's DoubleDecodeActivity, which is very clarifying on how to do it. However,…
Alexandre Bodi
  • 344
  • 2
  • 12
1
vote
0 answers

How to add audio to grafika's continuous capture

Hello I'm using google's grafika library to create a custom camera app and so far I managed to do everything I want except adding audio to the videos. I searched all over the internet for a similar example but I couldn't find answer to my problem. I…
1
vote
1 answer

Modify ExtractMpegFramesTest example to render decoded output on screen

I'm trying to modify ExtractMpegFramesTest to do the rendering on screen and still use glReadPixels to extract the frames. I copied the relevant code for extracting the frames from ExtractMpegFramesTest (the CodecOutputSurface and STextureRender…
Guy S
  • 1,424
  • 1
  • 15
  • 34
1
vote
0 answers

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() { mDisplaySurface.makeCurrent(); …
dr1v3
  • 151
  • 1
  • 1
  • 9
1
vote
1 answer

Can Android MediaCodec decodes to two Surfaces at the same time?

I'm trying to improve the frame extraction of our app. Basically what I've done is combine the solution from Grafika's MoviePlayer for forward seeking and BigFlake's ExtractMpegFramesTest to extract the frame. For the extraction, I seek back to the…
vxh.viet
  • 388
  • 5
  • 21
1
vote
0 answers

Recording a video using MediaRecorder

I am currently using the TextureFromCameraActivity from Grafika to record a video in square ( 1:1 ) resolution. Therefor I the GLES20.glViewport so that the video gets moved to the top and it appears to be squared. Now I would like to record this…
1
vote
1 answer

Unable to understand BufferQueue sync logic that helps for async display

I am reading android architecture from this link. At the very first attempt i could not understand everything but bits and pieces here and there. What i understand? 1) There something called 'sync framework'. - OK 2) This sync framework can be…
DrunkenMaster
  • 1,218
  • 3
  • 14
  • 28
1
vote
1 answer

Issue in passing Egl configured surface to native and push the data

First, thanks to fadden for your wonderful examples. I tried following this ContinuousCapture.java example, and produced the below program. 1) I am trying to display the image into TextureView in the native layer by getting its ANativeWwindow…
DrunkenMaster
  • 1,218
  • 3
  • 14
  • 28
1
vote
0 answers

Android MediaCodec SIGSEGV error when Encoding from Surface

I'm working with some code that is based heavily on the Grafika sample application from Google/Andy McFadden. I'm seeing an intermittent low level crash every now and then and the stack trace looks like this: F/libc (15674): Fatal signal 11…
Dean Wild
  • 5,886
  • 3
  • 38
  • 45
1
vote
1 answer

Grafika and OpenGL to record a video on android in square shape

I am currently trying to record a video in square shape and create a output as .mp4. It seems to be really challenging. I tried diffrent approches including: OnPreviewFrame and FFMpeg. But never got a satisfing result. Today i found Grafika. And it…
1
vote
1 answer

Playing Video with OpenGL and MediaCodec

I'm trying to play the same video at the same time in two different textureviews. I've used code from grafika (MoviePlayer and ContinuousCaptureActivity) to try to get it to work (thanks fadden). To make the problem simpler, I'm trying to do it with…
Kongo
  • 71
  • 1
  • 2
  • 12
1
vote
2 answers

Picture produced by saveFrame of Grafika is upside-down

I wrote a demo according to Continuous capture activity.I wanted to save the first frame of the video as a jpeg file, so I used the saveFrame() function which was already prepared by Grafika. The source code of the function is as…
dragonfly
  • 1,151
  • 14
  • 35
1
vote
1 answer

Field of camera preview is smaller if I use the way of preview in grifika's ContinuousCaptureActivity

We know that we will get a lager field of preview at the same distance when camera preview ratio set to 4:3 instead of 16:9, the detail is as follows: Android Camera API - Weird zoom effect But I encountered a problem when I worked with android…
dragonfly
  • 1,151
  • 14
  • 35
1
vote
1 answer

Render video effect one time for each frame in Grafika - CameraCaptureActivity

I am referring to the demo app Grafika, in which the CameraCaptureActivity records a video while showing a live preview of the effects applied. While recording in the CameraCaptureActivity, any effect that is applied to the frame that comes from the…
Samarth
  • 201
  • 1
  • 3