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

123

/frameworks/base/include/android_runtime/
H A Dandroid_graphics_SurfaceTexture.h26 class SurfaceTexture;
32 /* Gets the underlying SurfaceTexture from a SurfaceTexture Java object. */
33 extern sp<SurfaceTexture> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz);
/frameworks/base/graphics/java/android/graphics/
H A DSurfaceTexture.java28 * <p>The image stream may come from either camera preview or video decode. A SurfaceTexture
32 * SurfaceTexture object rather than to the device's display. When {@link #updateTexImage} is
33 * called, the contents of the texture object specified when the SurfaceTexture was created are
58 * <p>SurfaceTexture objects may be created on any thread. {@link #updateTexImage} may only be
63 public class SurfaceTexture { class
77 void onFrameAvailable(SurfaceTexture surfaceTexture);
92 * Construct a new SurfaceTexture to stream images to a given OpenGL texture.
96 public SurfaceTexture(int texName) { method in class:SurfaceTexture
101 * Construct a new SurfaceTexture to stream images to a given OpenGL texture.
104 * @param allowSynchronousMode whether the SurfaceTexture ca
111 public SurfaceTexture(int texName, boolean allowSynchronousMode) { method in class:SurfaceTexture
[all...]
/frameworks/base/core/java/android/view/
H A DGLES20TextureLayer.java22 import android.graphics.SurfaceTexture;
31 private SurfaceTexture mSurface;
69 SurfaceTexture getSurfaceTexture() {
71 mSurface = new SurfaceTexture(mTexture, false);
76 void setSurfaceTexture(SurfaceTexture surfaceTexture) {
H A DTextureView.java25 import android.graphics.SurfaceTexture;
45 * {@link SurfaceTexture}. The {@link SurfaceTexture} can then be used to
63 * public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
74 * public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
78 * public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
84 * public void onSurfaceTextureUpdated(SurfaceTexture surface) {
90 * <p>A TextureView's SurfaceTexture can be obtained either by invoking
92 * It is important to know that a SurfaceTexture is available only after the
95 * be notified when the SurfaceTexture become
[all...]
/frameworks/base/core/jni/android/graphics/
H A DSurfaceTexture.cpp17 #define LOG_TAG "SurfaceTexture"
21 #include <gui/SurfaceTexture.h>
37 "android/graphics/SurfaceTexture$OutOfResourcesException";
39 const char* const kSurfaceTextureClassPathName = "android/graphics/SurfaceTexture";
50 const sp<SurfaceTexture>& surfaceTexture)
52 SurfaceTexture* const p =
53 (SurfaceTexture*)env->GetIntField(thiz, fields.surfaceTexture);
63 sp<SurfaceTexture> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz)
65 sp<SurfaceTexture> surfaceTexture(
66 (SurfaceTexture*)en
[all...]
/frameworks/base/core/java/android/webkit/
H A DHTML5VideoInline.java21 import android.graphics.SurfaceTexture;
37 private static SurfaceTexture mSurfaceTexture = null;
40 // SurfaceTexture in order to delete the old video's decoder memory.
57 SurfaceTexture surfaceTexture = getSurfaceTexture(getVideoLayerId());
85 public static SurfaceTexture getSurfaceTexture(int videoLayerId) {
95 mSurfaceTexture = new SurfaceTexture(mTextureNames[0]);
126 private void setFrameAvailableListener(SurfaceTexture.OnFrameAvailableListener l) {
/frameworks/base/graphics/java/android/renderscript/
H A DRSTextureView.java24 import android.graphics.SurfaceTexture;
39 private SurfaceTexture mSurfaceTexture;
74 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
87 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
100 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
115 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 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) {
/frameworks/base/tests/RenderScriptTests/SurfaceTexture/src/com/example/android/rs/sto/
H A DSurfaceTextureOpaqueView.java24 import android.graphics.SurfaceTexture;
50 SurfaceTexture getST() {
H A DCameraCapture.java20 import android.graphics.SurfaceTexture;
37 private SurfaceTexture mSurfaceTexture;
60 SurfaceTexture st) {
134 // Connect SurfaceTexture to callback
227 private SurfaceTexture.OnFrameAvailableListener onCameraFrameAvailableListener =
228 new SurfaceTexture.OnFrameAvailableListener() {
230 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
H A DSurfaceTextureOpaqueRS.java21 import android.graphics.SurfaceTexture;
34 private SurfaceTexture mST;
75 SurfaceTexture getST() {
H A DSurfaceTextureOpaque.java24 import android.graphics.SurfaceTexture;
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
H A DSurfaceTextureSource.java33 import android.graphics.SurfaceTexture;
46 /** <p>A filter that converts textures from a SurfaceTexture object into frames for
50 * the graph, use the SurfaceTexture object passed to the callback to feed
51 * frames into the filter graph. For example, pass the SurfaceTexture into
53 * android.hardware.Camera.setPreviewTexture(android.graphics.SurfaceTexture)}.
57 * should obtain from wherever the SurfaceTexture data is coming from to avoid
68 public void onSurfaceTextureSourceReady(SurfaceTexture source);
70 /** A callback to send the internal SurfaceTexture object to, once it is
73 * place. The SurfaceTexture object passed to this callback is the only way
84 * SurfaceTexture sourc
[all...]
H A DCameraSource.java35 import android.graphics.SurfaceTexture;
79 private SurfaceTexture mSurfaceTexture;
156 mSurfaceTexture = new SurfaceTexture(mCameraFrame.getTextureId());
164 // Connect SurfaceTexture to callback
346 private SurfaceTexture.OnFrameAvailableListener onCameraFrameAvailableListener =
347 new SurfaceTexture.OnFrameAvailableListener() {
349 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
/frameworks/native/libs/gui/
H A DSurfaceTexture.cpp17 #define LOG_TAG "SurfaceTexture"
34 #include <gui/SurfaceTexture.h>
42 // This compile option makes SurfaceTexture use the
56 // This compile option makes SurfaceTexture use the EGL_ANDROID_sync_wait
66 // Macros for including the SurfaceTexture name in log messages
116 SurfaceTexture::SurfaceTexture(GLuint tex, bool allowSynchronousMode, function in class:android::SurfaceTexture
134 ST_LOGV("SurfaceTexture");
142 status_t SurfaceTexture::setDefaultMaxBufferCount(int bufferCount) {
148 status_t SurfaceTexture
[all...]
/frameworks/native/opengl/tools/glgen/stubs/egl/
H A DeglCreateWindowSurface.java37 } else if (win instanceof SurfaceTexture) {
43 "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/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/RenderScriptTests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java24 import android.graphics.SurfaceTexture;
51 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
54 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
58 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
63 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
/frameworks/native/include/gui/
H A DSurfaceTexture.h43 class SurfaceTexture : public ConsumerBase { class in namespace:android
47 // SurfaceTexture constructs a new SurfaceTexture object. tex indicates the
57 // For legacy reasons, the SurfaceTexture is created in a state where it is
65 // A SurfaceTexture may be detached from one OpenGL ES context and then
68 // purely to allow a SurfaceTexture to be transferred from one consumer
71 SurfaceTexture(GLuint tex, bool allowSynchronousMode = true,
89 // a single union fence. The SurfaceTexture will close the file descriptor
109 // a SurfaceTexture to apply this transform we avoid performing an extra
166 // isSynchronousMode returns whether the SurfaceTexture i
[all...]
/frameworks/base/services/java/com/android/server/display/
H A DOverlayDisplayWindow.java22 import android.graphics.SurfaceTexture;
292 public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture,
298 public boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) {
304 public void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture,
309 public void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) {
363 public void onWindowCreated(SurfaceTexture surfaceTexture, float refreshRate);
/frameworks/base/tests/RenderScriptTests/LivePreview/src/com/android/rs/livepreview/
H A DCameraPreviewActivity.java29 import android.graphics.SurfaceTexture;
64 private SurfaceTexture mPreviewTexture;
136 public void onSurfaceTextureAvailable(SurfaceTexture surface,
146 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
150 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
154 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
/frameworks/av/libvideoeditor/lvpp/
H A DNativeWindowRenderer.h40 // We allocate a SurfaceTexture for each RenderInput and the user can use
42 // for that SurfaceTexture. The intention is that the user can pass that
48 class SurfaceTexture;
113 // We use a different GL id for each SurfaceTexture.
149 // Returns the ANativeWindow corresponds to the SurfaceTexture.
159 // provided by the SurfaceTexture.
167 sp<SurfaceTexture> mST;

Completed in 4544 milliseconds

123