Home
last modified time | relevance | path

Searched refs:SurfaceTexture (Results 1 – 25 of 80) sorted by relevance

1234

/frameworks/base/libs/hwui/surfacetexture/
DSurfaceTexture.cpp38 SurfaceTexture::SurfaceTexture(const sp<IGraphicBufferConsumer>& bq, uint32_t tex, in SurfaceTexture() function in android::SurfaceTexture
63 SurfaceTexture::SurfaceTexture(const sp<IGraphicBufferConsumer>& bq, uint32_t texTarget, in SurfaceTexture() function in android::SurfaceTexture
88 status_t SurfaceTexture::setDefaultBufferSize(uint32_t w, uint32_t h) { in setDefaultBufferSize()
99 status_t SurfaceTexture::updateTexImage() { in updateTexImage()
112 status_t SurfaceTexture::releaseTexImage() { in releaseTexImage()
126 status_t SurfaceTexture::acquireBufferLocked(BufferItem* item, nsecs_t presentWhen, in acquireBufferLocked()
147 status_t SurfaceTexture::releaseBufferLocked(int buf, sp<GraphicBuffer> graphicBuffer, in releaseBufferLocked()
160 status_t SurfaceTexture::detachFromContext() { in detachFromContext()
183 status_t SurfaceTexture::attachToContext(uint32_t tex) { in attachToContext()
208 void SurfaceTexture::attachToView() { in attachToView()
[all …]
DEGLConsumer.h30 class SurfaceTexture; variable
49 status_t updateTexImage(SurfaceTexture& st);
58 status_t releaseTexImage(SurfaceTexture& st);
72 status_t detachFromContext(SurfaceTexture& st);
89 status_t attachToContext(uint32_t tex, SurfaceTexture& st);
95 void onAcquireBufferLocked(BufferItem* item, SurfaceTexture& st);
141 SurfaceTexture& st);
148 status_t bindTextureImageLocked(SurfaceTexture& st);
158 status_t checkAndUpdateEglStateLocked(SurfaceTexture& st, bool contextCheck = false);
220 status_t doGLFenceWaitLocked(SurfaceTexture& st) const;
[all …]
DEGLConsumer.cpp87 status_t EGLConsumer::updateTexImage(SurfaceTexture& st) { in updateTexImage()
124 status_t EGLConsumer::releaseTexImage(SurfaceTexture& st) { in releaseTexImage()
129 if (st.mOpMode == SurfaceTexture::OpMode::attachedToGL) { in releaseTexImage()
143 if (st.mOpMode == SurfaceTexture::OpMode::attachedToGL) { in releaseTexImage()
174 if (st.mOpMode == SurfaceTexture::OpMode::attachedToGL) { in releaseTexImage()
212 void EGLConsumer::onAcquireBufferLocked(BufferItem* item, SurfaceTexture& st) { in onAcquireBufferLocked()
227 SurfaceTexture& st) { in updateAndReleaseLocked()
232 if (st.mOpMode != SurfaceTexture::OpMode::attachedToGL) { in updateAndReleaseLocked()
322 status_t EGLConsumer::bindTextureImageLocked(SurfaceTexture& st) { in bindTextureImageLocked()
370 status_t EGLConsumer::checkAndUpdateEglStateLocked(SurfaceTexture& st, bool contextCheck) { in checkAndUpdateEglStateLocked()
[all …]
/frameworks/base/graphics/java/android/graphics/
DSurfaceTexture.java70 public class SurfaceTexture { class
91 void onFrameAvailable(SurfaceTexture surfaceTexture); in onFrameAvailable()
117 public SurfaceTexture(int texName) { in SurfaceTexture() method in SurfaceTexture
138 public SurfaceTexture(int texName, boolean singleBufferMode) { in SurfaceTexture() method in SurfaceTexture
141 nativeInit(false, texName, singleBufferMode, new WeakReference<SurfaceTexture>(this)); in SurfaceTexture()
165 public SurfaceTexture(boolean singleBufferMode) { in SurfaceTexture() method in SurfaceTexture
168 nativeInit(true, 0, singleBufferMode, new WeakReference<SurfaceTexture>(this)); in SurfaceTexture()
211 listener.onFrameAvailable(SurfaceTexture.this); in setOnFrameAvailableListener()
387 private static void postEventFromNative(WeakReference<SurfaceTexture> weakSelf) { in postEventFromNative()
388 SurfaceTexture st = weakSelf.get(); in postEventFromNative()
[all …]
/frameworks/base/core/jni/android/graphics/
DSurfaceTexture.cpp84 const sp<SurfaceTexture>& surfaceTexture) in SurfaceTexture_setSurfaceTexture()
86 SurfaceTexture* const p = in SurfaceTexture_setSurfaceTexture()
87 (SurfaceTexture*)env->GetLongField(thiz, fields.surfaceTexture); in SurfaceTexture_setSurfaceTexture()
112 jobject thiz, sp<SurfaceTexture::FrameAvailableListener> listener) in SurfaceTexture_setFrameAvailableListener()
114 SurfaceTexture::FrameAvailableListener* const p = in SurfaceTexture_setFrameAvailableListener()
115 (SurfaceTexture::FrameAvailableListener*) in SurfaceTexture_setFrameAvailableListener()
126 sp<SurfaceTexture> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz) { in SurfaceTexture_getSurfaceTexture()
127 return (SurfaceTexture*)env->GetLongField(thiz, fields.surfaceTexture); in SurfaceTexture_getSurfaceTexture()
135 sp<SurfaceTexture> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, thiz)); in android_SurfaceTexture_getNativeWindow()
148 class JNISurfaceTextureContext : public SurfaceTexture::FrameAvailableListener
[all …]
/frameworks/base/rs/java/android/renderscript/
DRSTextureView.java20 import android.graphics.SurfaceTexture;
33 private SurfaceTexture mSurfaceTexture;
68 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
81 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
94 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
109 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
/frameworks/base/core/java/android/view/
DTextureView.java28 import android.graphics.SurfaceTexture;
114 private SurfaceTexture mSurface;
392 mSurface = new SurfaceTexture(false); in getTextureLayer()
726 public SurfaceTexture getSurfaceTexture() { in getSurfaceTexture()
745 public void setSurfaceTexture(SurfaceTexture surfaceTexture) { in setSurfaceTexture()
800 private final SurfaceTexture.OnFrameAvailableListener mUpdateListener =
801 new SurfaceTexture.OnFrameAvailableListener() {
803 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
822 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height); in onSurfaceTextureAvailable()
832 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height); in onSurfaceTextureSizeChanged()
[all …]
DTextureLayer.java24 import android.graphics.SurfaceTexture;
133 public void setSurfaceTexture(SurfaceTexture surface) { in setSurfaceTexture()
152 private static native void nSetSurfaceTexture(long layerUpdater, SurfaceTexture surface); in nSetSurfaceTexture()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
DSurfaceTextureSource.java29 import android.graphics.SurfaceTexture;
57 public void onSurfaceTextureSourceReady(SurfaceTexture source); in onSurfaceTextureSourceReady()
105 private SurfaceTexture mSurfaceTexture;
172 mSurfaceTexture = new SurfaceTexture(mMediaFrame.getTextureId()); in open()
247 private SurfaceTexture.OnFrameAvailableListener onFrameAvailableListener =
248 new SurfaceTexture.OnFrameAvailableListener() {
249 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
DCameraSource.java30 import android.graphics.SurfaceTexture;
72 private SurfaceTexture mSurfaceTexture;
149 mSurfaceTexture = new SurfaceTexture(mCameraFrame.getTextureId()); in open()
339 private SurfaceTexture.OnFrameAvailableListener onCameraFrameAvailableListener =
340 new SurfaceTexture.OnFrameAvailableListener() {
342 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DGlTextureViewActivity.java21 import android.graphics.SurfaceTexture;
49 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
71 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
75 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
86 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGetBitmapActivity.java21 import android.graphics.SurfaceTexture;
81 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
94 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
99 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
106 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
DCanvasTextureViewActivity.java23 import android.graphics.SurfaceTexture;
50 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
56 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
61 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
67 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
DHardwareCanvasTextureViewActivity.java23 import android.graphics.SurfaceTexture;
51 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
57 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
62 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
68 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
DTextureViewActivity.java22 import android.graphics.SurfaceTexture;
101 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
147 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
152 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
159 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
DSingleFrameTextureViewTestActivity.java25 import android.graphics.SurfaceTexture;
78 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
201 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
206 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
213 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DBlockingGLTextureView.java20 import android.graphics.SurfaceTexture;
66 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, in onSurfaceTextureAvailable()
73 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, in onSurfaceTextureSizeChanged()
79 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
87 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
192 public boolean createSurface(SurfaceTexture surface) { in createSurface()
318 private SurfaceTexture mSurface;
343 public void setSurface(SurfaceTexture surface) { in setSurface()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DGpuVideoTrackDecoder.java20 import android.graphics.SurfaceTexture;
21 import android.graphics.SurfaceTexture.OnFrameAvailableListener;
57 private final SurfaceTexture mSurfaceTexture; // Access guarded by mFrameMonitor.
73 mSurfaceTexture = new SurfaceTexture(mTextureSource.getTextureId()); in GpuVideoTrackDecoder()
77 public void onFrameAvailable(SurfaceTexture surfaceTexture) { in GpuVideoTrackDecoder()
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
DRsYuv.java24 import android.graphics.SurfaceTexture;
127 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
134 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
141 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
149 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
DMyGLSurfaceView.java19 import android.graphics.SurfaceTexture;
75 public SurfaceTexture getSurfaceTexture() { in getSurfaceTexture()
80 class MyRenderer implements GLSurfaceView.Renderer, SurfaceTexture.OnFrameAvailableListener {
216 mSurface = new SurfaceTexture(mTextureID); in onSurfaceCreated()
226 synchronized public void onFrameAvailable(SurfaceTexture surface) { in onFrameAvailable()
337 private SurfaceTexture mSurface;
345 public SurfaceTexture getSurfaceTexture() { in getSurfaceTexture()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIllustrationVideoView.java22 import android.graphics.SurfaceTexture;
187 SurfaceTexture surfaceTexture = getSurfaceTexture(); in createSurface()
250 public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int width, int height) { in onSurfaceTextureAvailable()
257 public void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int width, int height) {} in onSurfaceTextureSizeChanged()
260 public boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) { in onSurfaceTextureDestroyed()
266 public void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) {} in onSurfaceTextureUpdated()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
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); in onRegisterClient()
322 surfTex.setOnFrameAvailableListener(new SurfaceTexture.OnFrameAvailableListener() { in onRegisterClient()
324 public void onFrameAvailable(SurfaceTexture surfaceTexture) { in onRegisterClient()
338 SurfaceTexture surfTex = surfaceTextureForContext(clientContext); in grabFrame()
[all …]
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DSurfaceAndTextureViews.java22 import android.graphics.SurfaceTexture;
173 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
178 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
186 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
191 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
/frameworks/rs/tests/java_api/SampleTest/src/com/android/rs/sample/
DSampleRSActivity.java24 import android.graphics.SurfaceTexture;
52 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
55 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
61 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
68 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
/frameworks/base/core/jni/include/android_runtime/
Dandroid_graphics_SurfaceTexture.h27 class SurfaceTexture; variable
33 extern sp<SurfaceTexture> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz);

1234