Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java

Issue 1471333003: Add support for scaling textures in AndroidVideoCapturer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTestFixtures.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 @MediumTest 292 @MediumTest
293 // This test that CameraEventsHandler.onError is triggered if video buffers ar e not returned to 293 // This test that CameraEventsHandler.onError is triggered if video buffers ar e not returned to
294 // the capturer. 294 // the capturer.
295 public void testCameraErrorEventOnBufferStarvation() throws InterruptedExcepti on { 295 public void testCameraErrorEventOnBufferStarvation() throws InterruptedExcepti on {
296 VideoCapturerAndroidTestFixtures.CameraEvents cameraEvents = 296 VideoCapturerAndroidTestFixtures.CameraEvents cameraEvents =
297 VideoCapturerAndroidTestFixtures.createCameraEvents(); 297 VideoCapturerAndroidTestFixtures.createCameraEvents();
298 VideoCapturerAndroid capturer = VideoCapturerAndroid.create("", cameraEvents ); 298 VideoCapturerAndroid capturer = VideoCapturerAndroid.create("", cameraEvents );
299 VideoCapturerAndroidTestFixtures.cameraErrorEventOnBufferStarvation(capturer , 299 VideoCapturerAndroidTestFixtures.cameraErrorEventOnBufferStarvation(capturer ,
300 cameraEvents, getInstrumentation().getContext()); 300 cameraEvents, getInstrumentation().getContext());
301 } 301 }
302
303 @MediumTest
304 // This test that frames forwarded to a renderer is scaled if onOutputFormatRe quest is
305 // called. This test both Java and C++ parts of of the stack.
306 public void testScaleCameraOutput() throws InterruptedException {
307 VideoCapturerAndroid capturer = VideoCapturerAndroid.create("", null);
308 VideoCapturerAndroidTestFixtures.scaleCameraOutput(capturer);
309 }
310
311 @MediumTest
312 // This test that frames forwarded to a renderer is scaled if onOutputFormatRe quest is
313 // called. This test both Java and C++ parts of of the stack.
314 public void testScaleCameraOutputUsingTextures() throws InterruptedException {
315 VideoCapturerAndroid capturer = VideoCapturerAndroid.create("", null, EGL10. EGL_NO_CONTEXT);
316 VideoCapturerAndroidTestFixtures.scaleCameraOutput(capturer);
317 }
302 } 318 }
OLDNEW
« no previous file with comments | « no previous file | talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTestFixtures.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698