Lines Matching refs:SurfaceTexture
29 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 source is known, use it here to minimize resampling. */
78 * SurfaceTexture source is known, use it here to minimize resampling. */
83 * SurfaceTexture, or whether it will output an old frame again if a new
105 private SurfaceTexture mSurfaceTexture;
171 // Create SurfaceTexture anew each time - it can use substantial memory.
172 mSurfaceTexture = new SurfaceTexture(mMediaFrame.getTextureId());
173 // Connect SurfaceTexture to callback
175 // Connect SurfaceTexture to source
247 private SurfaceTexture.OnFrameAvailableListener onFrameAvailableListener =
248 new SurfaceTexture.OnFrameAvailableListener() {
249 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
250 if (mLogVerbose) Log.v(TAG, "New frame from SurfaceTexture");