¡@

Home 

2014/10/16 ¤W¤È 08:25:29

android Programming Glossary: surfacetexture

Playing video on TextureView

http://stackoverflow.com/questions/10736517/playing-video-on-textureview

extends Activity implements TextureView.SurfaceTextureListener private MediaPlayer mMediaPlayer private TextureView.. mPreview TextureView findViewById R.id.surface mPreview.setSurfaceTextureListener this extras getIntent .getExtras setContentView mPreview.. getIntent .getExtras setContentView mPreview public void onSurfaceTextureAvailable SurfaceTexture surface int width int height Surface..

Android SDK: Get raw preview camera image without displaying it

http://stackoverflow.com/questions/10775942/android-sdk-get-raw-preview-camera-image-without-displaying-it

Set up an OpenGL context OpenGL ES 2 tutorial and create a SurfaceTexture object in that context. Then pass that object to setPreviewTexture.. and start preview. Then in your OpenGL code you can call SurfaceTexture.updateTexImage and the texture ID associated with the SurfaceTexture.. and the texture ID associated with the SurfaceTexture will be updated to the latest preview frame from the camera...

really confused with setPreviewCallback in Android, need advice

http://stackoverflow.com/questions/11544877/really-confused-with-setpreviewcallback-in-android-need-advice

it. This would be inefficient. I would suggest you use SurfaceTexture instead and use 'onFrameAvailable' callback to get the frames..

Modifying camera output using SurfaceTexture and OpenGL

http://stackoverflow.com/questions/12519235/modifying-camera-output-using-surfacetexture-and-opengl

camera output using SurfaceTexture and OpenGL I am trying to filter the stream coming from the.. method is invoked from the renderer it creates a new SurfaceTexture object using the openGL texture object passed. It then sets.. It then creates opens the camera object sets the created SurfaceTexture as the video stream's target and starts the camera feed. When..

Render epub files in android

http://stackoverflow.com/questions/5640728/render-epub-files-in-android

Fighting with SurfaceView, Camera and OpenGL

http://stackoverflow.com/questions/5648221/fighting-with-surfaceview-camera-and-opengl

API level 8 you can just show the camera in an OpenGL SurfaceTexture. http developer.android.com reference android hardware Camera.html#setPreviewTexture..

Playing video on TextureView

http://stackoverflow.com/questions/10736517/playing-video-on-textureview

Update Here is how you can do it public class MediaPlayerDemo_Video extends Activity implements TextureView.SurfaceTextureListener private MediaPlayer mMediaPlayer private TextureView mPreview @Override public void onCreate Bundle icicle super.onCreate.. public void onCreate Bundle icicle super.onCreate icicle mPreview TextureView findViewById R.id.surface mPreview.setSurfaceTextureListener this extras getIntent .getExtras setContentView mPreview public void onSurfaceTextureAvailable SurfaceTexture surface.. R.id.surface mPreview.setSurfaceTextureListener this extras getIntent .getExtras setContentView mPreview public void onSurfaceTextureAvailable SurfaceTexture surface int width int height Surface s new Surface surface try mMediaPlayer new MediaPlayer mMediaPlayer.setDataSource..

Android SDK: Get raw preview camera image without displaying it

http://stackoverflow.com/questions/10775942/android-sdk-get-raw-preview-camera-image-without-displaying-it

use this in two ways Do your actual processing on the GPU Set up an OpenGL context OpenGL ES 2 tutorial and create a SurfaceTexture object in that context. Then pass that object to setPreviewTexture and start preview. Then in your OpenGL code you can call.. in that context. Then pass that object to setPreviewTexture and start preview. Then in your OpenGL code you can call SurfaceTexture.updateTexImage and the texture ID associated with the SurfaceTexture will be updated to the latest preview frame from the.. preview. Then in your OpenGL code you can call SurfaceTexture.updateTexImage and the texture ID associated with the SurfaceTexture will be updated to the latest preview frame from the camera. You can also read back the RGB texture data to the CPU for..

really confused with setPreviewCallback in Android, need advice

http://stackoverflow.com/questions/11544877/really-confused-with-setpreviewcallback-in-android-need-advice

copied buffers you need to create a new view and overwrite it. This would be inefficient. I would suggest you use SurfaceTexture instead and use 'onFrameAvailable' callback to get the frames and then draw display manually. An example of this can be..

Modifying camera output using SurfaceTexture and OpenGL

http://stackoverflow.com/questions/12519235/modifying-camera-output-using-surfacetexture-and-opengl

camera output using SurfaceTexture and OpenGL I am trying to filter the stream coming from the camera hardware by running it through an openGL filter then.. MainActivity with the texture object ID. When the MainActivity method is invoked from the renderer it creates a new SurfaceTexture object using the openGL texture object passed. It then sets itself as the surface's onFrameListener. It then creates opens.. passed. It then sets itself as the surface's onFrameListener. It then creates opens the camera object sets the created SurfaceTexture as the video stream's target and starts the camera feed. When a frame is available from the feed the onFrameAvailable sends..

Render epub files in android

http://stackoverflow.com/questions/5640728/render-epub-files-in-android

Fighting with SurfaceView, Camera and OpenGL

http://stackoverflow.com/questions/5648221/fighting-with-surfaceview-camera-and-opengl

the right way. Or if you're only targeting Android 3.0 or above API level 8 you can just show the camera in an OpenGL SurfaceTexture. http developer.android.com reference android hardware Camera.html#setPreviewTexture android.graphics.SurfaceTexture share..