Searched refs:SurfaceTexture (Results 1 - 25 of 68) sorted by relevance

123

/frameworks/base/graphics/java/android/graphics/
H A DSurfaceTexture.java31 * {@link android.view.Surface} created from a SurfaceTexture can be used as an output
35 * when the SurfaceTexture was created are updated to contain the most recent image from the image
38 * <p>A SurfaceTexture may also be used in place of a SurfaceHolder when specifying the output
40 * frames from the image stream to be sent to the SurfaceTexture object rather than to the device's
64 * <p>SurfaceTexture objects may be created on any thread. {@link #updateTexImage} may only be
69 public class SurfaceTexture { class
86 void onFrameAvailable(SurfaceTexture surfaceTexture);
90 * Exception thrown when a SurfaceTexture couldn't be created or resized.
106 * Construct a new SurfaceTexture to stream images to a given OpenGL texture.
110 * @throws android.view.Surface.OutOfResourcesException If the SurfaceTexture canno
112 public SurfaceTexture(int texName) { method in class:SurfaceTexture
133 public SurfaceTexture(int texName, boolean singleBufferMode) { method in class:SurfaceTexture
160 public SurfaceTexture(boolean singleBufferMode) { method in class:SurfaceTexture
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DRSTextureView.java20 import android.graphics.SurfaceTexture;
33 private SurfaceTexture mSurfaceTexture;
68 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
81 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
94 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
109 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGetBitmapActivity.java21 import android.graphics.SurfaceTexture;
81 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
94 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
99 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
106 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
H A DCanvasTextureViewActivity.java23 import android.graphics.SurfaceTexture;
50 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
56 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
61 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
67 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
H A DHardwareCanvasTextureViewActivity.java23 import android.graphics.SurfaceTexture;
51 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
57 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
62 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
68 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
H A DTextureViewActivity.java22 import android.graphics.SurfaceTexture;
101 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
147 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
152 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
159 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
H A DSingleFrameTextureViewTestActivity.java25 import android.graphics.SurfaceTexture;
78 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
201 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
206 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
213 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
H A DGLTextureViewActivity.java25 import android.graphics.SurfaceTexture;
91 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
111 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
115 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
126 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
138 private final SurfaceTexture mSurface;
147 RenderThread(Resources resources, SurfaceTexture surface) {
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DGlTextureViewActivity.java21 import android.graphics.SurfaceTexture;
49 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
71 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
75 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
86 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
H A DSurfaceTextureSource.java29 import android.graphics.SurfaceTexture;
35 /** <p>A filter that converts textures from a SurfaceTexture object into frames for
39 * the graph, use the SurfaceTexture object passed to the callback to feed
40 * frames into the filter graph. For example, pass the SurfaceTexture into
42 * android.hardware.Camera.setPreviewTexture(android.graphics.SurfaceTexture)}.
46 * should obtain from wherever the SurfaceTexture data is coming from to avoid
57 public void onSurfaceTextureSourceReady(SurfaceTexture source);
59 /** A callback to send the internal SurfaceTexture object to, once it is
62 * place. The SurfaceTexture object passed to this callback is the only way
73 * SurfaceTexture sourc
[all...]
H A DCameraSource.java30 import android.graphics.SurfaceTexture;
72 private SurfaceTexture mSurfaceTexture;
149 mSurfaceTexture = new SurfaceTexture(mCameraFrame.getTextureId());
157 // Connect SurfaceTexture to callback
339 private SurfaceTexture.OnFrameAvailableListener onCameraFrameAvailableListener =
340 new SurfaceTexture.OnFrameAvailableListener() {
342 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
H A DMediaSource.java32 import android.graphics.SurfaceTexture;
99 private SurfaceTexture mSurfaceTexture;
111 // shader because reading from a SurfaceTexture requires the
124 // SurfaceTexture to get the final transform to be set on the media source.
188 // SurfaceTexture defines (0,0) to be bottom-left. The filter framework
211 mSurfaceTexture = new SurfaceTexture(mMediaFrame.getTextureId());
502 // Connect SurfaceTexture to callback
557 private SurfaceTexture.OnFrameAvailableListener onMediaFrameAvailableListener =
558 new SurfaceTexture.OnFrameAvailableListener() {
559 public void onFrameAvailable(SurfaceTexture surfaceTextur
[all...]
/frameworks/base/core/java/android/view/
H A DTextureView.java26 import android.graphics.SurfaceTexture;
46 * {@link SurfaceTexture}. The {@link SurfaceTexture} can then be used to
64 * public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
75 * public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
79 * public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
85 * public void onSurfaceTextureUpdated(SurfaceTexture surface) {
91 * <p>A TextureView's SurfaceTexture can be obtained either by invoking
93 * It is important to know that a SurfaceTexture is available only after the
96 * be notified when the SurfaceTexture become
[all...]
H A DHardwareLayer.java23 import android.graphics.SurfaceTexture;
134 public void setSurfaceTexture(SurfaceTexture surface) {
151 private static native void nSetSurfaceTexture(long layerUpdater, SurfaceTexture surface);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DGpuVideoTrackDecoder.java20 import android.graphics.SurfaceTexture;
21 import android.graphics.SurfaceTexture.OnFrameAvailableListener;
36 * {@link SurfaceTexture}.
57 private final SurfaceTexture mSurfaceTexture; // Access guarded by mFrameMonitor.
73 mSurfaceTexture = new SurfaceTexture(mTextureSource.getTextureId());
77 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
126 * the internal {@link SurfaceTexture}.
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
H A DRsYuv.java24 import android.graphics.SurfaceTexture;
127 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
134 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
141 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
149 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
H A DCameraPreviewActivity.java29 import android.graphics.SurfaceTexture;
64 private SurfaceTexture mPreviewTexture;
138 public void onSurfaceTextureAvailable(SurfaceTexture surface,
148 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
152 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
157 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
/frameworks/native/opengl/tools/glgen/stubs/egl/
H A DeglCreateWindowSurface.java39 } else if (win instanceof SurfaceTexture) {
45 "Surface, SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " +
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLEnvironment.java21 import android.graphics.SurfaceTexture;
110 public int registerSurfaceTexture(SurfaceTexture surfaceTexture, int width, int height) {
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DBlockingGLTextureView.java20 import android.graphics.SurfaceTexture;
66 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width,
73 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width,
79 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
87 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
187 * Create an egl surface for the current SurfaceTexture surface. If a surface
192 public boolean createSurface(SurfaceTexture surface) {
318 private SurfaceTexture mSurface;
343 public void setSurface(SurfaceTexture surface) {
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DMyGLSurfaceView.java19 import android.graphics.SurfaceTexture;
75 public SurfaceTexture getSurfaceTexture() {
80 class MyRenderer implements GLSurfaceView.Renderer, SurfaceTexture.OnFrameAvailableListener {
213 * Create the SurfaceTexture that will feed this textureID, and pass it to the camera
216 mSurface = new SurfaceTexture(mTextureID);
226 synchronized public void onFrameAvailable(SurfaceTexture surface) {
227 /* For simplicity, SurfaceTexture calls here when it has new
337 private SurfaceTexture mSurface;
345 public SurfaceTexture getSurfaceTexture() {
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DSurfaceAndTextureViews.java22 import android.graphics.SurfaceTexture;
173 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
174 System.out.println("SurfaceTexture available");
178 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
179 System.out.println("SurfaceTexture size changed to " + width + ", " + height);
186 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
191 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
192 System.out.println("SurfaceTexture updated");
/frameworks/rs/tests/java_api/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java24 import android.graphics.SurfaceTexture;
52 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
55 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
61 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
68 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DCameraStreamer.java20 import android.graphics.SurfaceTexture;
281 protected SurfaceTexture mPreviewSurfaceTexture = null;
284 protected HashMap<EGLContext, SurfaceTexture> mTargetSurfaceTextures
285 = new HashMap<EGLContext, SurfaceTexture>();
288 protected HashMap<SurfaceTexture, RenderTarget> mClientRenderTargets
289 = new HashMap<SurfaceTexture, RenderTarget>();
319 SurfaceTexture surfTex = surfaceTextureForContext(context);
322 surfTex.setOnFrameAvailableListener(new SurfaceTexture.OnFrameAvailableListener() {
324 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
338 SurfaceTexture surfTe
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DOverlayDisplayWindow.java22 import android.graphics.SurfaceTexture;
318 public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture,
326 public boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) {
332 public void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture,
337 public void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) {
391 public void onWindowCreated(SurfaceTexture surfaceTexture,

Completed in 505 milliseconds

123