Add support to adapt video without preserving aspect ratio
This is implemented by allowing users to set two different aspect ratios, one for landscape input and one for portrait input. This extra control might be useful in other scenarios as well. Bug: webrtc:9903 Change-Id: I91676737f4aa1f5d94cfe79ac51d5f866779945b Reviewed-on: https://webrtc-review.googlesource.com/c/108086 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25387}
This commit is contained in:
committed by
Commit Bot
parent
904903705f
commit
06aa209645
@ -302,6 +302,14 @@ public class Camera2CapturerTest {
|
||||
fixtures.scaleCameraOutput();
|
||||
}
|
||||
|
||||
// This test that frames forwarded to a renderer is cropped to a new orientation if
|
||||
// adaptOutputFormat is called in such a way. This test both Java and C++ parts of of the stack.
|
||||
@Test
|
||||
@MediumTest
|
||||
public void testCropCameraOutput() throws InterruptedException {
|
||||
fixtures.cropCameraOutput();
|
||||
}
|
||||
|
||||
// This test that an error is reported if the camera is already opened
|
||||
// when CameraVideoCapturer is started.
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user