Home | History | Annotate | Download | only in webrtc

Lines Matching refs:capturer

241   static public void release(VideoCapturerAndroid capturer) {
242 assertNotNull(capturer);
243 capturer.dispose();
244 assertTrue(capturer.isReleased());
247 static public void startCapturerAndRender(VideoCapturerAndroid capturer)
251 factory.createVideoSource(capturer, new MediaConstraints());
259 assertTrue(capturer.isReleased());
262 static public void switchCamera(VideoCapturerAndroid capturer) throws InterruptedException {
265 factory.createVideoSource(capturer, new MediaConstraints());
271 capturer.switchCamera(new VideoCapturerAndroid.CameraSwitchHandler() {
299 assertTrue(capturer.isReleased());
302 static public void cameraEventsInvoked(VideoCapturerAndroid capturer, CameraEvents events,
304 final List<CaptureFormat> formats = capturer.getSupportedFormats();
308 capturer.startCapture(format.width, format.height, format.maxFramerate,
313 capturer.stopCapture();
314 if (capturer.isCapturingToTexture()) {
315 capturer.surfaceHelper.returnTextureFrame();
317 capturer.dispose();
319 assertTrue(capturer.isReleased());
325 VideoCapturerAndroid capturer, Context appContext) throws InterruptedException {
326 final List<CaptureFormat> formats = capturer.getSupportedFormats();
330 capturer.startCapture(format.width, format.height, format.maxFramerate,
334 capturer.stopCapture();
335 if (capturer.isCapturingToTexture()) {
336 capturer.surfaceHelper.returnTextureFrame();
339 // We can't change |capturer| at this point, but we should not crash.
340 capturer.switchCamera(null);
341 capturer.onOutputFormatRequest(640, 480, 15);
342 capturer.changeCaptureFormat(640, 480, 15);
344 capturer.dispose();
345 assertTrue(capturer.isReleased());
348 static public void stopRestartVideoSource(VideoCapturerAndroid capturer)
352 factory.createVideoSource(capturer, new MediaConstraints());
368 assertTrue(capturer.isReleased());
371 static public void startStopWithDifferentResolutions(VideoCapturerAndroid capturer,
374 List<CaptureFormat> formats = capturer.getSupportedFormats();
378 capturer.startCapture(format.width, format.height, format.maxFramerate,
383 // Check the frame size. The actual width and height depend on how the capturer is mounted.
394 if (capturer.isCapturingToTexture()) {
399 capturer.stopCapture();
400 if (capturer.isCapturingToTexture()) {
401 capturer.surfaceHelper.returnTextureFrame();
404 capturer.dispose();
405 assertTrue(capturer.isReleased());
408 static void waitUntilIdle(VideoCapturerAndroid capturer) throws InterruptedException {
410 capturer.getCameraThreadHandler().post(new Runnable() {
419 VideoCapturerAndroid capturer, Context appContext) throws InterruptedException {
420 Camera camera = Camera.open(capturer.getCurrentCameraId());
422 final List<CaptureFormat> formats = capturer.getSupportedFormats();
426 capturer.startCapture(format.width, format.height, format.maxFramerate,
432 capturer.stopCapture();
437 capturer.dispose();
442 VideoCapturerAndroid capturer, Context appContext) throws InterruptedException {
443 Camera camera = Camera.open(capturer.getCurrentCameraId());
445 final List<CaptureFormat> formats = capturer.getSupportedFormats();
449 capturer.startCapture(format.width, format.height, format.maxFramerate,
451 waitUntilIdle(capturer);
458 capturer.stopCapture();
459 if (capturer.isCapturingToTexture()) {
460 capturer.surfaceHelper.returnTextureFrame();
462 capturer.dispose();
463 assertTrue(capturer.isReleased());
467 VideoCapturerAndroid capturer, Context appContext) throws InterruptedException {
468 Camera camera = Camera.open(capturer.getCurrentCameraId());
469 final List<CaptureFormat> formats = capturer.getSupportedFormats();
473 capturer
475 capturer.stopCapture();
476 capturer.dispose();
477 assertTrue(capturer.isReleased());
481 static public void returnBufferLate(VideoCapturerAndroid capturer,
485 List<CaptureFormat> formats = capturer.getSupportedFormats();
487 capturer.startCapture(format.width, format.height, format.maxFramerate,
492 capturer.stopCapture();
497 capturer.startCapture(format.width, format.height, format.maxFramerate,
500 if (capturer.isCapturingToTexture()) {
501 capturer.surfaceHelper.returnTextureFrame();
505 capturer.stopCapture();
509 if (capturer.isCapturingToTexture()) {
510 capturer.surfaceHelper.returnTextureFrame();
513 capturer.dispose();
514 assertTrue(capturer.isReleased());
517 static public void returnBufferLateEndToEnd(VideoCapturerAndroid capturer)
520 final VideoSource source = factory.createVideoSource(capturer, new MediaConstraints());
528 capturer.stopCapture();
534 assertTrue(capturer.isReleased());
551 VideoCapturerAndroid capturer,
553 assertTrue("Not capturing to textures.", capturer.isCapturingToTexture());
555 final List<CaptureFormat> formats = capturer.getSupportedFormats();
559 capturer.startCapture(format.width, format.height, format.maxFramerate,
568 capturer.stopCapture();
569 if (capturer.isCapturingToTexture()) {
570 capturer.surfaceHelper.returnTextureFrame();
573 capturer.dispose();
574 assertTrue(capturer.isReleased());
577 static public void scaleCameraOutput(VideoCapturerAndroid capturer) throws InterruptedException {
580 factory.createVideoSource(capturer, new MediaConstraints());
593 capturer.onOutputFormatRequest(scaledWidth, scaledHeight, frameRate);
610 assertTrue(capturer.isReleased());