Lines Matching refs:SurfaceTexture

31  * {@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 {
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 cannot be created.
112 public SurfaceTexture(int texName) {
117 * Construct a new SurfaceTexture to stream images to a given OpenGL texture.
129 * @param singleBufferMode whether the SurfaceTexture will be in single buffered mode.
131 * @throws android.view.Surface.OutOfResourcesException If the SurfaceTexture cannot be created.
133 public SurfaceTexture(int texName, boolean singleBufferMode) {
136 nativeInit(false, texName, singleBufferMode, new WeakReference<SurfaceTexture>(this));
140 * Construct a new SurfaceTexture to stream images to a given OpenGL texture.
151 * Unlike {@link #SurfaceTexture(int, boolean)}, which takes an OpenGL texture object name,
152 * this constructor creates the SurfaceTexture in detached mode. A texture name must be passed
156 * @param singleBufferMode whether the SurfaceTexture will be in single buffered mode.
158 * @throws android.view.Surface.OutOfResourcesException If the SurfaceTexture cannot be created.
160 public SurfaceTexture(boolean singleBufferMode) {
163 nativeInit(true, 0, singleBufferMode, new WeakReference<SurfaceTexture>(this));
168 * SurfaceTexture.
183 * SurfaceTexture.
206 listener.onFrameAvailable(SurfaceTexture.this);
249 * For more information see {@link #SurfaceTexture(int, boolean)}.
256 * Detach the SurfaceTexture from the OpenGL ES context that owns the OpenGL ES texture object.
262 * This can be used to access the SurfaceTexture image contents from multiple OpenGL ES
274 * Attach the SurfaceTexture to the OpenGL ES context that is current on the calling thread. A
275 * new OpenGL ES texture object is created and populated with the SurfaceTexture image frame
279 * This can be used to access the SurfaceTexture image contents from multiple OpenGL ES
325 * the SurfaceTexture. Unless otherwise specified by the image source, timestamps cannot
326 * generally be compared across SurfaceTexture instances, or across multiple program
335 * release() frees all the buffers and puts the SurfaceTexture into the
336 * 'abandoned' state. Once put in this state the SurfaceTexture can never
341 * from the perspective of the the SurfaceTexture, if there are additional
345 * Always call this method when you are done with SurfaceTexture. Failing
356 * Returns true if the SurfaceTexture was released.
377 private static void postEventFromNative(WeakReference<SurfaceTexture> weakSelf) {
378 SurfaceTexture st = weakSelf.get();
388 * Returns true if the SurfaceTexture is single-buffered
396 boolean singleBufferMode, WeakReference<SurfaceTexture> weakSelf)