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

Unified Diff: chrome/test/data/webrtc/video_extraction.js

Issue 1905373002: Resize video output to match input dimensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webrtc/video_extraction.js
diff --git a/chrome/test/data/webrtc/video_extraction.js b/chrome/test/data/webrtc/video_extraction.js
index 0436673f52837dcf85b3d96f8b678192b83f4bf2..bbfee0ef9f98dddd757cbb269bc20cafb05018b2 100644
--- a/chrome/test/data/webrtc/video_extraction.js
+++ b/chrome/test/data/webrtc/video_extraction.js
@@ -52,8 +52,13 @@ var gDoneFrameCapturing = false;
function startFrameCapture(videoTag, frameRate, duration) {
gFrameCaptureInterval = 1000 / frameRate;
gCaptureDuration = 1000 * duration;
- var width = videoTag.videoWidth;
- var height = videoTag.videoHeight;
+ // Resize output element to input dimensions to not compare VGA output to HD
phoglund_chromium 2016/04/22 13:58:30 That doesn't explain the background. What about:
pbos 2016/04/22 14:04:42 Done.
+ // input.
+ inputElement = document.getElementById("local-view");
+ var width = inputElement.videoWidth;
+ var height = inputElement.videoHeight;
+ videoTag.width = width;
+ videoTag.height = height;
if (width == 0 || height == 0) {
throw failTest('Trying to capture from ' + videoTag.id +
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698