Home
last modified time | relevance | path

Searched refs:surfaceTextureHelper (Results 1 – 18 of 18) sorted by relevance

/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/
DSurfaceTextureHelperTest.java120 final SurfaceTextureHelper surfaceTextureHelper = SurfaceTextureHelper.create( in testThreeConstantColorFrames() local
123 surfaceTextureHelper.startListening(listener); in testThreeConstantColorFrames()
124 surfaceTextureHelper.setTextureSize(width, height); in testThreeConstantColorFrames()
129 eglOesBase.createSurface(surfaceTextureHelper.getSurfaceTexture()); in testThreeConstantColorFrames()
169 surfaceTextureHelper.dispose(); in testThreeConstantColorFrames()
188 final SurfaceTextureHelper surfaceTextureHelper = SurfaceTextureHelper.create( in testLateReturnFrame() local
191 surfaceTextureHelper.startListening(listener); in testLateReturnFrame()
192 surfaceTextureHelper.setTextureSize(width, height); in testLateReturnFrame()
197 eglOesBase.createSurface(surfaceTextureHelper.getSurfaceTexture()); in testLateReturnFrame()
215 surfaceTextureHelper.dispose(); in testLateReturnFrame()
[all …]
DGlRectDrawerTest.java242 SurfaceTextureHelper surfaceTextureHelper, int width, int height) {
244 surfaceTextureHelper.setTextureSize(width, height);
245 eglBase.createSurface(surfaceTextureHelper.getSurfaceTexture());
282 final SurfaceTextureHelper surfaceTextureHelper = SurfaceTextureHelper.create(
285 eglBase.getEglBaseContext(), surfaceTextureHelper, WIDTH, HEIGHT);
288 surfaceTextureHelper.startListening(listener);
318 surfaceTextureHelper.dispose();
DCameraVideoCapturerTestFixtures.java257 public SurfaceTextureHelper surfaceTextureHelper; field in CameraVideoCapturerTestFixtures.CapturerInstance
268 public SurfaceTextureHelper surfaceTextureHelper; field in CameraVideoCapturerTestFixtures.VideoTrackWithRenderer
347 instance.surfaceTextureHelper = SurfaceTextureHelper.create( in createCapturer()
352 instance.surfaceTextureHelper, testObjectFactory.getAppContext(), instance.observer); in createCapturer()
380 instance.surfaceTextureHelper.dispose(); in disposeCapturer()
386 videoTrackWithRenderer.surfaceTextureHelper = SurfaceTextureHelper.create( in createVideoTrackWithRenderer()
390 capturer.initialize(videoTrackWithRenderer.surfaceTextureHelper, in createVideoTrackWithRenderer()
423 capturerInstance.surfaceTextureHelper.getHandler().post(new Runnable() { in waitUntilIdle()
DVideoFrameBufferTest.java180 final SurfaceTextureHelper surfaceTextureHelper =
182 surfaceTextureHelper.setTextureSize(width, height);
191 eglBase.createSurface(surfaceTextureHelper.getSurfaceTexture());
198 surfaceTextureHelper.startListening(listener);
204 surfaceTextureHelper.stopListening();
205 surfaceTextureHelper.dispose();
DPeerConnectionEndToEndTest.java695 final SurfaceTextureHelper surfaceTextureHelper = in testCompleteSession() local
698 videoCapturer.initialize(surfaceTextureHelper, InstrumentationRegistry.getTargetContext(), in testCompleteSession()
923 surfaceTextureHelper.dispose(); in testCompleteSession()
1190 final SurfaceTextureHelper surfaceTextureHelper = in testTrackRemovalAndAddition() local
1193 videoCapturer.initialize(surfaceTextureHelper, InstrumentationRegistry.getTargetContext(), in testTrackRemovalAndAddition()
1353 surfaceTextureHelper.dispose(); in testTrackRemovalAndAddition()
1430 final SurfaceTextureHelper surfaceTextureHelper = in testRemoteStreamUpdatedWhenTracksAddedOrRemoved() local
1433 videoCapturer.initialize(surfaceTextureHelper, InstrumentationRegistry.getTargetContext(), in testRemoteStreamUpdatedWhenTracksAddedOrRemoved()
1487 surfaceTextureHelper.dispose(); in testRemoteStreamUpdatedWhenTracksAddedOrRemoved()
/external/webrtc/sdk/android/api/org/webrtc/
DCameraVideoCapturer.java114 private final SurfaceTextureHelper surfaceTextureHelper; field in CameraVideoCapturer.CameraStatistics
129 if (surfaceTextureHelper.isTextureInUse()) {
141 surfaceTextureHelper.getHandler().postDelayed(this, CAMERA_OBSERVER_PERIOD_MS);
146 SurfaceTextureHelper surfaceTextureHelper, CameraEventsHandler eventsHandler) { in CameraStatistics() argument
147 if (surfaceTextureHelper == null) { in CameraStatistics()
150 this.surfaceTextureHelper = surfaceTextureHelper; in CameraStatistics()
154 surfaceTextureHelper.getHandler().postDelayed(cameraObserver, CAMERA_OBSERVER_PERIOD_MS); in CameraStatistics()
158 if (Thread.currentThread() != surfaceTextureHelper.getHandler().getLooper().getThread()) { in checkThread()
169 surfaceTextureHelper.getHandler().removeCallbacks(cameraObserver); in release()
DScreenCapturerAndroid.java50 @Nullable private SurfaceTextureHelper surfaceTextureHelper; field in ScreenCapturerAndroid
81 public synchronized void initialize(final SurfaceTextureHelper surfaceTextureHelper, in initialize() argument
90 if (surfaceTextureHelper == null) { in initialize()
93 this.surfaceTextureHelper = surfaceTextureHelper; in initialize()
113 mediaProjection.registerCallback(mediaProjectionCallback, surfaceTextureHelper.getHandler()); in startCapture()
117 surfaceTextureHelper.startListening(ScreenCapturerAndroid.this); in startCapture()
125 ThreadUtils.invokeAtFrontUninterruptibly(surfaceTextureHelper.getHandler(), new Runnable() { in stopCapture()
128 surfaceTextureHelper.stopListening(); in stopCapture()
180 ThreadUtils.invokeAtFrontUninterruptibly(surfaceTextureHelper.getHandler(), new Runnable() { in changeCaptureFormat()
190 surfaceTextureHelper.setTextureSize(width, height); in createVirtualDisplay()
[all …]
DCamera1Capturer.java28 SurfaceTextureHelper surfaceTextureHelper, String cameraName, int width, int height, in createCameraSession() argument
31 surfaceTextureHelper, Camera1Enumerator.getCameraIndex(cameraName), width, height, in createCameraSession()
DCamera2Capturer.java33 SurfaceTextureHelper surfaceTextureHelper, String cameraName, int width, int height, in createCameraSession() argument
36 surfaceTextureHelper, cameraName, width, height, framerate); in createCameraSession()
DVideoCapturer.java28 void initialize(SurfaceTextureHelper surfaceTextureHelper, Context applicationContext, in initialize() argument
DFileVideoCapturer.java172 public void initialize(SurfaceTextureHelper surfaceTextureHelper, Context applicationContext, in initialize() argument
/external/webrtc/examples/unityplugin/java/src/org/webrtc/
DUnityUtility.java20 final SurfaceTextureHelper surfaceTextureHelper = in LoadSurfaceTextureHelper() local
22 return surfaceTextureHelper; in LoadSurfaceTextureHelper()
46 long nativeTrackSource, SurfaceTextureHelper surfaceTextureHelper) { in LinkCamera() argument
52 capturer.initialize(surfaceTextureHelper, ContextUtils.getApplicationContext(), in LinkCamera()
/external/webrtc/sdk/android/src/java/org/webrtc/
DCamera1Session.java40 private final SurfaceTextureHelper surfaceTextureHelper; field in Camera1Session
55 final SurfaceTextureHelper surfaceTextureHelper, final int cameraId, final int width, in create() argument
76 camera.setPreviewTexture(surfaceTextureHelper.getSurfaceTexture()); in create()
110 surfaceTextureHelper, cameraId, camera, info, captureFormat, constructionTimeNs)); in create()
158 SurfaceTextureHelper surfaceTextureHelper, int cameraId, android.hardware.Camera camera, in Camera1Session() argument
167 this.surfaceTextureHelper = surfaceTextureHelper; in Camera1Session()
174 surfaceTextureHelper.setTextureSize(captureFormat.width, captureFormat.height); in Camera1Session()
238 surfaceTextureHelper.stopListening(); in stopInternal()
249 surfaceTextureHelper.startListening((VideoFrame frame) -> { in listenForTextureFrames()
DCamera2Session.java50 private final SurfaceTextureHelper surfaceTextureHelper; field in Camera2Session
122 surfaceTextureHelper.setTextureSize(captureFormat.width, captureFormat.height); in onOpened()
123 surface = new Surface(surfaceTextureHelper.getSurfaceTexture()); in onOpened()
183 surfaceTextureHelper.startListening((VideoFrame frame) -> { in onConfigured()
272 SurfaceTextureHelper surfaceTextureHelper, String cameraId, int width, int height, in create() argument
274 new Camera2Session(callback, events, applicationContext, cameraManager, surfaceTextureHelper, in create()
279 CameraManager cameraManager, SurfaceTextureHelper surfaceTextureHelper, String cameraId, in Camera2Session() argument
290 this.surfaceTextureHelper = surfaceTextureHelper; in Camera2Session()
375 surfaceTextureHelper.stopListening(); in stopInternal()
DAndroidVideoDecoder.java107 @Nullable private SurfaceTextureHelper surfaceTextureHelper; field in AndroidVideoDecoder
153 surfaceTextureHelper = createSurfaceTextureHelper(); in initDecode()
154 surface = new Surface(surfaceTextureHelper.getSurfaceTexture()); in initDecode()
155 surfaceTextureHelper.startListening(this); in initDecode()
318 surfaceTextureHelper.stopListening(); in release()
319 surfaceTextureHelper.dispose(); in release()
320 surfaceTextureHelper = null; in release()
410 if (surfaceTextureHelper != null) {
436 surfaceTextureHelper.setTextureSize(width, height);
437 surfaceTextureHelper.setFrameRotation(rotation);
[all …]
DCameraCapturer.java236 public void initialize(SurfaceTextureHelper surfaceTextureHelper, Context applicationContext, in initialize() argument
240 this.surfaceHelper = surfaceTextureHelper; in initialize()
241 this.cameraThreadHandler = surfaceTextureHelper.getHandler(); in initialize()
456 Context applicationContext, SurfaceTextureHelper surfaceTextureHelper, String cameraName, in createCameraSession() argument
/external/webrtc/examples/androidnativeapi/java/org/webrtc/examples/androidnativeapi/
DCallClient.java32 private SurfaceTextureHelper surfaceTextureHelper; field in CallClient
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DPeerConnectionClient.java135 @Nullable private SurfaceTextureHelper surfaceTextureHelper; field in PeerConnectionClient
721 if (surfaceTextureHelper != null) { in closeInternal()
722 surfaceTextureHelper.dispose(); in closeInternal()
723 surfaceTextureHelper = null; in closeInternal()
940 surfaceTextureHelper = in createVideoTrack()
943 capturer.initialize(surfaceTextureHelper, appContext, videoSource.getCapturerObserver()); in createVideoTrack()