Home
last modified time | relevance | path

Searched refs:mSurfaceTexture (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/libs/hwui/
DDeferredLayerUpdater.cpp28 : mSurfaceTexture(nullptr) in DeferredLayerUpdater()
61 if (mSurfaceTexture.get()) { in apply()
64 mSurfaceTexture->attachToContext(mLayer->getTextureId()); in apply()
78 if (mSurfaceTexture->updateTexImage() == NO_ERROR) { in doUpdateTexImage()
81 int64_t frameNumber = mSurfaceTexture->getFrameNumber(); in doUpdateTexImage()
87 while (mSurfaceTexture->updateTexImage() == NO_ERROR) { in doUpdateTexImage()
88 int64_t newFrameNumber = mSurfaceTexture->getFrameNumber(); in doUpdateTexImage()
95 sp<GraphicBuffer> buffer = mSurfaceTexture->getCurrentBuffer(); in doUpdateTexImage()
107 mSurfaceTexture->getTransformMatrix(transform); in doUpdateTexImage()
108 GLenum renderTarget = mSurfaceTexture->getCurrentTextureTarget(); in doUpdateTexImage()
[all …]
DDeferredLayerUpdater.h62 if (texture.get() != mSurfaceTexture.get()) { in setSurfaceTexture()
64 mSurfaceTexture = texture; in setSurfaceTexture()
104 sp<GLConsumer> mSurfaceTexture; variable
/frameworks/base/rs/java/android/renderscript/
DRSTextureView.java33 private SurfaceTexture mSurfaceTexture; field in RSTextureView
70 mSurfaceTexture = surface; in onSurfaceTextureAvailable()
73 mRS.setSurfaceTexture(mSurfaceTexture, width, height); in onSurfaceTextureAvailable()
83 mSurfaceTexture = surface; in onSurfaceTextureSizeChanged()
86 mRS.setSurfaceTexture(mSurfaceTexture, width, height); in onSurfaceTextureSizeChanged()
96 mSurfaceTexture = surface; in onSurfaceTextureDestroyed()
111 mSurfaceTexture = surface; in onSurfaceTextureUpdated()
154 if (mSurfaceTexture != null) { in createRenderScriptGL()
155 mRS.setSurfaceTexture(mSurfaceTexture, getWidth(), getHeight()); in createRenderScriptGL()
179 if (mSurfaceTexture != null) { in setRenderScriptGL()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DGpuVideoTrackDecoder.java57 private final SurfaceTexture mSurfaceTexture; // Access guarded by mFrameMonitor. field in GpuVideoTrackDecoder
73 mSurfaceTexture = new SurfaceTexture(mTextureSource.getTextureId()); in GpuVideoTrackDecoder()
74 mSurfaceTexture.detachFromGLContext(); in GpuVideoTrackDecoder()
75 mSurfaceTexture.setOnFrameAvailableListener(new OnFrameAvailableListener() { in GpuVideoTrackDecoder()
99 Surface surface = new Surface(mSurfaceTexture); in initMediaCodec()
135 mSurfaceTexture.attachToGLContext(mTextureSource.getTextureId()); in updateTexture()
136 mSurfaceTexture.updateTexImage(); in updateTexture()
137 mSurfaceTexture.detachFromGLContext(); in updateTexture()
148 mSurfaceTexture.attachToGLContext(targetTexture.getTextureId()); in copyFrameDataTo()
149 mSurfaceTexture.getTransformMatrix(mTransformMatrix); in copyFrameDataTo()
[all …]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
DSurfaceTextureSource.java105 private SurfaceTexture mSurfaceTexture; field in SurfaceTextureSource
172 mSurfaceTexture = new SurfaceTexture(mMediaFrame.getTextureId()); in open()
174 mSurfaceTexture.setOnFrameAvailableListener(onFrameAvailableListener); in open()
176 mSourceListener.onSurfaceTextureSourceReady(mSurfaceTexture); in open()
205 mSurfaceTexture.updateTexImage(); in process()
207 mSurfaceTexture.getTransformMatrix(mFrameTransform); in process()
219 output.setTimestamp(mSurfaceTexture.getTimestamp()); in process()
229 mSurfaceTexture.release(); in close()
230 mSurfaceTexture = null; in close()
DCameraSource.java72 private SurfaceTexture mSurfaceTexture; field in CameraSource
149 mSurfaceTexture = new SurfaceTexture(mCameraFrame.getTextureId()); in open()
151 mCamera.setPreviewTexture(mSurfaceTexture); in open()
158 mSurfaceTexture.setOnFrameAvailableListener(onCameraFrameAvailableListener); in open()
184 mSurfaceTexture.updateTexImage(); in process()
187 mSurfaceTexture.getTransformMatrix(mCameraTransform); in process()
199 long timestamp = mSurfaceTexture.getTimestamp(); in process()
217 mSurfaceTexture.release(); in close()
218 mSurfaceTexture = null; in close()
DSurfaceTextureTarget.java52 private SurfaceTexture mSurfaceTexture; field in SurfaceTextureTarget
105 if (mSurfaceTexture == null) { in setupPorts()
155 if (mSurfaceTexture == null) { in open()
157 throw new RuntimeException("Could not register SurfaceTexture: " + mSurfaceTexture); in open()
160 mSurfaceTexture, mScreenWidth, mScreenHeight); in open()
162 throw new RuntimeException("Could not register SurfaceTexture: " + mSurfaceTexture); in open()
187 if (mSurfaceTexture == null) { in disconnect()
191 mSurfaceTexture = null; in disconnect()
DMediaSource.java99 private SurfaceTexture mSurfaceTexture; field in MediaSource
211 mSurfaceTexture = new SurfaceTexture(mMediaFrame.getTextureId()); in open()
287 mSurfaceTexture.updateTexImage(); in process()
292 mSurfaceTexture.getTransformMatrix(surfaceTransform); in process()
335 long timestamp = mSurfaceTexture.getTimestamp(); in process()
359 mSurfaceTexture.release(); in close()
360 mSurfaceTexture = null; in close()
492 Surface surface = new Surface(mSurfaceTexture); in setupMediaPlayer()
503 mSurfaceTexture.setOnFrameAvailableListener(onMediaFrameAvailableListener); in setupMediaPlayer()
/frameworks/av/services/camera/libcameraservice/
DCameraFlashlight.cpp366 mSurfaceTexture.clear(); in ~CameraDeviceClientFlashControl()
385 mSurfaceTexture = new GLConsumer(mConsumer, 0, GLConsumer::TEXTURE_EXTERNAL, in initializeSurface()
387 if (mSurfaceTexture == NULL) { in initializeSurface()
392 res = mSurfaceTexture->setDefaultBufferSize(width, height); in initializeSurface()
396 res = mSurfaceTexture->setDefaultBufferFormat(format); in initializeSurface()
660 mSurfaceTexture.clear(); in ~CameraHardwareInterfaceFlashControl()
819 mSurfaceTexture = new GLConsumer(mConsumer, 0, GLConsumer::TEXTURE_EXTERNAL, in initializePreviewWindow()
821 if (mSurfaceTexture == NULL) { in initializePreviewWindow()
826 res = mSurfaceTexture->setDefaultBufferSize(width, height); in initializePreviewWindow()
830 res = mSurfaceTexture->setDefaultBufferFormat(format); in initializePreviewWindow()
DCameraFlashlight.h168 sp<GLConsumer> mSurfaceTexture; variable
221 sp<GLConsumer> mSurfaceTexture; variable
/frameworks/base/core/java/android/hardware/camera2/legacy/
DSurfaceTextureRenderer.java83 private volatile SurfaceTexture mSurfaceTexture; field in SurfaceTextureRenderer
413 if (mSurfaceTexture != null) { in clearState()
414 mSurfaceTexture.release(); in clearState()
416 mSurfaceTexture = null; in clearState()
621 return mSurfaceTexture; in getSurfaceTexture()
674 mSurfaceTexture = new SurfaceTexture(getTextureId()); in configureSurfaces()
708 mSurfaceTexture.updateTexImage(); in drawIntoSurfaces()
710 long timestamp = mSurfaceTexture.getTimestamp(); in drawIntoSurfaces()
748 drawFrame(mSurfaceTexture, holder.width, holder.height, in drawIntoSurfaces()
762 drawFrame(mSurfaceTexture, holder.width, holder.height, in drawIntoSurfaces()
/frameworks/base/services/core/java/com/android/server/display/
DOverlayDisplayAdapter.java232 private SurfaceTexture mSurfaceTexture; field in OverlayDisplayAdapter.OverlayDisplayDevice
248 mSurfaceTexture = surfaceTexture; in OverlayDisplayDevice()
260 mSurfaceTexture = null; in destroyLocked()
270 if (mSurfaceTexture != null) { in performTraversalInTransactionLocked()
272 mSurface = new Surface(mSurfaceTexture); in performTraversalInTransactionLocked()
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/
DVrView.java55 private SurfaceTexture mSurfaceTexture; field in VrView
126 mSurfaceTexture = surface; in setup()
131 mSurfaceTexture = surface; in setup()
364 if (mSurfaceTexture == null) return 0L; in doInBackground()
389 mSurface = new Surface(mSurfaceTexture); in doInBackground()
/frameworks/base/graphics/java/android/graphics/
DSurfaceTexture.java76 private long mSurfaceTexture; field in SurfaceTexture